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.001258/0.001258, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 61.08 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1376, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003275/0.1409, allocations: 1.493 MB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007192/0.1417, allocations: 280.8 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1418, allocations: 4 kB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.142, allocations: 23.69 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-05/0.1421, allocations: 19.78 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004194/0.1425, allocations: 111.9 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.1429, allocations: 255.5 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003438/0.1432, allocations: 166.3 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.91e-05/0.1433, allocations: 91.69 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.1435, allocations: 91.61 kB / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.1435, allocations: 24 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.1436, allocations: 24 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.928e-05/0.1437, allocations: 63.81 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1438, allocations: 99.47 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.1441, allocations: 231.2 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1441, allocations: 0 / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1441, allocations: 0 / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1442, allocations: 0 / 361.8 MB, free: 10.38 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.0007325/0.1449, allocations: 498.4 kB / 362.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1449, allocations: 12.03 kB / 362.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.1452, allocations: 28.73 kB / 362.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.1456, allocations: 220.1 kB / 362.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.1456, allocations: 24.94 kB / 362.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.1456, allocations: 24.38 kB / 362.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.1461, allocations: 248 kB / 362.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1461, allocations: 192 / 362.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.1461, allocations: 11.94 kB / 362.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.1462, allocations: 8 kB / 362.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.1465, allocations: 157.7 kB / 363 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1476, allocations: 0.6856 MB / 363.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.1479, allocations: 162.9 kB / 363.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.148, allocations: 84.83 kB / 364 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.148, allocations: 4 kB / 364 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.1482, allocations: 115.2 kB / 364.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 6.903e-06/0.1483, allocations: 7.984 kB / 364.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004325/0.1487, allocations: 217.1 kB / 364.3 MB, free: 7.719 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.1488, allocations: 59.41 kB / 364.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.1489, allocations: 153.2 kB / 364.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.1489, allocations: 41.7 kB / 364.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.443e-05/0.149, allocations: 124.6 kB / 364.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.17e-05/0.1491, allocations: 63.19 kB / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.881e-05/0.1492, allocations: 81.94 kB / 364.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1494, allocations: 322.8 kB / 365.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.1495, allocations: 64.62 kB / 365.2 MB, free: 6.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.1497, allocations: 128.1 kB / 365.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.1499, allocations: 174.7 kB / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.15, allocations: 0 / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003692/0.1503, allocations: 233.3 kB / 365.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1504, allocations: 11.98 kB / 365.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.1504, allocations: 0 / 365.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.1504, allocations: 4 kB / 365.7 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.1505, allocations: 40.08 kB / 365.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1506, allocations: 4 kB / 365.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.673e-05/0.1507, allocations: 27.69 kB / 365.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.1507, allocations: 8 kB / 365.8 MB, free: 6.109 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.0001492/0.1508, allocations: 153.8 kB / 366 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.1509, allocations: 15.84 kB / 366 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.696e-05/0.1509, allocations: 16.84 kB / 366 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1509, allocations: 4 kB / 366 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.151, allocations: 4 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.151, allocations: 3.984 kB / 366 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007188/0.1517, allocations: 0.5481 MB / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1517, allocations: 0 / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.718e-05/0.1518, allocations: 19.88 kB / 366.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1518, allocations: 0 / 366.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.1518, allocations: 4 kB / 366.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1518, allocations: 7.984 kB / 366.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1518, allocations: 0 / 366.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002981/0.1521, allocations: 267.9 kB / 366.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.1522, allocations: 92.86 kB / 366.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.1522, allocations: 8 kB / 366.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.357e-05/0.1523, allocations: 11.92 kB / 367 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.1524, allocations: 23.97 kB / 367 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.1524, allocations: 11.94 kB / 367 MB, free: 4.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.573e-05/0.1525, allocations: 91.27 kB / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1525, allocations: 4 kB / 367.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.1528, allocations: 43.91 kB / 367.1 MB, free: 4.695 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.active,transition1.enableFire,initialStep.active,$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 (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.0001451/0.1529, allocations: 107.4 kB / 367.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003134/0.1533, allocations: 180.9 kB / 367.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/0.1533, allocations: 8 kB / 367.4 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.1534, allocations: 71.91 kB / 367.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.1537, allocations: 40.28 kB / 367.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006383/0.1544, allocations: 320.1 kB / 367.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.1548, allocations: 0.7284 MB / 368.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.328e-05/0.1549, allocations: 21.95 kB / 368.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.893e-05/0.1549, allocations: 23.44 kB / 368.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.155, allocations: 0 / 368.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of Templates: time 0.004929/0.1599, allocations: 1.635 MB / 370.2 MB, free: 1.52 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 -s cvode -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/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_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches