Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009703/0.0009703, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 143.8 kB / 24.98 MB, free: 8.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9988/0.9988, allocations: 173.3 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 268 MB, free: 6.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.147e-05, allocations: 6.25 kB / 268 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001975/0.001997, allocations: 1.687 MB / 269.7 MB, free: 5.062 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005941/0.002591, allocations: 306.9 kB / 270 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.919e-05/0.00269, allocations: 7.938 kB / 270 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.002813, allocations: 23.73 kB / 270.1 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.96e-05/0.002853, allocations: 15.8 kB / 270.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.003265, allocations: 135.7 kB / 270.2 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002549/0.00352, allocations: 279.4 kB / 270.5 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.003763, allocations: 155.7 kB / 270.6 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.003879, allocations: 143.7 kB / 270.8 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.003981, allocations: 75.7 kB / 270.8 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.968e-05/0.00401, allocations: 24 kB / 270.9 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.297e-05/0.004073, allocations: 31.98 kB / 270.9 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.022e-05/0.004123, allocations: 63.8 kB / 271 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.004189, allocations: 71.81 kB / 271 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.00441, allocations: 191.2 kB / 271.2 MB, free: 3.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.004413, allocations: 4 kB / 271.2 MB, free: 3.555 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.004414, allocations: 0 / 271.2 MB, free: 3.555 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.004419, allocations: 0 / 271.2 MB, free: 3.555 MB / 250.7 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.0005155/0.004934, allocations: 0.5073 MB / 271.7 MB, free: 3.008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.004968, allocations: 12.02 kB / 271.7 MB, free: 2.996 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.005041, allocations: 44.8 kB / 271.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004625/0.005504, allocations: 184.2 kB / 272 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.005533, allocations: 20.88 kB / 272 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.00556, allocations: 28.38 kB / 272 MB, free: 2.699 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.005862, allocations: 244.8 kB / 272.3 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.005872, allocations: 8.109 kB / 272.3 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.005891, allocations: 12.38 kB / 272.3 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.0059, allocations: 4.375 kB / 272.3 MB, free: 2.406 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.006056, allocations: 106.8 kB / 272.4 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008067/0.006863, allocations: 1.072 MB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.007061, allocations: 154.3 kB / 273.6 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.333e-05/0.007134, allocations: 70.25 kB / 273.7 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.00715, allocations: 4 kB / 273.7 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001417/0.007292, allocations: 144.1 kB / 273.8 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.007293, allocations: 0 / 273.8 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002955/0.007589, allocations: 191.8 kB / 274 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.007632, allocations: 89.05 kB / 274.1 MB, free: 472 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.007741, allocations: 221.2 kB / 274.3 MB, free: 236 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.007762, allocations: 37.83 kB / 274.3 MB, free: 192 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.007865, allocations: 199.6 kB / 274.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.007902, allocations: 55.55 kB / 274.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.223e-05/0.007984, allocations: 87.33 kB / 274.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.008094, allocations: 0.4962 MB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.082e-05/0.008165, allocations: 43.75 kB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.008285, allocations: 148.6 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.008527, allocations: 200.5 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.00853, allocations: 0 / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003478/0.008878, allocations: 233.2 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.008895, allocations: 4.281 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.008901, allocations: 8 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.008918, allocations: 4 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.009045, allocations: 43.84 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.009054, allocations: 4 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.35e-05/0.009137, allocations: 27.78 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.009164, allocations: 16 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001134/0.009277, allocations: 188.5 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.443e-05/0.009312, allocations: 27.84 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.009577, allocations: 174.4 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.009582, allocations: 8 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.009585, allocations: 0 / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.009591, allocations: 3.984 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00056/0.01015, allocations: 0.536 MB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.01015, allocations: 4 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.167e-05/0.01021, allocations: 11.98 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.01021, allocations: 4 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.01022, allocations: 4 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.01023, allocations: 4 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.01023, allocations: 0 / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.0105, allocations: 335.7 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.727e-05/0.01051, allocations: 19.84 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.01054, allocations: 7.984 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.01061, allocations: 8 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003082/0.01369, allocations: 19.95 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.01371, allocations: 12 kB / 277.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.032e-05/0.01377, allocations: 139.1 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01377, allocations: 0 / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003079/0.01408, allocations: 59.78 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001462/0.01422, allocations: 118.9 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002688/0.01449, allocations: 151.7 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.01449, allocations: 4 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.0146, allocations: 79.47 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.01489, allocations: 30.95 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005177/0.01541, allocations: 351.1 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.063e-05/0.01547, allocations: 84.27 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.932e-05/0.01554, allocations: 29.94 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.711e-05/0.0156, allocations: 20.5 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0156, allocations: 0 / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of Templates: time 0.01113/0.02673, allocations: 1.966 MB / 280.3 MB, free: 10.04 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9431694268714637]