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.001367/0.001366, allocations: 107.4 kB / 17.68 MB, free: 5.492 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.001219/0.001219, allocations: 192 kB / 18.62 MB, free: 4.562 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.448/1.448, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 54.7 kB / 302 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1279, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003582/0.1315, allocations: 1.48 MB / 353 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008467/0.1324, allocations: 271.2 kB / 353.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.1326, allocations: 7.938 kB / 353.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.1328, allocations: 27.67 kB / 353.3 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.414e-05/0.1329, allocations: 15.8 kB / 353.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.1335, allocations: 111.8 kB / 353.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.134, allocations: 263.5 kB / 353.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000405/0.1344, allocations: 162.3 kB / 353.8 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.1345, allocations: 79.78 kB / 353.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.1347, allocations: 95.59 kB / 354 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.1348, allocations: 20 kB / 354 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.1349, allocations: 43.92 kB / 354 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-05/0.135, allocations: 51.83 kB / 354.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.1351, allocations: 95.53 kB / 354.2 MB, free: 1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004089/0.1355, allocations: 239.1 kB / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1355, allocations: 0 / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1355, allocations: 0 / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.1356, allocations: 4 kB / 354.4 MB, free: 0.7617 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.000919/0.1365, allocations: 486.5 kB / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1366, allocations: 8.031 kB / 354.9 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.928e-05/0.1367, allocations: 24.75 kB / 354.9 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.1371, allocations: 224.3 kB / 355.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.035e-05/0.1371, allocations: 24.92 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.61e-05/0.1372, allocations: 28.31 kB / 355.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.1377, allocations: 240 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.1377, allocations: 4.188 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.1377, allocations: 11.88 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1378, allocations: 12 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003428/0.1381, allocations: 153.7 kB / 355.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.1392, allocations: 0.705 MB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.1396, allocations: 170.8 kB / 356.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1397, allocations: 84.83 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.1397, allocations: 4 kB / 356.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.14, allocations: 115.3 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.734e-06/0.14, allocations: 0 / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004267/0.1404, allocations: 218.9 kB / 356.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.1405, allocations: 63.34 kB / 356.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1406, allocations: 149.8 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.1406, allocations: 37.7 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.658e-05/0.1407, allocations: 130.1 kB / 357.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.1408, allocations: 67.17 kB / 357.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.1409, allocations: 70.02 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.141, allocations: 326.8 kB / 357.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1411, allocations: 64.62 kB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.1413, allocations: 128.1 kB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.1415, allocations: 187 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1415, allocations: 0 / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003577/0.1419, allocations: 245.2 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.1419, allocations: 10.81 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.142, allocations: 0 / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.142, allocations: 4.219 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1421, allocations: 35.92 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.1422, allocations: 4 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.407e-05/0.1423, allocations: 27.77 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.1423, allocations: 12 kB / 358.4 MB, free: 12.47 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.0001365/0.1424, allocations: 157.7 kB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.1425, allocations: 19.73 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003344/0.1428, allocations: 194.3 kB / 358.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1428, allocations: 8 kB / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1428, allocations: 0 / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1428, allocations: 0 / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.1436, allocations: 0.5644 MB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.1436, allocations: 0 / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.612e-05/0.1437, allocations: 15.98 kB / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1437, allocations: 0 / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.1438, allocations: 8 kB / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1438, allocations: 0 / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1438, allocations: 11.94 kB / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.1441, allocations: 279.6 kB / 359.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.1442, allocations: 96.86 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.1442, allocations: 7.984 kB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.441e-05/0.1443, allocations: 8 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.1444, allocations: 23.91 kB / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1444, allocations: 8 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.695e-05/0.1445, allocations: 102.3 kB / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1445, allocations: 0 / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.1449, allocations: 47.84 kB / 359.9 MB, free: 10.83 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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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.0002022/0.1451, allocations: 111.2 kB / 360.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003643/0.1455, allocations: 176.1 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1455, allocations: 4 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.1456, allocations: 84.28 kB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.146, allocations: 39.34 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005883/0.1466, allocations: 323.7 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.147, allocations: 0.7285 MB / 361.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.019e-05/0.147, allocations: 25.94 kB / 361.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.297e-05/0.1471, allocations: 27.38 kB / 361.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1471, allocations: 0 / 361.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Templates: time 0.005007/0.1521, allocations: 1.87 MB / 363.3 MB, free: 7.406 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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