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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001186/0.002222, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006695/0.0006695, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009271/0.001597, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.01/1.01, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08768/1.097, allocations: 52.51 MB / 238.3 MB, free: 4.418 MB / 234.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 239.5 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.561e-05/2.754e-05, allocations: 6.312 kB / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002872/0.0029, allocations: 1.89 MB / 241.4 MB, free: 1.258 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009974/0.003897, allocations: 0.6073 MB / 242.1 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.003998, allocations: 3.938 kB / 242.1 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.48e-05/0.004092, allocations: 31.67 kB / 242.1 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.004212, allocations: 39.66 kB / 242.1 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.00442, allocations: 67.8 kB / 242.2 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.004605, allocations: 167.3 kB / 242.4 MB, free: 352 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.004741, allocations: 38.59 kB / 242.4 MB, free: 312 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.004902, allocations: 136.5 kB / 242.5 MB, free: 172 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.00503, allocations: 55.8 kB / 242.6 MB, free: 116 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.005054, allocations: 16 kB / 242.6 MB, free: 100 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.668e-05/0.005131, allocations: 27.98 kB / 242.6 MB, free: 72 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.005179, allocations: 27.88 kB / 242.6 MB, free: 44 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.081e-05/0.00522, allocations: 39.88 kB / 242.7 MB, free: 4 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.005394, allocations: 139.5 kB / 242.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.275e-05/0.005407, allocations: 0 / 242.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005407, allocations: 0 / 242.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.005422, allocations: 0 / 242.8 MB, free: 15.86 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.0005042/0.005926, allocations: 435.8 kB / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.654e-05/0.005953, allocations: 16.02 kB / 243.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.005991, allocations: 24.92 kB / 243.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.00615, allocations: 177.2 kB / 243.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.006166, allocations: 12.66 kB / 243.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.00618, allocations: 12.38 kB / 243.5 MB, free: 15.15 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.006354, allocations: 170.5 kB / 243.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.006362, allocations: 0 / 243.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.006374, allocations: 8 kB / 243.7 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.006389, allocations: 4 kB / 243.7 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.989e-05/0.006458, allocations: 57.5 kB / 243.7 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004609/0.006919, allocations: 0.5554 MB / 244.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.007072, allocations: 182.5 kB / 244.5 MB, free: 14.11 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.376e-05/0.007106, allocations: 33.83 kB / 244.5 MB, free: 14.07 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.007138, allocations: 4 kB / 244.5 MB, free: 14.06 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/0.007253, allocations: 117.2 kB / 244.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.007254, allocations: 4 kB / 244.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001607/0.007415, allocations: 119.8 kB / 244.7 MB, free: 13.8 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.007458, allocations: 77.11 kB / 244.8 MB, free: 13.71 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.007563, allocations: 195.6 kB / 245 MB, free: 13.5 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.007578, allocations: 29.7 kB / 245 MB, free: 13.46 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.109e-05/0.007629, allocations: 128.3 kB / 245.1 MB, free: 13.34 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.007655, allocations: 55.56 kB / 245.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.007696, allocations: 37.69 kB / 245.2 MB, free: 13.24 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.222e-05/0.007768, allocations: 330.8 kB / 245.6 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.023e-05/0.007799, allocations: 22.81 kB / 245.6 MB, free: 12.88 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.172e-05/0.00785, allocations: 82.64 kB / 245.7 MB, free: 12.78 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.464e-05/0.007945, allocations: 119.2 kB / 245.8 MB, free: 12.63 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.007949, allocations: 7.984 kB / 245.8 MB, free: 12.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001199/0.008069, allocations: 143.1 kB / 245.9 MB, free: 12.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.008079, allocations: 4 kB / 245.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.008085, allocations: 4 kB / 245.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.008094, allocations: 0 / 245.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.913e-05/0.008194, allocations: 35.98 kB / 246 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.008198, allocations: 7.922 kB / 246 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.507e-05/0.008253, allocations: 19.95 kB / 246 MB, free: 12.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-06/0.008262, allocations: 4 kB / 246 MB, free: 12.4 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 7.321e-05/0.008335, allocations: 136.6 kB / 246.1 MB, free: 12.26 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.008352, allocations: 23.89 kB / 246.2 MB, free: 12.23 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001445/0.008496, allocations: 111.1 kB / 246.3 MB, free: 12.12 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.008498, allocations: 0 / 246.3 MB, free: 12.12 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.008501, allocations: 4 kB / 246.3 MB, free: 12.12 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.008506, allocations: 3.984 kB / 246.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001091/0.008615, allocations: 117.8 kB / 246.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.008616, allocations: 0 / 246.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.948e-05/0.008676, allocations: 23.92 kB / 246.4 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.702e-05/0.008693, allocations: 19.95 kB / 246.4 MB, free: 11.94 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.008696, allocations: 7.875 kB / 246.4 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.403e-06/0.008703, allocations: 3.984 kB / 246.4 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.008705, allocations: 8 kB / 246.5 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.008706, allocations: 0 / 246.5 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.00881, allocations: 134 kB / 246.6 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.008831, allocations: 7.938 kB / 246.6 MB, free: 11.76 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.976e-05/0.008871, allocations: 11.98 kB / 246.6 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.008908, allocations: 15.97 kB / 246.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.008915, allocations: 8 kB / 246.6 MB, free: 11.72 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.373e-05/0.008949, allocations: 47.09 kB / 246.7 MB, free: 11.68 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008949, allocations: 0 / 246.7 MB, free: 11.68 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001351/0.009084, allocations: 43.89 kB / 246.7 MB, free: 11.63 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 8.676e-05/0.009171, allocations: 88.41 kB / 246.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.009287, allocations: 87.94 kB / 246.9 MB, free: 11.45 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.009294, allocations: 3.984 kB / 246.9 MB, free: 11.45 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.646e-05/0.009341, allocations: 45.41 kB / 246.9 MB, free: 11.4 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.009546, allocations: 56.11 kB / 247 MB, free: 11.35 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007872/0.01033, allocations: 368.1 kB / 247.4 MB, free: 10.96 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.694e-05/0.01037, allocations: 79.98 kB / 247.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.175e-05/0.01042, allocations: 13.48 kB / 247.4 MB, free: 10.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.708e-05/0.01051, allocations: 87.34 kB / 247.5 MB, free: 10.76 MB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01051, allocations: 0 / 247.5 MB, free: 10.76 MB / 250.7 MB Notification: Performance of Templates: time 0.003724/0.01423, allocations: 2.376 MB / 249.9 MB, free: 8.43 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5110904294997454]