Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001549/0.001549, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.001305/0.001305, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.49/1.49, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003952/0.0003955, allocations: 15.92 kB / 300.7 MB, free: 6.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1469, allocations: 50.41 MB / 351.1 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002742/0.1498, allocations: 1.394 MB / 352.5 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008034/0.1506, allocations: 311.1 kB / 352.8 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.1508, allocations: 4 kB / 352.8 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.151, allocations: 19.8 kB / 352.8 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.411e-05/0.151, allocations: 19.92 kB / 352.9 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.1514, allocations: 87.88 kB / 353 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.1517, allocations: 159.7 kB / 353.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.152, allocations: 145.9 kB / 353.2 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.306e-05/0.1521, allocations: 75.64 kB / 353.3 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.1522, allocations: 75.61 kB / 353.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.1522, allocations: 12 kB / 353.4 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.601e-05/0.1523, allocations: 16 kB / 353.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.977e-05/0.1524, allocations: 43.83 kB / 353.5 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.286e-05/0.1524, allocations: 57.58 kB / 353.5 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.1526, allocations: 155.6 kB / 353.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.1527, allocations: 8 kB / 353.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1527, allocations: 0 / 353.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.1527, allocations: 0 / 353.7 MB, free: 1.238 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.0006912/0.1534, allocations: 451.7 kB / 354.1 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1534, allocations: 12.03 kB / 354.1 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.1535, allocations: 19.81 kB / 354.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.1538, allocations: 226.7 kB / 354.4 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.1538, allocations: 28.56 kB / 354.4 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.1539, allocations: 24 kB / 354.4 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.1543, allocations: 278 kB / 354.7 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1543, allocations: 0 / 354.7 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.1544, allocations: 4 kB / 354.7 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.1544, allocations: 11.95 kB / 354.7 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.1547, allocations: 165.6 kB / 354.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.1558, allocations: 0.9752 MB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.1561, allocations: 177 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.1562, allocations: 12.17 kB / 356 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.1565, allocations: 136 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.1565, allocations: 0 / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004505/0.1569, allocations: 223.4 kB / 356.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.157, allocations: 81.11 kB / 356.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.1571, allocations: 157.8 kB / 356.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.1572, allocations: 37.7 kB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1573, allocations: 140.5 kB / 356.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.1574, allocations: 63.19 kB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.1574, allocations: 4 kB / 356.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1575, allocations: 330.8 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.1576, allocations: 67.95 kB / 357.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.1578, allocations: 144.5 kB / 357.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.1579, allocations: 72.52 kB / 357.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1579, allocations: 0 / 357.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003587/0.1583, allocations: 253.2 kB / 357.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1583, allocations: 8 kB / 357.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1583, allocations: 4 kB / 357.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.1583, allocations: 11.88 kB / 357.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.1585, allocations: 32.2 kB / 357.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1585, allocations: 8 kB / 357.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.1586, allocations: 23.75 kB / 357.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.1587, allocations: 19.98 kB / 357.8 MB, free: 12.81 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.0001613/0.1588, allocations: 162.3 kB / 358 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.1589, allocations: 11.81 kB / 358 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003268/0.1592, allocations: 194.3 kB / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1592, allocations: 8 kB / 358.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1592, allocations: 0 / 358.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1592, allocations: 0 / 358.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006839/0.1599, allocations: 0.5914 MB / 358.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1599, allocations: 0 / 358.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.16, allocations: 19.92 kB / 358.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.16, allocations: 0 / 358.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.1601, allocations: 8 kB / 358.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1601, allocations: 4 kB / 358.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1601, allocations: 3.953 kB / 358.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.1604, allocations: 290.3 kB / 359.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.1605, allocations: 100.8 kB / 359.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.1605, allocations: 8 kB / 359.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.426e-05/0.1606, allocations: 15.95 kB / 359.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/0.1607, allocations: 23.95 kB / 359.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.1607, allocations: 8 kB / 359.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.327e-05/0.1608, allocations: 102.3 kB / 359.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1608, allocations: 0 / 359.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.1611, allocations: 51.84 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,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: 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.0001678/0.1612, allocations: 103 kB / 359.5 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003461/0.1616, allocations: 195.7 kB / 359.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1616, allocations: 0 / 359.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.1618, allocations: 83.89 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.0002131/0.162, allocations: 12 kB / 359.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006662/0.1627, allocations: 400.4 kB / 360.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.163, allocations: 0.7367 MB / 360.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.41e-05/0.1631, allocations: 29.92 kB / 360.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.54e-05/0.1631, allocations: 31.36 kB / 361 MB, free: 9.477 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1631, allocations: 3.938 kB / 361 MB, free: 9.473 MB / 302.1 MB Notification: Performance of Templates: time 0.00505/0.1682, allocations: 1.653 MB / 362.6 MB, free: 7.828 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches