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.0009334/0.0009333, allocations: 94.88 kB / 16.3 MB, free: 5.531 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.0008971/0.0008972, allocations: 180.9 kB / 17.2 MB, free: 5.465 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.496/1.496, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003139, allocations: 11.94 kB / 300.7 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1408, allocations: 50.41 MB / 351.1 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001968/0.1428, allocations: 1.37 MB / 352.5 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006437/0.1435, allocations: 299.1 kB / 352.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.1436, allocations: 4 kB / 352.8 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.1437, allocations: 23.78 kB / 352.8 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.085e-05/0.1438, allocations: 11.98 kB / 352.8 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/0.1442, allocations: 91.83 kB / 352.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.1444, allocations: 163.6 kB / 353.1 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.1447, allocations: 165.5 kB / 353.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.103e-05/0.1448, allocations: 63.77 kB / 353.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.145, allocations: 79.61 kB / 353.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.145, allocations: 12 kB / 353.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.535e-05/0.1451, allocations: 23.98 kB / 353.4 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.48e-05/0.1451, allocations: 35.84 kB / 353.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.1452, allocations: 57.58 kB / 353.5 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.1454, allocations: 159.6 kB / 353.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1454, allocations: 0 / 353.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1454, allocations: 0 / 353.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1454, allocations: 0 / 353.7 MB, free: 1.258 MB / 286.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.0007539/0.1462, allocations: 458.8 kB / 354.1 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1462, allocations: 11.97 kB / 354.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.1463, allocations: 19.81 kB / 354.1 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/0.1466, allocations: 238.7 kB / 354.4 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.426e-05/0.1466, allocations: 20.56 kB / 354.4 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.1467, allocations: 31.94 kB / 354.4 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.1471, allocations: 270 kB / 354.7 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.1471, allocations: 0 / 354.7 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.1472, allocations: 15.95 kB / 354.7 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1472, allocations: 4 kB / 354.7 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.1475, allocations: 165.6 kB / 354.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.1486, allocations: 0.9752 MB / 355.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.1489, allocations: 176.9 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.1489, allocations: 192 / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.1492, allocations: 140.1 kB / 356.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.1492, allocations: 0 / 356.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004671/0.1497, allocations: 223.4 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.1498, allocations: 89.09 kB / 356.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.1499, allocations: 153.5 kB / 356.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.1499, allocations: 41.7 kB / 356.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.1501, allocations: 136.5 kB / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.1501, allocations: 67.39 kB / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.1501, allocations: 8 kB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1503, allocations: 326.8 kB / 357.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.1504, allocations: 59.97 kB / 357.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.1505, allocations: 136.5 kB / 357.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.1507, allocations: 72.52 kB / 357.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1507, allocations: 0 / 357.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005389/0.1512, allocations: 269.1 kB / 357.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.1513, allocations: 4 kB / 357.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.1513, allocations: 4 kB / 357.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1513, allocations: 4 kB / 357.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.1515, allocations: 35.92 kB / 357.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.1516, allocations: 7.984 kB / 357.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.1517, allocations: 27.69 kB / 357.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.1517, allocations: 20.23 kB / 357.8 MB, free: 12.82 MB / 302.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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.1519, allocations: 158.4 kB / 358 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.1519, allocations: 19.8 kB / 358 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003673/0.1523, allocations: 194.3 kB / 358.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1523, allocations: 4 kB / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1523, allocations: 0 / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.1523, allocations: 3.984 kB / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.1531, allocations: 0.5953 MB / 358.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1532, allocations: 4 kB / 358.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.1533, allocations: 15.92 kB / 358.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1533, allocations: 4 kB / 358.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.1533, allocations: 4 kB / 358.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.1533, allocations: 7.953 kB / 358.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.1533, allocations: 0 / 358.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004745/0.1538, allocations: 298.2 kB / 359.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.446e-05/0.1539, allocations: 92.95 kB / 359.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.1539, allocations: 7.953 kB / 359.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.045e-05/0.154, allocations: 11.98 kB / 359.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.754e-05/0.1541, allocations: 23.91 kB / 359.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1542, allocations: 12 kB / 359.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.947e-05/0.1542, allocations: 99.25 kB / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1542, allocations: 0 / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003267/0.1546, allocations: 55.75 kB / 359.4 MB, free: 11.11 MB / 302.1 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.active,step.localActive,transition1.enableFire,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001897/0.1548, allocations: 107 kB / 359.5 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004015/0.1552, allocations: 184.2 kB / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1552, allocations: 64 / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.1553, allocations: 87.91 kB / 359.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.1556, allocations: 19.98 kB / 359.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008199/0.1564, allocations: 391.8 kB / 360.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.1568, allocations: 0.7484 MB / 360.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.523e-05/0.1569, allocations: 25.94 kB / 360.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.668e-05/0.157, allocations: 19.44 kB / 361 MB, free: 9.484 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.157, allocations: 4 kB / 361 MB, free: 9.48 MB / 302.1 MB Notification: Performance of Templates: time 0.006164/0.1632, allocations: 1.676 MB / 362.6 MB, free: 7.816 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches