Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 107.4 kB / 17.16 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.001256/0.001256, allocations: 198 kB / 18.07 MB, free: 5.406 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.569/1.569, allocations: 205.1 MB / 223.9 MB, free: 12.5 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.001173/0.001173, allocations: 43.94 kB / 280 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1343, allocations: 46.63 MB / 326.6 MB, free: 4.934 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003286/0.1377, allocations: 1.562 MB / 328.1 MB, free: 3.359 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007069/0.1384, allocations: 263.2 kB / 328.4 MB, free: 3.102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.364e-05/0.1385, allocations: 8 kB / 328.4 MB, free: 3.094 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.1387, allocations: 19.86 kB / 328.4 MB, free: 3.074 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.584e-05/0.1387, allocations: 7.875 kB / 328.4 MB, free: 3.066 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.1392, allocations: 103.9 kB / 328.5 MB, free: 2.965 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003024/0.1395, allocations: 239.5 kB / 328.8 MB, free: 2.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.1398, allocations: 154.5 kB / 328.9 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.505e-05/0.1399, allocations: 79.7 kB / 329 MB, free: 2.496 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.14, allocations: 91.58 kB / 329.1 MB, free: 2.406 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.14, allocations: 16 kB / 329.1 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.863e-05/0.1401, allocations: 24 kB / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.714e-05/0.1402, allocations: 43.84 kB / 329.2 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.88e-05/0.1403, allocations: 91.5 kB / 329.3 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.1405, allocations: 207.3 kB / 329.5 MB, free: 2.031 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1405, allocations: 0 / 329.5 MB, free: 2.031 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1405, allocations: 3.938 kB / 329.5 MB, free: 2.027 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1406, allocations: 0 / 329.5 MB, free: 2.027 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006568/0.1412, allocations: 494.7 kB / 330 MB, free: 1.492 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1413, allocations: 8.031 kB / 330 MB, free: 1.484 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.764e-05/0.1413, allocations: 24.75 kB / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.1416, allocations: 224 kB / 330.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.1416, allocations: 20.94 kB / 330.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.601e-05/0.1417, allocations: 32.38 kB / 330.3 MB, free: 1.152 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004557/0.1421, allocations: 240 kB / 330.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1422, allocations: 192 / 330.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.1422, allocations: 15.94 kB / 330.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1422, allocations: 4 kB / 330.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.1425, allocations: 161.7 kB / 330.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009752/0.1435, allocations: 0.7051 MB / 331.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.1438, allocations: 174.8 kB / 331.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.1439, allocations: 80.83 kB / 331.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.1439, allocations: 0 / 331.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.1442, allocations: 123.2 kB / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.1442, allocations: 0 / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004226/0.1447, allocations: 217.3 kB / 332 MB, free: 15.35 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.1447, allocations: 59.41 kB / 332 MB, free: 15.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.1449, allocations: 145.9 kB / 332.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.1449, allocations: 37.69 kB / 332.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.766e-05/0.145, allocations: 132.6 kB / 332.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.155e-05/0.1451, allocations: 55.2 kB / 332.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.1452, allocations: 82 kB / 332.5 MB, free: 14.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1454, allocations: 322.8 kB / 332.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1455, allocations: 60.62 kB / 332.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.1457, allocations: 136 kB / 333 MB, free: 14.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/0.1459, allocations: 174.6 kB / 333.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.1459, allocations: 0 / 333.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003895/0.1463, allocations: 245.2 kB / 333.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.1464, allocations: 4.219 kB / 333.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.1464, allocations: 11.98 kB / 333.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.1464, allocations: 3.984 kB / 333.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.1466, allocations: 27.92 kB / 333.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.1466, allocations: 7.938 kB / 333.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1467, allocations: 27.78 kB / 333.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.1467, allocations: 12 kB / 333.5 MB, free: 13.74 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001731/0.1469, allocations: 153.8 kB / 333.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1469, allocations: 15.75 kB / 333.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.1473, allocations: 202.4 kB / 333.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.1473, allocations: 7.984 kB / 333.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1473, allocations: 0 / 333.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1473, allocations: 7.875 kB / 333.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007405/0.1481, allocations: 0.5685 MB / 334.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1481, allocations: 0 / 334.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.635e-05/0.1482, allocations: 23.92 kB / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1482, allocations: 4 kB / 334.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.1482, allocations: 4 kB / 334.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.1482, allocations: 4 kB / 334.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1482, allocations: 3.938 kB / 334.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.1486, allocations: 279.2 kB / 334.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.317e-05/0.1486, allocations: 88.95 kB / 334.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.1487, allocations: 8 kB / 334.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.403e-05/0.1488, allocations: 11.98 kB / 334.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.379e-05/0.1489, allocations: 23.91 kB / 334.9 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1489, allocations: 12 kB / 334.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.315e-05/0.149, allocations: 91.77 kB / 335 MB, free: 12.14 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.149, allocations: 0 / 335 MB, free: 12.14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.1493, allocations: 51.84 kB / 335 MB, free: 12.09 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001756/0.1495, allocations: 107.2 kB / 335.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003382/0.1498, allocations: 184.2 kB / 335.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1498, allocations: 0 / 335.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.15, allocations: 87.84 kB / 335.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.1503, allocations: 16 kB / 335.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006713/0.151, allocations: 402.6 kB / 335.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.1513, allocations: 0.7287 MB / 336.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.511e-05/0.1514, allocations: 29.94 kB / 336.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.826e-05/0.1515, allocations: 19.44 kB / 336.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1515, allocations: 0 / 336.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of Templates: time 0.005374/0.1569, allocations: 1.741 MB / 338.3 MB, free: 8.734 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches