Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008492/0.0008492, allocations: 97.98 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.627e-05, allocations: 4 kB / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.0917, allocations: 50.41 MB / 394.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.267/0.3588, allocations: 77.59 MB / 471.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.3591, allocations: 63.97 kB / 471.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008531/0.3676, allocations: 2.729 MB / 474.6 MB, free: 7.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3677, allocations: 0 / 474.6 MB, free: 7.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.3677, allocations: 4 kB / 474.6 MB, free: 7.16 MB / 346.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.0008298/0.3686, allocations: 484.1 kB / 475.1 MB, free: 6.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.3686, allocations: 12.03 kB / 475.1 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/0.3687, allocations: 19.72 kB / 475.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.369, allocations: 238.5 kB / 475.4 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.369, allocations: 12.28 kB / 475.4 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.3691, allocations: 15.94 kB / 475.4 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.3694, allocations: 179 kB / 475.6 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3694, allocations: 7.953 kB / 475.6 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.3694, allocations: 4 kB / 475.6 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/0.3695, allocations: 4 kB / 475.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.3697, allocations: 123.9 kB / 475.7 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.3707, allocations: 0.7937 MB / 476.5 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002415/0.371, allocations: 141.1 kB / 476.6 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.459e-05/0.3711, allocations: 65.83 kB / 476.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.633e-05/0.3711, allocations: 8.125 kB / 476.7 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.3714, allocations: 142.1 kB / 476.8 MB, free: 4.734 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.3714, allocations: 0 / 476.8 MB, free: 4.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.000311/0.3717, allocations: 161.4 kB / 477 MB, free: 4.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.3717, allocations: 85.11 kB / 477.1 MB, free: 4.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.3719, allocations: 174 kB / 477.3 MB, free: 4.289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.3719, allocations: 29.7 kB / 477.3 MB, free: 4.254 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.372, allocations: 152 kB / 477.4 MB, free: 4.102 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.3721, allocations: 39.45 kB / 477.5 MB, free: 4.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.3721, allocations: 8 kB / 477.5 MB, free: 4.055 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.3722, allocations: 326.8 kB / 477.8 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3723, allocations: 59.97 kB / 477.9 MB, free: 3.668 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.3724, allocations: 103.8 kB / 478 MB, free: 3.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.3725, allocations: 83.97 kB / 478 MB, free: 3.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3725, allocations: 3.953 kB / 478 MB, free: 3.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003028/0.3728, allocations: 217.1 kB / 478.3 MB, free: 3.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3729, allocations: 4 kB / 478.3 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3729, allocations: 8.188 kB / 478.3 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.3729, allocations: 4 kB / 478.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.3731, allocations: 35.91 kB / 478.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3731, allocations: 4 kB / 478.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.3733, allocations: 27.98 kB / 478.3 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.3733, allocations: 4 kB / 478.3 MB, free: 3.152 MB / 346.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 8.718e-05/0.3734, allocations: 132.8 kB / 478.5 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.3734, allocations: 23.67 kB / 478.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003259/0.3738, allocations: 183.1 kB / 478.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3738, allocations: 0 / 478.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.3738, allocations: 4 kB / 478.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3738, allocations: 3.984 kB / 478.7 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002373/0.374, allocations: 261.6 kB / 478.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.374, allocations: 3.938 kB / 478.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.3742, allocations: 27.94 kB / 479 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.3742, allocations: 7.984 kB / 479 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3742, allocations: 4 kB / 479 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3742, allocations: 0 / 479 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3742, allocations: 4 kB / 479 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/0.3745, allocations: 220.5 kB / 479.2 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.3746, allocations: 92.91 kB / 479.3 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.3746, allocations: 7.984 kB / 479.3 MB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.3748, allocations: 19.98 kB / 479.3 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.558e-05/0.3748, allocations: 15.97 kB / 479.3 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3748, allocations: 4 kB / 479.3 MB, free: 2.047 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.375, allocations: 148.4 kB / 479.5 MB, free: 1.902 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.375, allocations: 4 kB / 479.5 MB, free: 1.898 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.3752, allocations: 35.94 kB / 479.5 MB, free: 1.863 MB / 346.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.0001466/0.3754, allocations: 115.6 kB / 479.6 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000257/0.3756, allocations: 143.8 kB / 479.8 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3756, allocations: 0 / 479.8 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.3758, allocations: 67.92 kB / 479.8 MB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.376, allocations: 46.97 kB / 479.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004707/0.3765, allocations: 258.7 kB / 480.1 MB, free: 1.215 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3768, allocations: 0.7399 MB / 480.9 MB, free: 456 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.3769, allocations: 41.52 kB / 480.9 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.377, allocations: 15.44 kB / 480.9 MB, free: 396 kB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.377, allocations: 0 / 480.9 MB, free: 396 kB / 346.7 MB Notification: Performance of Templates: time 0.0043/0.3813, allocations: 1.818 MB / 482.8 MB, free: 14.59 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches