Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009702/0.0009704, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.2 MB / 219.8 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.0008225/0.0008226, allocations: 78.72 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.725e-05/2.727e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 47.56 MB / 370 MB, free: 1.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3474/0.454, allocations: 76.8 MB / 446.8 MB, free: 456 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.4543, allocations: 65.97 kB / 446.9 MB, free: 424 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00809/0.4624, allocations: 2.691 MB / 449.6 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4624, allocations: 0 / 449.6 MB, free: 14.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.4624, allocations: 4 kB / 449.6 MB, free: 14.09 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000695/0.4631, allocations: 479.4 kB / 450 MB, free: 13.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.4632, allocations: 12.03 kB / 450 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.633e-05/0.4633, allocations: 19.72 kB / 450.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.4635, allocations: 230.3 kB / 450.3 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.4636, allocations: 20.16 kB / 450.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.4636, allocations: 11.94 kB / 450.3 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.4639, allocations: 185.1 kB / 450.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.464, allocations: 3.938 kB / 450.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.464, allocations: 3.938 kB / 450.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.464, allocations: 4 kB / 450.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.4642, allocations: 121.9 kB / 450.6 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.4654, allocations: 0.7907 MB / 451.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.4656, allocations: 147.8 kB / 451.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.4657, allocations: 65.45 kB / 451.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.207e-05/0.4658, allocations: 4 kB / 451.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.466, allocations: 140.4 kB / 451.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.734e-06/0.466, allocations: 0 / 451.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003581/0.4664, allocations: 164.3 kB / 451.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.4665, allocations: 84.42 kB / 452 MB, free: 11.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.4666, allocations: 180.5 kB / 452.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.4667, allocations: 29.14 kB / 452.2 MB, free: 11.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.4668, allocations: 148.7 kB / 452.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.4668, allocations: 35.2 kB / 452.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.4668, allocations: 7.875 kB / 452.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.467, allocations: 332.3 kB / 452.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.576e-05/0.4671, allocations: 50.98 kB / 452.8 MB, free: 10.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.4672, allocations: 117 kB / 452.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.4673, allocations: 63.03 kB / 453 MB, free: 10.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4673, allocations: 0 / 453 MB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003297/0.4677, allocations: 220.6 kB / 453.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.4677, allocations: 8 kB / 453.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4677, allocations: 0 / 453.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.4677, allocations: 7.984 kB / 453.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.4679, allocations: 39.11 kB / 453.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.4679, allocations: 0 / 453.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.4681, allocations: 39.62 kB / 453.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.4682, allocations: 15.89 kB / 453.3 MB, free: 10.54 MB / 330.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.388e-05/0.4683, allocations: 115.8 kB / 453.4 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.4683, allocations: 23.66 kB / 453.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003597/0.4687, allocations: 196.4 kB / 453.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.4687, allocations: 8 kB / 453.6 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4687, allocations: 0 / 453.6 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4687, allocations: 0 / 453.6 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.469, allocations: 266.2 kB / 453.9 MB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.469, allocations: 0 / 453.9 MB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.4691, allocations: 31.3 kB / 453.9 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4691, allocations: 0 / 453.9 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.4691, allocations: 0 / 453.9 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4691, allocations: 4 kB / 453.9 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4691, allocations: 0 / 453.9 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.4694, allocations: 221.1 kB / 454.1 MB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.077e-05/0.4695, allocations: 88.92 kB / 454.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.4696, allocations: 7.375 kB / 454.2 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.4697, allocations: 27.97 kB / 454.2 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.777e-05/0.4698, allocations: 19.3 kB / 454.3 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.4698, allocations: 7.984 kB / 454.3 MB, free: 9.562 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001095/0.4699, allocations: 140.4 kB / 454.4 MB, free: 9.445 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4699, allocations: 0 / 454.4 MB, free: 9.445 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.4702, allocations: 43.3 kB / 454.5 MB, free: 9.406 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001764/0.4704, allocations: 103.5 kB / 454.6 MB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003032/0.4707, allocations: 154 kB / 454.7 MB, free: 9.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4707, allocations: 0 / 454.7 MB, free: 9.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.4709, allocations: 73.33 kB / 454.8 MB, free: 9.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.4712, allocations: 44.38 kB / 454.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006011/0.4718, allocations: 263 kB / 455.1 MB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.4721, allocations: 0.744 MB / 455.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.4723, allocations: 33.52 kB / 455.9 MB, free: 8.039 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.4723, allocations: 19.62 kB / 455.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4723, allocations: 0 / 455.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of Templates: time 0.004639/0.477, allocations: 1.825 MB / 457.7 MB, free: 6.211 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches