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.001421/0.001421, allocations: 95.61 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 200.4 kB / 17.9 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003392, allocations: 7.984 kB / 306.6 MB, free: 1.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1377, allocations: 51.48 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002106/0.1398, allocations: 1.202 MB / 359.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007762/0.1406, allocations: 299.1 kB / 359.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.1408, allocations: 4 kB / 359.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.141, allocations: 23.8 kB / 359.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.476e-05/0.141, allocations: 11.92 kB / 359.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.1415, allocations: 87.83 kB / 359.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.1419, allocations: 151.7 kB / 359.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003512/0.1422, allocations: 138.1 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.1423, allocations: 71.75 kB / 360 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.1425, allocations: 71.67 kB / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.1426, allocations: 12 kB / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.1426, allocations: 12 kB / 360.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.765e-05/0.1427, allocations: 39.84 kB / 360.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.846e-05/0.1428, allocations: 53.64 kB / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.143, allocations: 151.7 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.143, allocations: 0 / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1431, allocations: 4 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1431, allocations: 0 / 360.4 MB, free: 11.82 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.000729/0.1438, allocations: 442.7 kB / 360.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1439, allocations: 12.03 kB / 360.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.429e-05/0.1439, allocations: 27.66 kB / 360.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.1443, allocations: 226.8 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.1443, allocations: 20.56 kB / 361.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.1444, allocations: 27.95 kB / 361.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.1448, allocations: 239.5 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1449, allocations: 3.938 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.1449, allocations: 8 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.1449, allocations: 8 kB / 361.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.1452, allocations: 157.7 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1463, allocations: 0.7014 MB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.1466, allocations: 171.3 kB / 362.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1467, allocations: 4.188 kB / 362.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.1469, allocations: 118.9 kB / 362.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1469, allocations: 4 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005023/0.1475, allocations: 217.2 kB / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.1475, allocations: 55.41 kB / 362.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.1477, allocations: 149.8 kB / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.1478, allocations: 41.69 kB / 363 MB, free: 9.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.148, allocations: 124.6 kB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.003e-05/0.1481, allocations: 67.19 kB / 363.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.1482, allocations: 4 kB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.1484, allocations: 330.8 kB / 363.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.1485, allocations: 60.62 kB / 363.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.1487, allocations: 136 kB / 363.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.1488, allocations: 64.53 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1488, allocations: 3.938 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003948/0.1492, allocations: 241.2 kB / 364 MB, free: 7.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.1493, allocations: 11.94 kB / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1493, allocations: 0 / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.1493, allocations: 4.219 kB / 364 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.1495, allocations: 35.92 kB / 364 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.1495, allocations: 4 kB / 364 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.1496, allocations: 35.69 kB / 364.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.1496, allocations: 12 kB / 364.1 MB, free: 7.852 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.0001778/0.1498, allocations: 157.7 kB / 364.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.173e-05/0.1499, allocations: 11.91 kB / 364.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000359/0.1502, allocations: 195.4 kB / 364.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1502, allocations: 4 kB / 364.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1502, allocations: 0 / 364.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.1503, allocations: 3.984 kB / 364.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007467/0.151, allocations: 0.5695 MB / 365 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.151, allocations: 0 / 365 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.191e-05/0.1511, allocations: 23.92 kB / 365 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1511, allocations: 0 / 365 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.1511, allocations: 11.98 kB / 365 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1512, allocations: 3.953 kB / 365 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1512, allocations: 0 / 365 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003695/0.1515, allocations: 275.2 kB / 365.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.1516, allocations: 88.95 kB / 365.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.1516, allocations: 8 kB / 365.4 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/0.1517, allocations: 8 kB / 365.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/0.1518, allocations: 31.91 kB / 365.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.1518, allocations: 4 kB / 365.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.963e-05/0.1519, allocations: 99.27 kB / 365.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1519, allocations: 0 / 365.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000312/0.1522, allocations: 51.84 kB / 365.6 MB, free: 6.215 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0001976/0.1524, allocations: 107.2 kB / 365.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.1528, allocations: 179.8 kB / 365.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1528, allocations: 0 / 365.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.1529, allocations: 83.91 kB / 366 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.1531, allocations: 12 kB / 366 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000641/0.1538, allocations: 384.1 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004066/0.1542, allocations: 0.7443 MB / 367.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.502e-05/0.1543, allocations: 21.95 kB / 367.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.1544, allocations: 23.42 kB / 367.1 MB, free: 4.617 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1544, allocations: 4 kB / 367.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of Templates: time 0.004698/0.1591, allocations: 1.654 MB / 368.8 MB, free: 2.973 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","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches