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.001542/0.001542, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 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.00194/0.00194, allocations: 204.7 kB / 25.23 MB, free: 3.551 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.724/1.724, allocations: 207.6 MB / 236 MB, free: 9.984 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [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.00221/0.00221, allocations: 54.58 kB / 348.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.386, allocations: 49.17 MB / 397.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003157/0.3892, allocations: 1.702 MB / 399.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007125/0.3899, allocations: 260.1 kB / 399.5 MB, free: 8.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.39, allocations: 3.844 kB / 399.5 MB, free: 8.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.3901, allocations: 30.97 kB / 399.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.238e-05/0.3902, allocations: 19.25 kB / 399.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.3907, allocations: 124.5 kB / 399.7 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003663/0.391, allocations: 274.6 kB / 400 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003166/0.3913, allocations: 150.8 kB / 400.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.3915, allocations: 92.7 kB / 400.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.3916, allocations: 100.3 kB / 400.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/0.3917, allocations: 22.31 kB / 400.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.696e-05/0.3918, allocations: 33.41 kB / 400.4 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.063e-05/0.3918, allocations: 62.72 kB / 400.4 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.392, allocations: 102.4 kB / 400.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003875/0.3923, allocations: 252.4 kB / 400.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3924, allocations: 0 / 400.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3924, allocations: 1.062 kB / 400.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3924, allocations: 3.938 kB / 400.8 MB, free: 7.516 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.0006351/0.393, allocations: 414.6 kB / 401.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.393, allocations: 18.98 kB / 401.2 MB, free: 7.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.31e-05/0.3931, allocations: 24.33 kB / 401.2 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.3934, allocations: 176.2 kB / 401.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.3935, allocations: 25.5 kB / 401.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.3935, allocations: 27.12 kB / 401.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004778/0.394, allocations: 267.2 kB / 401.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.394, allocations: 2.047 kB / 401.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.394, allocations: 14.94 kB / 401.7 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.394, allocations: 5.5 kB / 401.7 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.3944, allocations: 169.6 kB / 401.9 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.3954, allocations: 0.9265 MB / 402.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.3957, allocations: 148.6 kB / 403 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3958, allocations: 66.72 kB / 403 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.3959, allocations: 3.484 kB / 403 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.3961, allocations: 128.8 kB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.3961, allocations: 0 / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004292/0.3965, allocations: 209.1 kB / 403.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.3965, allocations: 55.78 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3966, allocations: 153.9 kB / 403.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.3967, allocations: 34.08 kB / 403.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.837e-05/0.3967, allocations: 146.5 kB / 403.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.089e-05/0.3968, allocations: 67.84 kB / 403.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.783e-05/0.3969, allocations: 81.02 kB / 403.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.247e-05/0.397, allocations: 329.9 kB / 404.2 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.3971, allocations: 62.5 kB / 404.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3972, allocations: 142.3 kB / 404.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.3975, allocations: 185.3 kB / 404.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3975, allocations: 1.938 kB / 404.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000369/0.3978, allocations: 247.8 kB / 404.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3978, allocations: 7.438 kB / 404.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3979, allocations: 6.531 kB / 404.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.3979, allocations: 8.5 kB / 404.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.398, allocations: 30.56 kB / 404.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.398, allocations: 5 kB / 404.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3982, allocations: 28.36 kB / 404.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.361e-05/0.3982, allocations: 16.22 kB / 404.9 MB, free: 4.504 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.0001264/0.3983, allocations: 160.4 kB / 405.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.201e-05/0.3983, allocations: 10.06 kB / 405.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003408/0.3987, allocations: 201.7 kB / 405.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3987, allocations: 2.531 kB / 405.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.3987, allocations: 0 / 405.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3987, allocations: 2.078 kB / 405.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007058/0.3994, allocations: 0.5577 MB / 405.9 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3994, allocations: 5 kB / 405.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.436e-05/0.3995, allocations: 13.34 kB / 405.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3995, allocations: 5.125 kB / 405.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.3995, allocations: 7.547 kB / 405.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3995, allocations: 5.25 kB / 405.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3995, allocations: 8.641 kB / 405.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.3998, allocations: 264.2 kB / 406.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.3998, allocations: 24.05 kB / 406.2 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.3999, allocations: 12.48 kB / 406.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.3999, allocations: 5.234 kB / 406.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.4, allocations: 21.55 kB / 406.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.4, allocations: 9.125 kB / 406.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.003e-05/0.4001, allocations: 103.7 kB / 406.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4001, allocations: 0 / 406.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.4004, allocations: 52.16 kB / 406.4 MB, free: 3.508 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.0001347/0.4005, allocations: 109 kB / 406.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.4009, allocations: 167 kB / 406.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4009, allocations: 8.125 kB / 406.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.401, allocations: 65.78 kB / 406.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.4013, allocations: 24.02 kB / 406.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000647/0.402, allocations: 363.6 kB / 407.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002068/0.4022, allocations: 0.7345 MB / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.82e-05/0.4022, allocations: 23.64 kB / 407.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4022, allocations: 0 / 407.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of Templates: time 0.005308/0.4075, allocations: 2.42 MB / 410.3 MB, free: 1.75 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] 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: 7.818553387187421]