Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002035/0.002036, allocations: 181.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.098/3.098, allocations: 205.4 MB / 223.6 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.00112, allocations: 88.42 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005528/0.000553, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5488/0.5494, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1735/0.723, allocations: 75.2 MB / 450.9 MB, free: 5.453 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/0.7235, allocations: 67.95 kB / 451 MB, free: 5.387 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01213/0.7357, allocations: 2.84 MB / 453.8 MB, free: 2.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.7357, allocations: 0 / 453.8 MB, free: 2.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.617e-05/0.7358, allocations: 4 kB / 453.8 MB, free: 2.516 MB / 330.7 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.001131/0.7369, allocations: 448.8 kB / 454.3 MB, free: 2.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.375e-05/0.737, allocations: 8.031 kB / 454.3 MB, free: 2.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.7372, allocations: 24.66 kB / 454.3 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.7377, allocations: 228 kB / 454.5 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.446e-05/0.7377, allocations: 24.94 kB / 454.5 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.004e-05/0.7378, allocations: 28.38 kB / 454.6 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008025/0.7387, allocations: 240 kB / 454.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.7387, allocations: 192 / 454.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.27e-05/0.7388, allocations: 7.938 kB / 454.8 MB, free: 1.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.7388, allocations: 8 kB / 454.8 MB, free: 1.426 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.7393, allocations: 161.6 kB / 455 MB, free: 1.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.7413, allocations: 0.6781 MB / 455.6 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005196/0.7418, allocations: 178.7 kB / 455.8 MB, free: 360 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.742, allocations: 80.77 kB / 455.9 MB, free: 276 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.7421, allocations: 7.984 kB / 455.9 MB, free: 268 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003619/0.7425, allocations: 117.7 kB / 456 MB, free: 140 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 4.468e-06/0.7425, allocations: 7.938 kB / 456 MB, free: 132 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007453/0.7433, allocations: 213.9 kB / 456.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/0.7434, allocations: 59.39 kB / 456.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.7436, allocations: 148.5 kB / 456.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.482e-05/0.7437, allocations: 33.7 kB / 456.5 MB, free: 15.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.7438, allocations: 132.6 kB / 456.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.6e-05/0.7439, allocations: 63.19 kB / 456.7 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.7439, allocations: 4 kB / 456.7 MB, free: 15.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.7441, allocations: 330.8 kB / 457 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.7444, allocations: 62.89 kB / 457.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.7447, allocations: 132 kB / 457.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004389/0.7452, allocations: 175.7 kB / 457.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.7452, allocations: 4 kB / 457.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006958/0.7459, allocations: 245.3 kB / 457.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.746, allocations: 8 kB / 457.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.746, allocations: 0 / 457.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.746, allocations: 4 kB / 457.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.7463, allocations: 27.92 kB / 457.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.7463, allocations: 4 kB / 457.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.7465, allocations: 15.94 kB / 457.7 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.7466, allocations: 23.91 kB / 457.7 MB, free: 14.38 MB / 346.7 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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,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.0002869/0.7469, allocations: 157.9 kB / 457.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.165e-05/0.7469, allocations: 15.75 kB / 457.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005435/0.7475, allocations: 196.8 kB / 458 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.7475, allocations: 0 / 458 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.7475, allocations: 4 kB / 458 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.7475, allocations: 0 / 458 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.749, allocations: 0.5686 MB / 458.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.749, allocations: 3.938 kB / 458.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.7491, allocations: 19.92 kB / 458.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.7491, allocations: 0 / 458.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.7492, allocations: 8 kB / 458.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.7492, allocations: 0 / 458.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.7492, allocations: 3.938 kB / 458.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005512/0.7498, allocations: 275.2 kB / 458.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.655e-05/0.7499, allocations: 92.95 kB / 459 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.037e-05/0.7499, allocations: 7.984 kB / 459 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.7501, allocations: 8 kB / 459 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.7502, allocations: 35.83 kB / 459.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.7503, allocations: 4 kB / 459.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.787e-05/0.7504, allocations: 95.27 kB / 459.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7504, allocations: 0 / 459.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005386/0.7509, allocations: 51.91 kB / 459.2 MB, free: 12.74 MB / 346.7 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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,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.0002479/0.7512, allocations: 111.2 kB / 459.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005211/0.7517, allocations: 180 kB / 459.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.7517, allocations: 0 / 459.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.752, allocations: 79.86 kB / 459.6 MB, free: 12.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.7525, allocations: 23.92 kB / 459.6 MB, free: 12.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.7535, allocations: 405.9 kB / 460 MB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.754, allocations: 0.7362 MB / 460.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.944e-05/0.7541, allocations: 19.44 kB / 460.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7541, allocations: 0 / 460.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of Templates: time 0.007182/0.7613, allocations: 2.319 MB / 463.1 MB, free: 8.816 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches