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.001067/0.001068, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002832, allocations: 8 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1437, allocations: 51.52 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002632/0.1464, allocations: 1.209 MB / 359.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.1474, allocations: 303.2 kB / 360.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.1477, allocations: 4 kB / 360.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.1479, allocations: 19.81 kB / 360.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.148, allocations: 7.922 kB / 360.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006404/0.1487, allocations: 79.91 kB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004362/0.1492, allocations: 223.5 kB / 360.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003901/0.1496, allocations: 138.2 kB / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.1497, allocations: 67.77 kB / 360.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1498, allocations: 71.61 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.1499, allocations: 12 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.863e-05/0.15, allocations: 19.98 kB / 360.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.197e-05/0.15, allocations: 35.84 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.77e-05/0.1501, allocations: 53.64 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.1504, allocations: 155.6 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1504, allocations: 0 / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1504, allocations: 4 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.1504, allocations: 0 / 361 MB, free: 11.27 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.0007068/0.1511, allocations: 434.8 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.1512, allocations: 8.031 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.1515, allocations: 31.7 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.1518, allocations: 222.8 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.1518, allocations: 20.56 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.1519, allocations: 32 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005314/0.1524, allocations: 243.4 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1525, allocations: 3.938 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.309e-05/0.1525, allocations: 11.98 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.1525, allocations: 8 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.1529, allocations: 153.6 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.1544, allocations: 0.7013 MB / 362.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.1549, allocations: 175.3 kB / 363 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.155, allocations: 81.2 kB / 363.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.1551, allocations: 4.188 kB / 363.1 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000287/0.1554, allocations: 111 kB / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.206e-06/0.1554, allocations: 0 / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005583/0.1559, allocations: 213.2 kB / 363.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.156, allocations: 63.39 kB / 363.5 MB, free: 8.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1562, allocations: 161.8 kB / 363.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.1563, allocations: 33.7 kB / 363.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1564, allocations: 128.6 kB / 363.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.759e-05/0.1565, allocations: 55.2 kB / 363.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/0.1565, allocations: 12 kB / 363.9 MB, free: 8.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1567, allocations: 326.8 kB / 364.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.1569, allocations: 60.62 kB / 364.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.1572, allocations: 124.1 kB / 364.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.1574, allocations: 68.45 kB / 364.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1574, allocations: 4 kB / 364.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004825/0.1579, allocations: 237.2 kB / 364.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.158, allocations: 4 kB / 364.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.158, allocations: 4 kB / 364.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.158, allocations: 7.984 kB / 364.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.1582, allocations: 27.94 kB / 364.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.1582, allocations: 3.984 kB / 364.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.1583, allocations: 31.97 kB / 364.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.1583, allocations: 15.94 kB / 364.8 MB, free: 7.25 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,$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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.1585, allocations: 157.7 kB / 364.9 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.1586, allocations: 11.91 kB / 364.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.196e-05/0.1586, allocations: 16.84 kB / 364.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1586, allocations: 7.938 kB / 364.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.1587, allocations: 0 / 364.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.1587, allocations: 3.984 kB / 364.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007953/0.1595, allocations: 0.5569 MB / 365.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1595, allocations: 0 / 365.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.806e-05/0.1596, allocations: 15.94 kB / 365.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.1596, allocations: 0 / 365.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.1596, allocations: 11.95 kB / 365.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1596, allocations: 0 / 365.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1596, allocations: 7.922 kB / 365.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.16, allocations: 274.4 kB / 365.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.934e-05/0.16, allocations: 85.02 kB / 365.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.1601, allocations: 7.938 kB / 365.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.1602, allocations: 11.94 kB / 365.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.82e-05/0.1603, allocations: 27.97 kB / 365.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1603, allocations: 4 kB / 365.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.1e-05/0.1604, allocations: 102.5 kB / 366 MB, free: 5.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1604, allocations: 4 kB / 366 MB, free: 5.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.1607, allocations: 43.84 kB / 366.1 MB, free: 5.816 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 (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.0001468/0.1608, allocations: 103.2 kB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003497/0.1612, allocations: 171.7 kB / 366.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1612, allocations: 0 / 366.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.1613, allocations: 80.3 kB / 366.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.1618, allocations: 27.92 kB / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007813/0.1626, allocations: 364.2 kB / 366.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.163, allocations: 0.7248 MB / 367.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.253e-05/0.1631, allocations: 25.89 kB / 367.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.534e-05/0.1632, allocations: 23.42 kB / 367.6 MB, free: 4.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1632, allocations: 0 / 367.6 MB, free: 4.25 MB / 302.1 MB Notification: Performance of Templates: time 0.004774/0.168, allocations: 1.479 MB / 369.1 MB, free: 2.777 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