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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 104.7 kB / 17.15 MB, free: 6.305 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.00152/0.001521, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 47.94 kB / 280 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1299, allocations: 46.63 MB / 326.6 MB, free: 4.914 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003462/0.1334, allocations: 1.78 MB / 328.4 MB, free: 3.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007492/0.1342, allocations: 275 kB / 328.6 MB, free: 2.844 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.813e-05/0.1343, allocations: 4 kB / 328.6 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.1345, allocations: 15.81 kB / 328.7 MB, free: 2.824 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.801e-05/0.1346, allocations: 11.92 kB / 328.7 MB, free: 2.812 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003809/0.1349, allocations: 99.91 kB / 328.8 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003091/0.1353, allocations: 251.5 kB / 329 MB, free: 2.469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003021/0.1356, allocations: 181.8 kB / 329.2 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.426e-05/0.1357, allocations: 79.7 kB / 329.3 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.1358, allocations: 87.59 kB / 329.3 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.1359, allocations: 16 kB / 329.4 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.556e-05/0.136, allocations: 24 kB / 329.4 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.729e-05/0.136, allocations: 55.81 kB / 329.4 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1361, allocations: 95.41 kB / 329.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.1364, allocations: 219.5 kB / 329.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1364, allocations: 0 / 329.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1364, allocations: 0 / 329.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.1365, allocations: 0 / 329.7 MB, free: 1.73 MB / 270.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.0008624/0.1373, allocations: 494 kB / 330.2 MB, free: 1.188 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.1374, allocations: 12.03 kB / 330.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.614e-05/0.1375, allocations: 24.66 kB / 330.3 MB, free: 1.152 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.1378, allocations: 224.1 kB / 330.5 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.1378, allocations: 24.94 kB / 330.5 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.1379, allocations: 28.38 kB / 330.5 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004757/0.1383, allocations: 274.5 kB / 330.8 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1384, allocations: 192 / 330.8 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.1384, allocations: 11.94 kB / 330.8 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1384, allocations: 11.94 kB / 330.8 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002987/0.1387, allocations: 165.6 kB / 331 MB, free: 376 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.1399, allocations: 0.9711 MB / 332 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.1402, allocations: 154.7 kB / 332.1 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.1403, allocations: 84.77 kB / 332.2 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1404, allocations: 0 / 332.2 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.1406, allocations: 111.4 kB / 332.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.363e-06/0.1406, allocations: 3.938 kB / 332.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004351/0.1411, allocations: 213.3 kB / 332.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.1411, allocations: 55.41 kB / 332.6 MB, free: 14.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.1413, allocations: 154.7 kB / 332.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.1413, allocations: 37.7 kB / 332.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.843e-05/0.1414, allocations: 144.5 kB / 332.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.259e-05/0.1414, allocations: 55.2 kB / 333 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.1416, allocations: 78.02 kB / 333 MB, free: 14.19 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1417, allocations: 334.8 kB / 333.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.1418, allocations: 64.62 kB / 333.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.142, allocations: 137.7 kB / 333.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.1422, allocations: 196.3 kB / 333.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1422, allocations: 0 / 333.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003537/0.1426, allocations: 249.2 kB / 334 MB, free: 13.15 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1426, allocations: 4 kB / 334 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1426, allocations: 4 kB / 334 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1427, allocations: 4 kB / 334 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1428, allocations: 40.14 kB / 334 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.1428, allocations: 8 kB / 334 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.143, allocations: 31.62 kB / 334.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.143, allocations: 15.98 kB / 334.1 MB, free: 13.05 MB / 286.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.condition,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.0001973/0.1433, allocations: 156.3 kB / 334.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.1433, allocations: 15.81 kB / 334.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.1437, allocations: 194.3 kB / 334.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1437, allocations: 8 kB / 334.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1437, allocations: 0 / 334.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1437, allocations: 0 / 334.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009025/0.1446, allocations: 0.5948 MB / 335.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1446, allocations: 0 / 335.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.146e-05/0.1447, allocations: 15.98 kB / 335.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.1447, allocations: 3.938 kB / 335.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.1448, allocations: 4 kB / 335.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1448, allocations: 8 kB / 335.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1448, allocations: 0 / 335.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003052/0.1451, allocations: 271.3 kB / 335.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.1453, allocations: 96.8 kB / 335.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1453, allocations: 7.938 kB / 335.5 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.276e-05/0.1454, allocations: 11.98 kB / 335.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.1456, allocations: 11.98 kB / 335.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.1456, allocations: 15.98 kB / 335.5 MB, free: 11.54 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.076e-05/0.1457, allocations: 98.36 kB / 335.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1457, allocations: 4 kB / 335.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.146, allocations: 47.84 kB / 335.6 MB, free: 11.39 MB / 286.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.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.000211/0.1462, allocations: 111.1 kB / 335.7 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004109/0.1466, allocations: 187.7 kB / 335.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1467, allocations: 0.5625 kB / 335.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.1468, allocations: 79.92 kB / 336 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.1471, allocations: 19.98 kB / 336 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007089/0.1478, allocations: 406.5 kB / 336.4 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.1483, allocations: 0.7482 MB / 337.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.338e-05/0.1484, allocations: 25.94 kB / 337.2 MB, free: 9.773 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.1485, allocations: 19.44 kB / 337.2 MB, free: 9.754 MB / 286.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1485, allocations: 4 kB / 337.2 MB, free: 9.75 MB / 286.1 MB Notification: Performance of Templates: time 0.005927/0.1544, allocations: 1.72 MB / 338.9 MB, free: 8.035 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches