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.001173/0.001173, allocations: 115.2 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 59.5 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1426, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003392/0.146, allocations: 1.575 MB / 358.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008423/0.1469, allocations: 315 kB / 358.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.1471, allocations: 4 kB / 358.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002015/0.1473, allocations: 11.88 kB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.449e-05/0.1473, allocations: 19.84 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.1478, allocations: 95.91 kB / 359 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.1481, allocations: 255.5 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.1485, allocations: 166.3 kB / 359.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.1486, allocations: 87.77 kB / 359.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1487, allocations: 95.53 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.1488, allocations: 20 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.887e-05/0.1489, allocations: 28 kB / 359.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.1489, allocations: 67.75 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.1491, allocations: 95.53 kB / 359.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.1493, allocations: 219.3 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1493, allocations: 0 / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1494, allocations: 0 / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1494, allocations: 0 / 360 MB, free: 11.39 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.0007412/0.1501, allocations: 494.7 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.1502, allocations: 8.031 kB / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.1504, allocations: 28.73 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.1507, allocations: 220.1 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.1507, allocations: 24.88 kB / 360.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.7e-05/0.1508, allocations: 24.38 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000404/0.1512, allocations: 240 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1512, allocations: 192 / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.1512, allocations: 19.92 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.1512, allocations: 4 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002729/0.1515, allocations: 153.7 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009867/0.1525, allocations: 0.6973 MB / 361.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.1528, allocations: 173.4 kB / 362 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1529, allocations: 80.78 kB / 362.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.153, allocations: 4 kB / 362.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.1533, allocations: 115.3 kB / 362.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1533, allocations: 0 / 362.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004028/0.1537, allocations: 226.6 kB / 362.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.1537, allocations: 59.34 kB / 362.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1539, allocations: 157.2 kB / 362.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.1539, allocations: 37.7 kB / 362.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.102e-05/0.154, allocations: 124.6 kB / 362.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.282e-05/0.154, allocations: 63.19 kB / 362.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.855e-05/0.1541, allocations: 70.02 kB / 363 MB, free: 8.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1543, allocations: 330.8 kB / 363.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.1544, allocations: 68.62 kB / 363.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.1546, allocations: 116.2 kB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.1548, allocations: 179.2 kB / 363.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1549, allocations: 0 / 363.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003437/0.1552, allocations: 237.4 kB / 363.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.1553, allocations: 8 kB / 363.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1553, allocations: 3.938 kB / 363.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.1553, allocations: 4 kB / 363.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.1554, allocations: 35.86 kB / 363.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.1555, allocations: 7.984 kB / 363.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.777e-05/0.1556, allocations: 27.69 kB / 364 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.1556, allocations: 12 kB / 364 MB, free: 7.125 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.0001723/0.1558, allocations: 153.9 kB / 364.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.1558, allocations: 15.84 kB / 364.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.638e-05/0.1559, allocations: 16.84 kB / 364.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1559, allocations: 4 kB / 364.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.1559, allocations: 0 / 364.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.1559, allocations: 7.969 kB / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007378/0.1567, allocations: 0.548 MB / 364.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1567, allocations: 4 kB / 364.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.1567, allocations: 15.94 kB / 364.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1568, allocations: 0 / 364.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1568, allocations: 8 kB / 364.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1568, allocations: 0 / 364.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1568, allocations: 7.922 kB / 364.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.1571, allocations: 259.3 kB / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.1572, allocations: 92.86 kB / 365.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.1572, allocations: 4 kB / 365.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.318e-05/0.1573, allocations: 15.98 kB / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/0.1574, allocations: 23.91 kB / 365.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.1574, allocations: 8 kB / 365.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.514e-05/0.1574, allocations: 99.2 kB / 365.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1575, allocations: 0 / 365.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.1577, allocations: 43.91 kB / 365.3 MB, free: 5.715 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.0001397/0.1579, allocations: 103.2 kB / 365.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003465/0.1582, allocations: 195.6 kB / 365.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1583, allocations: 0 / 365.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.1584, allocations: 82.95 kB / 365.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.1587, allocations: 27.91 kB / 365.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006746/0.1594, allocations: 384.2 kB / 366 MB, free: 4.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.1598, allocations: 0.7323 MB / 366.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.449e-05/0.1598, allocations: 17.95 kB / 366.8 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.121e-05/0.1599, allocations: 23.42 kB / 366.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of SimCode: time 3.106e-06/0.1599, allocations: 0 / 366.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of Templates: time 0.005055/0.165, allocations: 1.662 MB / 368.5 MB, free: 2.449 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