Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008806/0.0008806, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001406/0.002287, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001137/0.002207, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.02/1.02, allocations: 177.2 MB / 189.8 MB, free: 5.266 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1092/1.129, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.115e-05/1.25e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002166/0.002179, allocations: 1.944 MB / 246.6 MB, free: 12.28 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008531/0.003032, allocations: 0.658 MB / 247.3 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-05/0.003131, allocations: 3.938 kB / 247.3 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.617e-05/0.003208, allocations: 27.67 kB / 247.3 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.932e-05/0.003307, allocations: 43.59 kB / 247.4 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.003532, allocations: 79.72 kB / 247.5 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.003728, allocations: 175.3 kB / 247.6 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.00386, allocations: 42.53 kB / 247.7 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.004054, allocations: 128.6 kB / 247.8 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.004203, allocations: 59.8 kB / 247.9 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.004229, allocations: 12 kB / 247.9 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.004332, allocations: 31.92 kB / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.076e-05/0.004393, allocations: 35.88 kB / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.999e-05/0.004443, allocations: 43.86 kB / 248 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002183/0.004661, allocations: 135.4 kB / 248.1 MB, free: 10.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.222e-05/0.004674, allocations: 0 / 248.1 MB, free: 10.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.004674, allocations: 4 kB / 248.1 MB, free: 10.8 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.004688, allocations: 0 / 248.1 MB, free: 10.8 MB / 250.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.0006762/0.005364, allocations: 443.8 kB / 248.5 MB, free: 10.34 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.005404, allocations: 11.97 kB / 248.6 MB, free: 10.33 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.005583, allocations: 114 kB / 248.7 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.005788, allocations: 165.4 kB / 248.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.005817, allocations: 24.58 kB / 248.9 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.005837, allocations: 12.38 kB / 248.9 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.006055, allocations: 163.5 kB / 249 MB, free: 9.801 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.006066, allocations: 192 / 249 MB, free: 9.801 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.006082, allocations: 4.375 kB / 249 MB, free: 9.797 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.006107, allocations: 7.938 kB / 249 MB, free: 9.789 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.229e-05/0.006189, allocations: 64.3 kB / 249.1 MB, free: 9.727 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005675/0.006757, allocations: 0.5671 MB / 249.7 MB, free: 9.129 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.006918, allocations: 182.6 kB / 249.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.677e-05/0.006954, allocations: 33.92 kB / 249.9 MB, free: 8.891 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.006986, allocations: 4 kB / 249.9 MB, free: 8.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001302/0.007116, allocations: 107.4 kB / 250 MB, free: 8.766 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.007118, allocations: 4 kB / 250 MB, free: 8.762 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001982/0.007316, allocations: 119.6 kB / 250.1 MB, free: 8.637 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.007362, allocations: 85.11 kB / 250.2 MB, free: 8.535 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.007465, allocations: 190.5 kB / 250.4 MB, free: 8.336 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.00748, allocations: 29.7 kB / 250.4 MB, free: 8.301 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.209e-05/0.007552, allocations: 136.3 kB / 250.5 MB, free: 8.164 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.007577, allocations: 43.61 kB / 250.6 MB, free: 8.121 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.007626, allocations: 45.64 kB / 250.6 MB, free: 8.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.007719, allocations: 330.8 kB / 251 MB, free: 7.738 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.246e-05/0.007752, allocations: 26.81 kB / 251 MB, free: 7.711 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.688e-05/0.007809, allocations: 75.66 kB / 251.1 MB, free: 7.613 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.007919, allocations: 131.3 kB / 251.2 MB, free: 7.457 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007921, allocations: 0 / 251.2 MB, free: 7.457 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001496/0.00807, allocations: 139.2 kB / 251.3 MB, free: 7.312 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.008087, allocations: 4 kB / 251.3 MB, free: 7.309 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.008094, allocations: 4 kB / 251.3 MB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.008116, allocations: 7.938 kB / 251.3 MB, free: 7.297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.008227, allocations: 36.03 kB / 251.4 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.008236, allocations: 7.938 kB / 251.4 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.014e-05/0.008296, allocations: 23.88 kB / 251.4 MB, free: 7.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.008307, allocations: 8 kB / 251.4 MB, free: 7.223 MB / 250.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,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.647e-05/0.008403, allocations: 124.6 kB / 251.5 MB, free: 7.09 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.008426, allocations: 24.02 kB / 251.5 MB, free: 7.066 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.008578, allocations: 103 kB / 251.6 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.008583, allocations: 7.938 kB / 251.7 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.008585, allocations: 0 / 251.7 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.008591, allocations: 0 / 251.7 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.008724, allocations: 129.7 kB / 251.8 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.008726, allocations: 0 / 251.8 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.523e-05/0.008782, allocations: 19.98 kB / 251.8 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.938e-05/0.008801, allocations: 15.86 kB / 251.8 MB, free: 6.777 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.008805, allocations: 4 kB / 251.8 MB, free: 6.773 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.008814, allocations: 4 kB / 251.8 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.00882, allocations: 11.92 kB / 251.8 MB, free: 6.758 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.008821, allocations: 0 / 251.8 MB, free: 6.758 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.008943, allocations: 130.3 kB / 252 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.008959, allocations: 7.984 kB / 252 MB, free: 6.598 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.034e-05/0.008999, allocations: 15.98 kB / 252 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.009055, allocations: 19.91 kB / 252 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.009061, allocations: 4 kB / 252 MB, free: 6.559 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.694e-05/0.009108, allocations: 61.94 kB / 252.1 MB, free: 6.496 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009108, allocations: 0 / 252.1 MB, free: 6.496 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001559/0.009264, allocations: 39.95 kB / 252.1 MB, free: 6.457 MB / 250.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001184/0.009382, allocations: 88.3 kB / 252.2 MB, free: 6.359 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.009526, allocations: 91.92 kB / 252.3 MB, free: 6.27 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.009534, allocations: 4 kB / 252.3 MB, free: 6.266 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.504e-05/0.009599, allocations: 49.47 kB / 252.3 MB, free: 6.215 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.009912, allocations: 432.5 kB / 252.8 MB, free: 5.707 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000829/0.01074, allocations: 367.6 kB / 253.1 MB, free: 5.312 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.747e-05/0.01079, allocations: 79.97 kB / 253.2 MB, free: 5.215 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.703e-05/0.01085, allocations: 13.48 kB / 253.2 MB, free: 5.195 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.95e-05/0.01094, allocations: 83.36 kB / 253.3 MB, free: 5.113 MB / 250.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01095, allocations: 0 / 253.3 MB, free: 5.113 MB / 250.7 MB Notification: Performance of Templates: time 0.004398/0.01534, allocations: 2.36 MB / 255.7 MB, free: 2.812 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.61921729426831]