Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00237/0.002376, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 89.3 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.859e-05/1.871e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3251, allocations: 47.57 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1206/0.4457, allocations: 76.14 MB / 438.5 MB, free: 10.18 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.446, allocations: 59.97 kB / 438.5 MB, free: 10.12 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0124/0.4585, allocations: 2.678 MB / 441.2 MB, free: 7.473 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4585, allocations: 0 / 441.2 MB, free: 7.473 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.291e-05/0.4586, allocations: 4 kB / 441.2 MB, free: 7.469 MB / 331.1 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.0009727/0.4595, allocations: 474.4 kB / 441.7 MB, free: 6.961 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.4596, allocations: 8.031 kB / 441.7 MB, free: 6.953 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.69e-05/0.4597, allocations: 27.7 kB / 441.7 MB, free: 6.926 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.4601, allocations: 229.7 kB / 441.9 MB, free: 6.664 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.4601, allocations: 15.94 kB / 441.9 MB, free: 6.648 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.4602, allocations: 8 kB / 442 MB, free: 6.641 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003459/0.4605, allocations: 108.5 kB / 442.1 MB, free: 6.535 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003721/0.4609, allocations: 158.8 kB / 442.2 MB, free: 6.363 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.4609, allocations: 0 / 442.2 MB, free: 6.363 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.461, allocations: 0.75 kB / 442.2 MB, free: 6.363 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.979e-05/0.461, allocations: 8 kB / 442.2 MB, free: 6.355 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.4626, allocations: 0.7598 MB / 443 MB, free: 5.547 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.463, allocations: 134.3 kB / 443.1 MB, free: 5.398 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.4632, allocations: 61.77 kB / 443.2 MB, free: 5.332 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.139e-05/0.4633, allocations: 8 kB / 443.2 MB, free: 5.324 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.4635, allocations: 121.1 kB / 443.3 MB, free: 5.188 MB / 331.1 MB Notification: Performance of pre-optimization done (n=15): time 2.245e-06/0.4636, allocations: 0 / 443.3 MB, free: 5.188 MB / 331.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005021/0.4641, allocations: 165.1 kB / 443.5 MB, free: 5.023 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.4641, allocations: 81.11 kB / 443.5 MB, free: 4.926 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.4644, allocations: 167.1 kB / 443.7 MB, free: 4.75 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.4644, allocations: 33.69 kB / 443.7 MB, free: 4.711 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.4646, allocations: 202.7 kB / 443.9 MB, free: 4.508 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.244e-05/0.4646, allocations: 35.45 kB / 444 MB, free: 4.473 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.4647, allocations: 0 / 444 MB, free: 4.473 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4648, allocations: 318.8 kB / 444.3 MB, free: 4.152 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.465, allocations: 50.42 kB / 444.3 MB, free: 4.105 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.4652, allocations: 114.8 kB / 444.4 MB, free: 3.969 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.4654, allocations: 65.89 kB / 444.5 MB, free: 3.906 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4654, allocations: 3.953 kB / 444.5 MB, free: 3.902 MB / 331.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004936/0.4659, allocations: 194.5 kB / 444.7 MB, free: 3.707 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.466, allocations: 5.25 kB / 444.7 MB, free: 3.703 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.466, allocations: 4 kB / 444.7 MB, free: 3.699 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.466, allocations: 4 kB / 444.7 MB, free: 3.695 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.4664, allocations: 30.42 kB / 444.7 MB, free: 3.668 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.762e-05/0.4664, allocations: 11.92 kB / 444.8 MB, free: 3.656 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.4667, allocations: 31.98 kB / 444.8 MB, free: 3.625 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.4667, allocations: 12 kB / 444.8 MB, free: 3.613 MB / 331.1 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 0.0001242/0.4669, allocations: 110 kB / 444.9 MB, free: 3.5 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.4669, allocations: 19.77 kB / 444.9 MB, free: 3.48 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005357/0.4675, allocations: 188.2 kB / 445.1 MB, free: 3.297 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.4675, allocations: 0 / 445.1 MB, free: 3.297 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.4675, allocations: 0 / 445.1 MB, free: 3.297 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4675, allocations: 4 kB / 445.1 MB, free: 3.293 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.4679, allocations: 238.1 kB / 445.3 MB, free: 3.023 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4679, allocations: 0 / 445.3 MB, free: 3.023 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.4681, allocations: 27.92 kB / 445.4 MB, free: 2.996 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.4681, allocations: 3.953 kB / 445.4 MB, free: 2.992 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.4682, allocations: 3.984 kB / 445.4 MB, free: 2.988 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.4682, allocations: 5.875 kB / 445.4 MB, free: 2.984 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4682, allocations: 0 / 445.4 MB, free: 2.984 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004455/0.4687, allocations: 205.2 kB / 445.6 MB, free: 2.758 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.4687, allocations: 92.88 kB / 445.7 MB, free: 2.648 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.4688, allocations: 0 / 445.7 MB, free: 2.648 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.469, allocations: 23.97 kB / 445.7 MB, free: 2.625 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.546e-05/0.4691, allocations: 25.59 kB / 445.7 MB, free: 2.602 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.4692, allocations: 8 kB / 445.7 MB, free: 2.594 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.4694, allocations: 128.2 kB / 445.9 MB, free: 2.469 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4694, allocations: 0 / 445.9 MB, free: 2.469 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.4698, allocations: 35.91 kB / 445.9 MB, free: 2.434 MB / 331.1 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.0001817/0.47, allocations: 99.19 kB / 446 MB, free: 2.324 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004/0.4704, allocations: 135.8 kB / 446.1 MB, free: 2.191 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4704, allocations: 4.375 kB / 446.1 MB, free: 2.188 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.4706, allocations: 71.92 kB / 446.2 MB, free: 2.117 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.4711, allocations: 30.12 kB / 446.2 MB, free: 2.09 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.4718, allocations: 276.5 kB / 446.5 MB, free: 1.789 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.4722, allocations: 0.7399 MB / 447.2 MB, free: 1.02 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.938e-05/0.4723, allocations: 19.42 kB / 447.3 MB, free: 1 MB / 331.1 MB Notification: Performance of SimCode: time 2.524e-06/0.4724, allocations: 0 / 447.3 MB, free: 1 MB / 331.1 MB Notification: Performance of Templates: time 0.006503/0.4789, allocations: 2.347 MB / 449.6 MB, free: 14.7 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches