Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001051/0.001051, allocations: 177 kB / 8.7 MB, free: 384 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.714/1.714, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.000929/0.000929, allocations: 86.22 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.886e-06/8.896e-06, allocations: 4 kB / 315.5 MB, free: 22.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 47.58 MB / 363.1 MB, free: 7.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4585/0.5709, allocations: 75.3 MB / 438.4 MB, free: 4.309 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.5711, allocations: 67.09 kB / 438.4 MB, free: 4.277 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007734/0.5789, allocations: 2.928 MB / 441.4 MB, free: 1.781 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5789, allocations: 0 / 441.4 MB, free: 1.781 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.579, allocations: 7.984 kB / 441.4 MB, free: 1.773 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.0006046/0.5796, allocations: 434.1 kB / 441.8 MB, free: 1.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.5796, allocations: 11.97 kB / 441.8 MB, free: 1.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/0.5797, allocations: 27.7 kB / 441.8 MB, free: 1.281 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.58, allocations: 227.5 kB / 442 MB, free: 1.035 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.5801, allocations: 11.98 kB / 442.1 MB, free: 1.023 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.5801, allocations: 16 kB / 442.1 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003086/0.5804, allocations: 143.8 kB / 442.2 MB, free: 0.918 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.5809, allocations: 230.1 kB / 442.4 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.5809, allocations: 4 kB / 442.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.5809, allocations: 4 kB / 442.4 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.5809, allocations: 4 kB / 442.4 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.5821, allocations: 0.9001 MB / 443.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.5824, allocations: 135.6 kB / 443.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.5825, allocations: 73.64 kB / 443.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.5825, allocations: 4.188 kB / 443.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.5827, allocations: 104.9 kB / 443.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.5827, allocations: 0 / 443.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003203/0.583, allocations: 149.8 kB / 443.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.5831, allocations: 55.41 kB / 443.9 MB, free: 15.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.5832, allocations: 137.5 kB / 444 MB, free: 15.3 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.5833, allocations: 33.14 kB / 444 MB, free: 15.26 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.5834, allocations: 147.2 kB / 444.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.51e-05/0.5835, allocations: 54.09 kB / 444.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.5835, allocations: 0 / 444.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5837, allocations: 322.1 kB / 444.5 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.5838, allocations: 58.77 kB / 444.6 MB, free: 14.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.584, allocations: 129 kB / 444.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.5841, allocations: 58.03 kB / 444.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.5841, allocations: 0 / 444.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003249/0.5844, allocations: 211.4 kB / 445 MB, free: 14.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.5845, allocations: 11.95 kB / 445 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.5845, allocations: 7.938 kB / 445 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.5845, allocations: 4.281 kB / 445 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.5847, allocations: 35.36 kB / 445 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.5847, allocations: 4 kB / 445 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.5848, allocations: 19.83 kB / 445.1 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/0.5848, allocations: 11.56 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,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.0001318/0.585, allocations: 123.9 kB / 445.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.585, allocations: 11.91 kB / 445.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000393/0.5854, allocations: 168.4 kB / 445.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5854, allocations: 8 kB / 445.4 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.5854, allocations: 0 / 445.4 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.5854, allocations: 3.984 kB / 445.4 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007136/0.5862, allocations: 0.5246 MB / 445.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5862, allocations: 0 / 445.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.14e-05/0.5863, allocations: 15.94 kB / 445.9 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.5863, allocations: 11.98 kB / 445.9 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.5863, allocations: 4 kB / 445.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5863, allocations: 0 / 445.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.5863, allocations: 0 / 445.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.5866, allocations: 253.5 kB / 446.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.274e-05/0.5867, allocations: 92.95 kB / 446.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.5867, allocations: 7.938 kB / 446.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.31e-05/0.5868, allocations: 0 / 446.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.696e-05/0.5869, allocations: 27.78 kB / 446.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.5869, allocations: 7.984 kB / 446.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.059e-05/0.587, allocations: 94.59 kB / 446.4 MB, free: 13 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.587, allocations: 0 / 446.4 MB, free: 13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.5873, allocations: 28 kB / 446.4 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,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.0002134/0.5875, allocations: 111.1 kB / 446.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003164/0.5879, allocations: 155.8 kB / 446.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5879, allocations: 4.125 kB / 446.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.588, allocations: 69.94 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.0002105/0.5882, allocations: 19.83 kB / 446.8 MB, free: 12.67 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004894/0.5887, allocations: 222.2 kB / 447 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004239/0.5892, allocations: 0.744 MB / 447.8 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.131e-05/0.5893, allocations: 22.02 kB / 447.8 MB, free: 11.67 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.403e-05/0.5893, allocations: 23.42 kB / 447.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5893, allocations: 0 / 447.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of Templates: time 0.004805/0.5941, allocations: 1.608 MB / 449.4 MB, free: 10.05 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/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_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches