Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002204/0.002204, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.045/2.045, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001068/0.001068, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.601e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.0913, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3917/0.483, allocations: 75.72 MB / 444.8 MB, free: 1.445 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.4833, allocations: 64.91 kB / 444.9 MB, free: 1.414 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01235/0.4957, allocations: 2.973 MB / 447.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4958, allocations: 4 kB / 447.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.4958, allocations: 8 kB / 447.8 MB, free: 14.82 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007457/0.4965, allocations: 439.5 kB / 448.3 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.4966, allocations: 8.031 kB / 448.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.225e-05/0.4967, allocations: 27.66 kB / 448.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003699/0.4971, allocations: 226.3 kB / 448.5 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.4972, allocations: 24.25 kB / 448.5 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.044e-05/0.4972, allocations: 27.5 kB / 448.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/0.4979, allocations: 272.8 kB / 448.8 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.4979, allocations: 3.984 kB / 448.8 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.4979, allocations: 7.75 kB / 448.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.498, allocations: 4 kB / 448.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.4984, allocations: 159.5 kB / 449 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.5, allocations: 0.9545 MB / 450 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/0.5005, allocations: 157.2 kB / 450.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.5007, allocations: 76.22 kB / 450.2 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.5007, allocations: 192 / 450.2 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.501, allocations: 106.4 kB / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 4.408e-06/0.501, allocations: 4 kB / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004787/0.5015, allocations: 164 kB / 450.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.5016, allocations: 59.39 kB / 450.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.5018, allocations: 138.4 kB / 450.7 MB, free: 12.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/0.5018, allocations: 37.39 kB / 450.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.502, allocations: 218.2 kB / 450.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.5021, allocations: 50.09 kB / 451 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.5021, allocations: 10.5 kB / 451 MB, free: 11.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.5023, allocations: 329.1 kB / 451.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.5025, allocations: 54.16 kB / 451.3 MB, free: 11.57 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.5027, allocations: 142.1 kB / 451.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.5029, allocations: 69.33 kB / 451.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.503, allocations: 0 / 451.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006171/0.5036, allocations: 243.8 kB / 451.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.5036, allocations: 4 kB / 451.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5037, allocations: 7.938 kB / 451.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/0.5037, allocations: 4 kB / 451.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00027/0.504, allocations: 35.94 kB / 451.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.504, allocations: 8 kB / 451.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.5042, allocations: 19.28 kB / 451.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.431e-05/0.5043, allocations: 15.31 kB / 451.9 MB, free: 11.1 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,SetBoolean1.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.0001687/0.5044, allocations: 126.7 kB / 452 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.5045, allocations: 19.84 kB / 452 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.505, allocations: 182.7 kB / 452.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.984e-06/0.5051, allocations: 8 kB / 452.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5051, allocations: 4 kB / 452.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.5051, allocations: 0 / 452.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.5062, allocations: 0.5899 MB / 452.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.5063, allocations: 0 / 452.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.5065, allocations: 12 kB / 452.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.5065, allocations: 0 / 452.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.5065, allocations: 7.359 kB / 452.8 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.126e-05/0.5065, allocations: 15.88 kB / 452.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5065, allocations: 0 / 452.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004493/0.507, allocations: 262.2 kB / 453.1 MB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.5071, allocations: 88.92 kB / 453.2 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.5071, allocations: 11.23 kB / 453.2 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.5073, allocations: 7.938 kB / 453.2 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5074, allocations: 27.08 kB / 453.2 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.5075, allocations: 11.98 kB / 453.2 MB, free: 9.816 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.936e-05/0.5076, allocations: 98.16 kB / 453.3 MB, free: 9.727 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5076, allocations: 0 / 453.3 MB, free: 9.727 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004331/0.508, allocations: 41.62 kB / 453.4 MB, free: 9.695 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,SetBoolean1.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.0002005/0.5082, allocations: 114.3 kB / 453.5 MB, free: 9.578 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004953/0.5087, allocations: 173.2 kB / 453.6 MB, free: 9.449 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5088, allocations: 4.125 kB / 453.7 MB, free: 9.445 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.509, allocations: 75.44 kB / 453.7 MB, free: 9.391 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.5093, allocations: 19.25 kB / 453.7 MB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007168/0.51, allocations: 258.9 kB / 454 MB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.5104, allocations: 0.7442 MB / 454.7 MB, free: 8.355 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.5105, allocations: 26.61 kB / 454.8 MB, free: 8.332 MB / 330.7 MB Notification: Performance of SimCode: time 1.352e-06/0.5105, allocations: 0 / 454.8 MB, free: 8.332 MB / 330.7 MB Notification: Performance of Templates: time 0.009599/0.5201, allocations: 2.328 MB / 457.1 MB, free: 6.027 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches