Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001608/0.001608, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002373/0.002373, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.631/1.631, allocations: 227.4 MB / 246.4 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 61.31 kB / 306.4 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1371, allocations: 50.52 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003978/0.1411, allocations: 1.791 MB / 358.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008921/0.142, allocations: 315.1 kB / 359.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.1423, allocations: 0 / 359.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.1425, allocations: 15.81 kB / 359.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.869e-05/0.1426, allocations: 15.91 kB / 359.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004748/0.1431, allocations: 99.84 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.1435, allocations: 279.4 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004031/0.144, allocations: 181.5 kB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.1441, allocations: 95.69 kB / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.1443, allocations: 99.53 kB / 359.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.1443, allocations: 24 kB / 359.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.603e-05/0.1444, allocations: 28 kB / 359.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.1445, allocations: 59.83 kB / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1446, allocations: 107.4 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.145, allocations: 231.2 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.145, allocations: 0 / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.145, allocations: 0 / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.145, allocations: 4 kB / 360.3 MB, free: 11.07 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008429/0.1459, allocations: 498.9 kB / 360.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.1459, allocations: 12.03 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002575/0.1462, allocations: 36.64 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.1465, allocations: 216.2 kB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.1465, allocations: 20.94 kB / 361 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.1466, allocations: 36.31 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.147, allocations: 262.6 kB / 361.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1471, allocations: 192 / 361.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/0.1471, allocations: 19.94 kB / 361.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1471, allocations: 8 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.1474, allocations: 165.6 kB / 361.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.1485, allocations: 0.9594 MB / 362.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.1488, allocations: 185.4 kB / 362.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.149, allocations: 81.58 kB / 362.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.149, allocations: 4 kB / 362.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.1493, allocations: 140.3 kB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.1493, allocations: 0 / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004464/0.1497, allocations: 225.1 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.1498, allocations: 85.11 kB / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.1499, allocations: 149.2 kB / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.15, allocations: 37.7 kB / 363.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.662e-05/0.1501, allocations: 140.5 kB / 363.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.1502, allocations: 63.17 kB / 363.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.1503, allocations: 81.81 kB / 363.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1504, allocations: 330.8 kB / 364 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.1506, allocations: 67.69 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.1507, allocations: 144.4 kB / 364.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.151, allocations: 193 kB / 364.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.151, allocations: 0 / 364.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003612/0.1514, allocations: 253.2 kB / 364.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.1514, allocations: 11.98 kB / 364.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.1514, allocations: 4 kB / 364.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/0.1514, allocations: 8.219 kB / 364.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.1517, allocations: 31.92 kB / 364.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1517, allocations: 4 kB / 364.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1518, allocations: 27.75 kB / 364.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.1518, allocations: 12 kB / 364.7 MB, free: 6.293 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.000163/0.152, allocations: 165.6 kB / 364.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.152, allocations: 15.81 kB / 364.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.83e-05/0.1521, allocations: 16.84 kB / 364.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1521, allocations: 8 kB / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1521, allocations: 0 / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1521, allocations: 3.984 kB / 364.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007833/0.1529, allocations: 0.5781 MB / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1529, allocations: 0 / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.664e-05/0.153, allocations: 19.92 kB / 365.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/0.1531, allocations: 4 kB / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.1531, allocations: 7.938 kB / 365.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1531, allocations: 4 kB / 365.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.1532, allocations: 4 kB / 365.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004446/0.1536, allocations: 268.1 kB / 365.8 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.617e-05/0.1537, allocations: 92.92 kB / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.1537, allocations: 7.938 kB / 365.9 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1539, allocations: 4 kB / 365.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.154, allocations: 27.97 kB / 365.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.1541, allocations: 4 kB / 365.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.652e-05/0.1542, allocations: 99.27 kB / 366 MB, free: 4.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1542, allocations: 0 / 366 MB, free: 4.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.1545, allocations: 51.78 kB / 366.1 MB, free: 4.816 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001335/0.1546, allocations: 107.2 kB / 366.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003755/0.155, allocations: 196 kB / 366.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.155, allocations: 0 / 366.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.1552, allocations: 82.89 kB / 366.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.1555, allocations: 31.92 kB / 366.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007048/0.1562, allocations: 392.8 kB / 366.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.1566, allocations: 0.7326 MB / 367.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.599e-05/0.1567, allocations: 25.94 kB / 367.6 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.298e-05/0.1568, allocations: 23.44 kB / 367.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1568, allocations: 0 / 367.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of Templates: time 0.005443/0.1622, allocations: 1.663 MB / 369.3 MB, free: 1.527 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches