Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001078/0.001078, allocations: 94.03 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001466, allocations: 203.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.616/1.616, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003078, allocations: 4 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1228, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001696/0.1245, allocations: 1.229 MB / 360.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006273/0.1252, allocations: 299.1 kB / 360.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1253, allocations: 4 kB / 360.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1254, allocations: 15.8 kB / 360.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.13e-05/0.1255, allocations: 11.92 kB / 360.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.1258, allocations: 95.91 kB / 360.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.1261, allocations: 243.5 kB / 361.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.1264, allocations: 146.3 kB / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.591e-05/0.1265, allocations: 59.78 kB / 361.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.1266, allocations: 91.41 kB / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.3e-05/0.1267, allocations: 12 kB / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.731e-05/0.1267, allocations: 12 kB / 361.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.834e-05/0.1268, allocations: 43.89 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.1269, allocations: 101.2 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.1271, allocations: 195.3 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1272, allocations: 0 / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1272, allocations: 0 / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1272, allocations: 4 kB / 361.8 MB, free: 10.74 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000623/0.1278, allocations: 439 kB / 362.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1279, allocations: 8.031 kB / 362.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.1281, allocations: 32.64 kB / 362.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.1283, allocations: 235.9 kB / 362.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.1284, allocations: 20.94 kB / 362.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.1284, allocations: 24.38 kB / 362.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004183/0.1288, allocations: 240 kB / 362.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.1289, allocations: 4.172 kB / 362.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.1289, allocations: 15.94 kB / 362.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.1289, allocations: 8 kB / 362.8 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002943/0.1292, allocations: 153.6 kB / 362.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009819/0.1302, allocations: 0.6934 MB / 363.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.1306, allocations: 174.6 kB / 363.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.1307, allocations: 80.83 kB / 363.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.1307, allocations: 4 kB / 363.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002654/0.131, allocations: 116.5 kB / 364 MB, free: 8.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.131, allocations: 0 / 364 MB, free: 8.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004543/0.1315, allocations: 224.6 kB / 364.2 MB, free: 8.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.1316, allocations: 55.41 kB / 364.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1317, allocations: 153.8 kB / 364.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.1317, allocations: 33.7 kB / 364.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.284e-05/0.1318, allocations: 124.7 kB / 364.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.1319, allocations: 63.19 kB / 364.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.132, allocations: 53.69 kB / 364.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1321, allocations: 330.8 kB / 365 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1322, allocations: 60.62 kB / 365.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.1324, allocations: 120.1 kB / 365.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.1326, allocations: 179.2 kB / 365.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1326, allocations: 0 / 365.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003785/0.133, allocations: 245.1 kB / 365.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1331, allocations: 8 kB / 365.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1331, allocations: 0 / 365.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.1331, allocations: 4 kB / 365.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.1332, allocations: 35.86 kB / 365.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.1333, allocations: 7.984 kB / 365.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.1334, allocations: 27.97 kB / 365.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.1334, allocations: 12 kB / 365.7 MB, free: 6.543 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.0001526/0.1336, allocations: 157.7 kB / 365.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.1336, allocations: 15.75 kB / 365.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.09e-05/0.1337, allocations: 20.84 kB / 365.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.1337, allocations: 0 / 365.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.1337, allocations: 3.938 kB / 365.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1337, allocations: 3.984 kB / 365.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007203/0.1344, allocations: 0.5605 MB / 366.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1344, allocations: 0 / 366.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.385e-05/0.1345, allocations: 12 kB / 366.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1345, allocations: 0 / 366.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1345, allocations: 4 kB / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.1346, allocations: 4 kB / 366.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1346, allocations: 7.922 kB / 366.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.1349, allocations: 274.4 kB / 366.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.1349, allocations: 85.02 kB / 366.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.135, allocations: 4 kB / 366.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.198e-05/0.1351, allocations: 7.984 kB / 366.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.131e-05/0.1352, allocations: 27.91 kB / 366.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1352, allocations: 8 kB / 366.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.1353, allocations: 103 kB / 367 MB, free: 5.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1353, allocations: 0 / 367 MB, free: 5.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1356, allocations: 47.84 kB / 367 MB, free: 5.113 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: 17 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$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 (24): * Single equations (assignments): 20 * 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.0001196/0.1357, allocations: 99.19 kB / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.136, allocations: 179.7 kB / 367.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.136, allocations: 0 / 367.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1362, allocations: 80.34 kB / 367.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.1365, allocations: 20 kB / 367.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006643/0.1372, allocations: 386.8 kB / 367.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.1375, allocations: 0.7248 MB / 368.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.495e-05/0.1376, allocations: 25.94 kB / 368.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.1377, allocations: 19.44 kB / 368.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1377, allocations: 3.938 kB / 368.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of Templates: time 0.004466/0.1421, allocations: 1.538 MB / 370.1 MB, free: 1.996 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches