Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001332/0.001332, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.844/1.844, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007787/0.0007788, allocations: 90.38 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.23e-05/1.231e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4516/0.5633, allocations: 75.28 MB / 438.3 MB, free: 4.352 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.5637, allocations: 62.47 kB / 438.4 MB, free: 4.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007914/0.5716, allocations: 2.941 MB / 441.3 MB, free: 1.809 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.5716, allocations: 0 / 441.3 MB, free: 1.809 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.5716, allocations: 12 kB / 441.4 MB, free: 1.797 MB / 314.7 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.0005918/0.5722, allocations: 450.1 kB / 441.8 MB, free: 1.328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.559e-05/0.5723, allocations: 8.031 kB / 441.8 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.931e-05/0.5724, allocations: 23.72 kB / 441.8 MB, free: 1.297 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.5728, allocations: 224.3 kB / 442.1 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.5728, allocations: 8 kB / 442.1 MB, free: 1.047 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.5729, allocations: 20 kB / 442.1 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003267/0.5732, allocations: 137.8 kB / 442.2 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.5736, allocations: 233.8 kB / 442.4 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.5737, allocations: 3.938 kB / 442.4 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.5737, allocations: 0 / 442.4 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.5737, allocations: 8 kB / 442.5 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.5749, allocations: 0.9046 MB / 443.4 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.5752, allocations: 137.1 kB / 443.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.5753, allocations: 71.89 kB / 443.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.5753, allocations: 4.125 kB / 443.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.5755, allocations: 99.98 kB / 443.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.5755, allocations: 0 / 443.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003569/0.5759, allocations: 149.2 kB / 443.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.576, allocations: 59.16 kB / 443.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.5761, allocations: 145.2 kB / 444 MB, free: 15.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.5762, allocations: 33.52 kB / 444 MB, free: 15.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.5763, allocations: 150.3 kB / 444.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.5764, allocations: 49.55 kB / 444.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-06/0.5764, allocations: 0 / 444.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.5766, allocations: 325.5 kB / 444.6 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.977e-05/0.5767, allocations: 60.58 kB / 444.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.5769, allocations: 124.9 kB / 444.7 MB, free: 14.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.577, allocations: 57.25 kB / 444.8 MB, free: 14.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.577, allocations: 0 / 444.8 MB, free: 14.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003416/0.5773, allocations: 227.7 kB / 445 MB, free: 14.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.5774, allocations: 8.281 kB / 445 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.5774, allocations: 4 kB / 445 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.5774, allocations: 4 kB / 445 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.5776, allocations: 27.92 kB / 445.1 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.5776, allocations: 7.938 kB / 445.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.627e-05/0.5777, allocations: 15.89 kB / 445.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.5777, allocations: 15.44 kB / 445.1 MB, free: 14.29 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001444/0.5779, allocations: 123.5 kB / 445.2 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.514e-05/0.5779, allocations: 23.77 kB / 445.2 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003955/0.5783, allocations: 168.4 kB / 445.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.5783, allocations: 0 / 445.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5784, allocations: 4 kB / 445.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.5784, allocations: 3.984 kB / 445.4 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/0.5791, allocations: 0.5173 MB / 445.9 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5791, allocations: 4 kB / 445.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.629e-05/0.5792, allocations: 23.86 kB / 446 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.5792, allocations: 0 / 446 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.5792, allocations: 0 / 446 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.5792, allocations: 4 kB / 446 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5792, allocations: 0 / 446 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.5796, allocations: 251.7 kB / 446.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.739e-05/0.5796, allocations: 100.8 kB / 446.3 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.5797, allocations: 4 kB / 446.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.114e-05/0.5797, allocations: 4 kB / 446.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.5799, allocations: 23.59 kB / 446.3 MB, free: 13.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.5799, allocations: 11.36 kB / 446.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.745e-05/0.58, allocations: 98.84 kB / 446.4 MB, free: 13 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.58, allocations: 0 / 446.4 MB, free: 13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002796/0.5803, allocations: 32 kB / 446.5 MB, free: 12.97 MB / 330.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 (step.active,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,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0002003/0.5805, allocations: 103.2 kB / 446.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002963/0.5808, allocations: 162.1 kB / 446.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.81e-06/0.5808, allocations: 4 kB / 446.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.5809, allocations: 69.81 kB / 446.8 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.5812, allocations: 15.78 kB / 446.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005151/0.5817, allocations: 223.2 kB / 447 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.5821, allocations: 0.7446 MB / 447.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.943e-05/0.5822, allocations: 22.08 kB / 447.8 MB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.986e-05/0.5822, allocations: 27.42 kB / 447.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5822, allocations: 0 / 447.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of Templates: time 0.005294/0.5875, allocations: 1.612 MB / 449.4 MB, free: 10.05 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches