Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.001251/0.001252, allocations: 96.61 kB / 16.5 MB, free: 6.688 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.001148/0.001149, allocations: 193.2 kB / 17.42 MB, free: 6.09 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.523/1.523, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 47.39 kB / 299.9 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1393, allocations: 49.45 MB / 349.4 MB, free: 4.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003869/0.1433, allocations: 1.571 MB / 351 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007949/0.1441, allocations: 295.2 kB / 351.2 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.1443, allocations: 7.938 kB / 351.2 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.1445, allocations: 15.86 kB / 351.3 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.804e-05/0.1446, allocations: 15.86 kB / 351.3 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.145, allocations: 91.91 kB / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00048/0.1455, allocations: 247.5 kB / 351.6 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004324/0.146, allocations: 150.5 kB / 351.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.1462, allocations: 79.7 kB / 351.8 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.1464, allocations: 91.53 kB / 351.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.1465, allocations: 16 kB / 351.9 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.1466, allocations: 31.98 kB / 352 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.951e-05/0.1467, allocations: 39.91 kB / 352 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.1469, allocations: 87.52 kB / 352.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1474, allocations: 207.3 kB / 352.3 MB, free: 1.961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1474, allocations: 0 / 352.3 MB, free: 1.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.771e-06/0.1474, allocations: 4 kB / 352.3 MB, free: 1.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1474, allocations: 0 / 352.3 MB, free: 1.957 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001204/0.1487, allocations: 482.8 kB / 352.8 MB, free: 1.434 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.1487, allocations: 12.03 kB / 352.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1488, allocations: 20.75 kB / 352.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.1493, allocations: 228 kB / 353 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.546e-05/0.1493, allocations: 20.94 kB / 353 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.1494, allocations: 32.31 kB / 353.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007229/0.1501, allocations: 240 kB / 353.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1502, allocations: 192 / 353.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/0.1502, allocations: 15.94 kB / 353.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1502, allocations: 4 kB / 353.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005166/0.1508, allocations: 169.6 kB / 353.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.1525, allocations: 0.6973 MB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.153, allocations: 170.8 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.1532, allocations: 80.83 kB / 354.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.1533, allocations: 3.984 kB / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004009/0.1537, allocations: 115.3 kB / 354.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.595e-06/0.1537, allocations: 0 / 354.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006595/0.1544, allocations: 226.7 kB / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.1545, allocations: 59.27 kB / 354.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.1547, allocations: 154.7 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.1548, allocations: 33.7 kB / 355 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1549, allocations: 132.6 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.692e-05/0.155, allocations: 55.2 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.1552, allocations: 78.02 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.1555, allocations: 330.8 kB / 355.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.1557, allocations: 60.62 kB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.156, allocations: 132.1 kB / 355.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.1564, allocations: 179.2 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1564, allocations: 0 / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006374/0.157, allocations: 249.2 kB / 356.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1571, allocations: 4 kB / 356.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1571, allocations: 4 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.1571, allocations: 4 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.1573, allocations: 27.92 kB / 356.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.1574, allocations: 3.938 kB / 356.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.1575, allocations: 27.77 kB / 356.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.1576, allocations: 16 kB / 356.3 MB, free: 13.68 MB / 302.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.0002089/0.1578, allocations: 158 kB / 356.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.657e-05/0.1579, allocations: 15.75 kB / 356.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000526/0.1584, allocations: 198.3 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-06/0.1584, allocations: 4 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1585, allocations: 0 / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.1585, allocations: 7.969 kB / 356.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.1596, allocations: 0.5683 MB / 357.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1596, allocations: 0 / 357.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1597, allocations: 15.94 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1598, allocations: 0 / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.1598, allocations: 11.98 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1598, allocations: 3.938 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.1598, allocations: 7.922 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000472/0.1603, allocations: 283.6 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.137e-05/0.1604, allocations: 88.95 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.1604, allocations: 8 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.1606, allocations: 4 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.1607, allocations: 23.91 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.1608, allocations: 11.98 kB / 357.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.892e-05/0.1608, allocations: 97.14 kB / 357.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1609, allocations: 0 / 357.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005711/0.1614, allocations: 51.84 kB / 357.8 MB, free: 12.03 MB / 302.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.0002027/0.1616, allocations: 107.2 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005441/0.1622, allocations: 175.8 kB / 358.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1622, allocations: 0 / 358.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.1625, allocations: 87.91 kB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.1629, allocations: 23.36 kB / 358.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009129/0.1639, allocations: 397.9 kB / 358.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.1643, allocations: 0.7403 MB / 359.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.1644, allocations: 25.95 kB / 359.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.57e-05/0.1645, allocations: 23.42 kB / 359.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1645, allocations: 0 / 359.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Templates: time 0.007392/0.1719, allocations: 1.731 MB / 361.1 MB, free: 8.688 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches