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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 106.3 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 189.3 kB / 18.68 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 47.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.347, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002748/0.3498, allocations: 1.663 MB / 403.1 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006577/0.3505, allocations: 291.1 kB / 403.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.933e-05/0.3506, allocations: 7.938 kB / 403.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.3507, allocations: 27.73 kB / 403.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.379e-05/0.3508, allocations: 19.73 kB / 403.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003784/0.3512, allocations: 115.8 kB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003/0.3515, allocations: 279.4 kB / 403.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.3518, allocations: 187 kB / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.738e-05/0.3519, allocations: 95.7 kB / 404.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.3521, allocations: 103.5 kB / 404.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/0.3521, allocations: 24 kB / 404.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.314e-05/0.3522, allocations: 24 kB / 404.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.79e-05/0.3523, allocations: 63.81 kB / 404.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.3524, allocations: 103.5 kB / 404.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.3527, allocations: 262.8 kB / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3527, allocations: 0 / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3527, allocations: 0 / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.3527, allocations: 3.938 kB / 404.6 MB, free: 5.621 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.0006504/0.3534, allocations: 0.4944 MB / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3534, allocations: 15.89 kB / 405.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.745e-05/0.3535, allocations: 24.8 kB / 405.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.3537, allocations: 228.1 kB / 405.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.3538, allocations: 28.81 kB / 405.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.3538, allocations: 28.38 kB / 405.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.3543, allocations: 274.6 kB / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3543, allocations: 192 / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.3543, allocations: 15.94 kB / 405.7 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3543, allocations: 4 kB / 405.7 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002923/0.3546, allocations: 169.5 kB / 405.9 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.3558, allocations: 0.9675 MB / 406.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.356, allocations: 179 kB / 407 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.3562, allocations: 89.62 kB / 407.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.3562, allocations: 4 kB / 407.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.3564, allocations: 132.7 kB / 407.3 MB, free: 2.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.3564, allocations: 0 / 407.3 MB, free: 2.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004198/0.3568, allocations: 229.3 kB / 407.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.3569, allocations: 85.09 kB / 407.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.357, allocations: 153.7 kB / 407.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.357, allocations: 41.7 kB / 407.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.619e-05/0.3571, allocations: 136.8 kB / 407.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.3572, allocations: 59.48 kB / 407.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.323e-05/0.3573, allocations: 81.67 kB / 408 MB, free: 1.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3574, allocations: 330.8 kB / 408.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.3575, allocations: 72.03 kB / 408.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.3577, allocations: 136.3 kB / 408.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.358, allocations: 200.8 kB / 408.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.358, allocations: 0 / 408.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003659/0.3583, allocations: 257.3 kB / 409 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.3584, allocations: 4 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3584, allocations: 7.938 kB / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3584, allocations: 4 kB / 409 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3585, allocations: 35.91 kB / 409.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3585, allocations: 4 kB / 409.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.607e-05/0.3586, allocations: 36.06 kB / 409.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.3587, allocations: 12 kB / 409.1 MB, free: 0.8086 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: 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.0001417/0.3588, allocations: 161.7 kB / 409.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.3589, allocations: 11.91 kB / 409.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.3592, allocations: 194.3 kB / 409.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3592, allocations: 3.984 kB / 409.5 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3592, allocations: 3.938 kB / 409.5 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.825e-05/0.3593, allocations: 96.94 kB / 409.6 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.3593, allocations: 12 kB / 409.6 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.919e-05/0.3594, allocations: 11.92 kB / 409.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-05/0.3594, allocations: 19.97 kB / 409.6 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003903/0.3598, allocations: 360.1 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003358/0.3602, allocations: 433.9 kB / 410.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001219/0.3603, allocations: 83.89 kB / 410.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.433e-05/0.3604, allocations: 106.4 kB / 410.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of Backend: time 2.5e-07/0.3604, allocations: 0 / 410.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000571/0.361, allocations: 206.5 kB / 410.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006833/0.3617, allocations: 0.7544 MB / 411.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of Templates: time 0.00493/0.3666, allocations: 2.008 MB / 413.5 MB, free: 12.28 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches