Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008086/0.0008086, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009944/0.001803, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006852/0.0006852, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008712/0.001556, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9751/0.9751, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08919/1.064, allocations: 53.87 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.014e-05/2.157e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002942/0.002964, allocations: 1.939 MB / 246.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.004064, allocations: 0.6581 MB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.004176, allocations: 11.88 kB / 247.6 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.626e-05/0.004272, allocations: 23.67 kB / 247.6 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.004391, allocations: 35.66 kB / 247.7 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.004642, allocations: 95.64 kB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002164/0.004858, allocations: 163.4 kB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.005008, allocations: 50.52 kB / 248 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.005238, allocations: 128.6 kB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.005385, allocations: 55.8 kB / 248.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.989e-05/0.005415, allocations: 12 kB / 248.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.005525, allocations: 31.92 kB / 248.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.231e-05/0.005588, allocations: 31.88 kB / 248.2 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.989e-05/0.005648, allocations: 43.86 kB / 248.3 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.005887, allocations: 143.4 kB / 248.4 MB, free: 10.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.772e-05/0.005905, allocations: 7.938 kB / 248.4 MB, free: 10.22 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.005906, allocations: 0 / 248.4 MB, free: 10.22 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.005926, allocations: 0 / 248.4 MB, free: 10.22 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.000715/0.006641, allocations: 439.8 kB / 248.9 MB, free: 9.762 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.006677, allocations: 8.625 kB / 248.9 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.006857, allocations: 110 kB / 249 MB, free: 9.629 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.007089, allocations: 181.4 kB / 249.1 MB, free: 9.426 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.00711, allocations: 8.656 kB / 249.2 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.007133, allocations: 16.38 kB / 249.2 MB, free: 9.402 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.007379, allocations: 165 kB / 249.3 MB, free: 9.223 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.00739, allocations: 192 / 249.3 MB, free: 9.223 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.007404, allocations: 4.375 kB / 249.3 MB, free: 9.219 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.007427, allocations: 11.94 kB / 249.3 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.007529, allocations: 56.66 kB / 249.4 MB, free: 9.152 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009274/0.008456, allocations: 0.5632 MB / 250 MB, free: 8.559 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.008643, allocations: 186.5 kB / 250.1 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.665e-05/0.008689, allocations: 29.7 kB / 250.2 MB, free: 8.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.008727, allocations: 4.125 kB / 250.2 MB, free: 8.316 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.008879, allocations: 112 kB / 250.3 MB, free: 8.188 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.00888, allocations: 0 / 250.3 MB, free: 8.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002232/0.009103, allocations: 115.2 kB / 250.4 MB, free: 8.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.009156, allocations: 85.05 kB / 250.5 MB, free: 7.965 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.009293, allocations: 202.5 kB / 250.7 MB, free: 7.754 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.009312, allocations: 25.7 kB / 250.7 MB, free: 7.723 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.009386, allocations: 136.3 kB / 250.8 MB, free: 7.586 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.009418, allocations: 39.69 kB / 250.9 MB, free: 7.547 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.45e-05/0.009483, allocations: 45.64 kB / 250.9 MB, free: 7.496 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.678e-05/0.009579, allocations: 334.8 kB / 251.3 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.649e-05/0.009626, allocations: 22.81 kB / 251.3 MB, free: 7.137 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.679e-05/0.009703, allocations: 70.84 kB / 251.3 MB, free: 7.043 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.009842, allocations: 123.2 kB / 251.5 MB, free: 6.895 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.009847, allocations: 8 kB / 251.5 MB, free: 6.887 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001923/0.01004, allocations: 127.1 kB / 251.6 MB, free: 6.754 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.01005, allocations: 8 kB / 251.6 MB, free: 6.746 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.01006, allocations: 0 / 251.6 MB, free: 6.746 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.01007, allocations: 16.22 kB / 251.6 MB, free: 6.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.01021, allocations: 43.86 kB / 251.7 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.01022, allocations: 0 / 251.7 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.836e-05/0.01031, allocations: 27.88 kB / 251.7 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.01032, allocations: 4 kB / 251.7 MB, free: 6.656 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.699e-05/0.01042, allocations: 132.6 kB / 251.8 MB, free: 6.516 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.01044, allocations: 11.98 kB / 251.8 MB, free: 6.504 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.01064, allocations: 115.8 kB / 251.9 MB, free: 6.391 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01064, allocations: 3.938 kB / 251.9 MB, free: 6.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.01065, allocations: 8 kB / 252 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.01065, allocations: 0 / 252 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.01081, allocations: 125.8 kB / 252.1 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01082, allocations: 0 / 252.1 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.361e-05/0.0109, allocations: 19.98 kB / 252.1 MB, free: 6.219 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.141e-05/0.01092, allocations: 19.86 kB / 252.1 MB, free: 6.199 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.01092, allocations: 0 / 252.1 MB, free: 6.199 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.01093, allocations: 0 / 252.1 MB, free: 6.199 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.443e-06/0.01094, allocations: 11.88 kB / 252.1 MB, free: 6.188 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01094, allocations: 0 / 252.1 MB, free: 6.188 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.01111, allocations: 134.3 kB / 252.3 MB, free: 6.031 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.01113, allocations: 8 kB / 252.3 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.048e-05/0.01119, allocations: 11.98 kB / 252.3 MB, free: 6.012 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.01124, allocations: 19.91 kB / 252.3 MB, free: 5.992 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.01125, allocations: 4 kB / 252.3 MB, free: 5.988 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.602e-05/0.01131, allocations: 57.95 kB / 252.4 MB, free: 5.93 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01131, allocations: 0 / 252.4 MB, free: 5.93 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002222/0.01153, allocations: 35.95 kB / 252.4 MB, free: 5.895 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.000127/0.01166, allocations: 92.28 kB / 252.5 MB, free: 5.793 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001747/0.01183, allocations: 92.75 kB / 252.6 MB, free: 5.699 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.01184, allocations: 4 kB / 252.6 MB, free: 5.695 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.537e-05/0.01191, allocations: 36.78 kB / 252.6 MB, free: 5.656 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.01213, allocations: 60.16 kB / 252.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.01326, allocations: 367.6 kB / 253 MB, free: 5.203 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.504e-05/0.01332, allocations: 80.34 kB / 253.1 MB, free: 5.105 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.542e-05/0.01339, allocations: 17.48 kB / 253.1 MB, free: 5.086 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.01352, allocations: 87.3 kB / 253.2 MB, free: 5 MB / 250.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01352, allocations: 4 kB / 253.2 MB, free: 4.996 MB / 250.7 MB Notification: Performance of Templates: time 0.004732/0.01825, allocations: 2.383 MB / 255.6 MB, free: 2.656 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.489009871147573]