Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001467/0.001468, allocations: 115.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002643/0.002643, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 60.62 kB / 308.4 MB, free: 15.94 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1485, allocations: 50.53 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004225/0.1527, allocations: 1.676 MB / 360.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000999/0.1538, allocations: 287.2 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1539, allocations: 7.938 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.1541, allocations: 27.73 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.388e-05/0.1542, allocations: 19.75 kB / 360.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004027/0.1546, allocations: 115.8 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.155, allocations: 271.5 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000345/0.1553, allocations: 190.9 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.1554, allocations: 95.69 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.1556, allocations: 103.5 kB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.533e-05/0.1556, allocations: 20 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.767e-05/0.1557, allocations: 35.94 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.708e-05/0.1558, allocations: 55.84 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.1559, allocations: 115.4 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.1563, allocations: 243.1 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1563, allocations: 0 / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1563, allocations: 0 / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1563, allocations: 0 / 362.1 MB, free: 10.13 MB / 302.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.0007526/0.1571, allocations: 494.6 kB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1571, allocations: 8.031 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.1574, allocations: 32.64 kB / 362.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.1577, allocations: 247.9 kB / 362.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.878e-05/0.1578, allocations: 28.92 kB / 362.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.1578, allocations: 24.38 kB / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.1583, allocations: 266.6 kB / 363.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.1583, allocations: 8.125 kB / 363.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.1583, allocations: 11.94 kB / 363.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.1583, allocations: 8 kB / 363.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.1586, allocations: 161.6 kB / 363.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.1598, allocations: 0.9672 MB / 364.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.1601, allocations: 169 kB / 364.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.1603, allocations: 85.62 kB / 364.6 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1603, allocations: 4 kB / 364.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.1605, allocations: 129.1 kB / 364.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.1605, allocations: 7.938 kB / 364.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004115/0.161, allocations: 216.3 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.161, allocations: 89.05 kB / 365 MB, free: 6.973 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.1612, allocations: 156.9 kB / 365.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.1612, allocations: 41.83 kB / 365.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1613, allocations: 140.5 kB / 365.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.125e-05/0.1614, allocations: 59.19 kB / 365.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.725e-05/0.1615, allocations: 81.59 kB / 365.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1616, allocations: 334.8 kB / 365.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1618, allocations: 63.75 kB / 365.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.1619, allocations: 140.5 kB / 366 MB, free: 5.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.1622, allocations: 192.4 kB / 366.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1622, allocations: 0 / 366.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003869/0.1626, allocations: 261.4 kB / 366.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1626, allocations: 4 kB / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.1626, allocations: 4 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1626, allocations: 7.938 kB / 366.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.1628, allocations: 27.92 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1628, allocations: 4 kB / 366.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.429e-05/0.1629, allocations: 35.77 kB / 366.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.1629, allocations: 8 kB / 366.6 MB, free: 5.344 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,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.000142/0.1631, allocations: 169.7 kB / 366.7 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.1631, allocations: 15.8 kB / 366.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.47e-05/0.1631, allocations: 20.84 kB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1632, allocations: 7.922 kB / 366.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1632, allocations: 4 kB / 366.8 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1632, allocations: 4 kB / 366.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.1639, allocations: 0.5712 MB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1639, allocations: 0 / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.655e-05/0.164, allocations: 15.98 kB / 367.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.164, allocations: 4 kB / 367.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.164, allocations: 4 kB / 367.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.164, allocations: 7.938 kB / 367.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.164, allocations: 0 / 367.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.1643, allocations: 275.8 kB / 367.7 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.1644, allocations: 92.86 kB / 367.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.1644, allocations: 7.984 kB / 367.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1645, allocations: 15.94 kB / 367.8 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.244e-05/0.1646, allocations: 19.97 kB / 367.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1646, allocations: 8 kB / 367.8 MB, free: 4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.396e-05/0.1647, allocations: 95.27 kB / 367.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1647, allocations: 0 / 367.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.165, allocations: 51.84 kB / 367.9 MB, free: 3.855 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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001425/0.1652, allocations: 103.2 kB / 368 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003465/0.1655, allocations: 189.1 kB / 368.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1655, allocations: 0 / 368.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.1657, allocations: 83.84 kB / 368.3 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.166, allocations: 23.97 kB / 368.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006356/0.1666, allocations: 333.5 kB / 368.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.167, allocations: 0.7365 MB / 369.4 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.382e-05/0.1671, allocations: 21.95 kB / 369.4 MB, free: 2.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.725e-05/0.1671, allocations: 19.44 kB / 369.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1671, allocations: 3.938 kB / 369.4 MB, free: 2.293 MB / 302.1 MB Notification: Performance of Templates: time 0.004782/0.1719, allocations: 1.704 MB / 371.1 MB, free: 0.5977 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches