Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 54.86 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3998, allocations: 49.16 MB / 396.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003156/0.4029, allocations: 1.705 MB / 398 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007665/0.4037, allocations: 257.7 kB / 398.3 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.4038, allocations: 7.219 kB / 398.3 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.404, allocations: 30.06 kB / 398.3 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.627e-05/0.4041, allocations: 19.44 kB / 398.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.4046, allocations: 124.9 kB / 398.5 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000386/0.405, allocations: 270.6 kB / 398.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003265/0.4053, allocations: 158.5 kB / 398.9 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.4054, allocations: 92.67 kB / 399 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.4056, allocations: 96.09 kB / 399.1 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.4057, allocations: 23.47 kB / 399.1 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.789e-05/0.4058, allocations: 32.47 kB / 399.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.87e-05/0.4059, allocations: 60.11 kB / 399.2 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.406, allocations: 96.7 kB / 399.3 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004538/0.4064, allocations: 256.1 kB / 399.5 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.4064, allocations: 4.75 kB / 399.5 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.616e-06/0.4065, allocations: 5.094 kB / 399.5 MB, free: 7.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.4065, allocations: 0 / 399.5 MB, free: 7.199 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006944/0.4072, allocations: 414.8 kB / 399.9 MB, free: 6.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.887e-05/0.4072, allocations: 13.2 kB / 399.9 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.4073, allocations: 58.28 kB / 400 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.4074, allocations: 24.73 kB / 400 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/0.4077, allocations: 172.7 kB / 400.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.4078, allocations: 19.91 kB / 400.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.236e-05/0.4078, allocations: 32.02 kB / 400.2 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.4083, allocations: 271.6 kB / 400.5 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.4083, allocations: 5.281 kB / 400.5 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.4084, allocations: 10.91 kB / 400.5 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.4084, allocations: 10.5 kB / 400.5 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.4087, allocations: 164.3 kB / 400.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.4098, allocations: 0.9346 MB / 401.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.4101, allocations: 148.8 kB / 401.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.4102, allocations: 63.86 kB / 401.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.4103, allocations: 6.188 kB / 401.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.4105, allocations: 115 kB / 402 MB, free: 5.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.414e-06/0.4105, allocations: 5.156 kB / 402 MB, free: 5.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004457/0.4109, allocations: 213.7 kB / 402.2 MB, free: 5.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.411, allocations: 60.27 kB / 402.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.4111, allocations: 156.5 kB / 402.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.4111, allocations: 39.66 kB / 402.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.467e-05/0.4112, allocations: 139.8 kB / 402.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/0.4113, allocations: 62.38 kB / 402.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.4114, allocations: 81.73 kB / 402.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.826e-05/0.4114, allocations: 328.6 kB / 403 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.4116, allocations: 66.02 kB / 403.1 MB, free: 4.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.4117, allocations: 141.9 kB / 403.2 MB, free: 4.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002692/0.412, allocations: 183.2 kB / 403.4 MB, free: 4.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.412, allocations: 1.406 kB / 403.4 MB, free: 4.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003911/0.4124, allocations: 254.6 kB / 403.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.4124, allocations: 5.781 kB / 403.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.4124, allocations: 1.938 kB / 403.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.4125, allocations: 3.5 kB / 403.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.4126, allocations: 34.3 kB / 403.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.4126, allocations: 11.95 kB / 403.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.4128, allocations: 31.72 kB / 403.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.4128, allocations: 15.19 kB / 403.8 MB, free: 4.129 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.4129, allocations: 152.3 kB / 403.9 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.413, allocations: 9.984 kB / 403.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003661/0.4133, allocations: 196.9 kB / 404.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.4133, allocations: 2.562 kB / 404.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4133, allocations: 5.641 kB / 404.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.4133, allocations: 1.078 kB / 404.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007621/0.4141, allocations: 0.5631 MB / 404.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4141, allocations: 0 / 404.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.282e-05/0.4142, allocations: 14.03 kB / 404.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4142, allocations: 13.02 kB / 404.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.4142, allocations: 6.188 kB / 404.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4142, allocations: 4.156 kB / 404.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.4142, allocations: 0 / 404.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/0.4145, allocations: 273.3 kB / 405 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.4145, allocations: 25.66 kB / 405 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.4145, allocations: 5.469 kB / 405 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.883e-05/0.4146, allocations: 10.08 kB / 405 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.287e-05/0.4147, allocations: 20.59 kB / 405 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.4147, allocations: 5.75 kB / 405 MB, free: 3.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.701e-05/0.4148, allocations: 100.6 kB / 405.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4148, allocations: 3.938 kB / 405.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.4151, allocations: 50.8 kB / 405.2 MB, free: 3.141 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004906/0.4156, allocations: 0.8151 MB / 406 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003715/0.416, allocations: 170.7 kB / 406.2 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.416, allocations: 0.5625 kB / 406.2 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.4161, allocations: 74.69 kB / 406.3 MB, free: 2.344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.4164, allocations: 26.03 kB / 406.3 MB, free: 2.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.4186, allocations: 2.06 MB / 408.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.4189, allocations: 0.7321 MB / 409.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.419, allocations: 26 kB / 409.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.4191, allocations: 63.17 kB / 409.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4191, allocations: 0 / 409.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/0.4533, allocations: 3.955 MB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.31, allocations: 6.422 kB / 413.1 MB, free: 14.38 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.228852804983035]