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.0009976/0.0009976, allocations: 87.88 kB / 21.19 MB, free: 3.406 MB / 18.57 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.001444/0.001444, allocations: 141.1 kB / 24.54 MB, free: 60 kB / 18.57 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 0.936/0.936, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.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.232e-06/1.232e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.428e-05/1.551e-05, allocations: 6.25 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002487/0.002503, allocations: 1.864 MB / 269.8 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009339/0.003437, allocations: 0.5881 MB / 270.4 MB, free: 3.988 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.743e-05/0.003534, allocations: 7.938 kB / 270.4 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.003665, allocations: 27.66 kB / 270.5 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.003808, allocations: 47.59 kB / 270.5 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.004085, allocations: 67.8 kB / 270.6 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.004285, allocations: 171.3 kB / 270.7 MB, free: 3.672 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.004429, allocations: 41.88 kB / 270.8 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.004616, allocations: 103.7 kB / 270.9 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.004744, allocations: 63.8 kB / 270.9 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.004772, allocations: 12 kB / 271 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.58e-05/0.004837, allocations: 19.98 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.629e-05/0.004904, allocations: 51.77 kB / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.679e-05/0.004961, allocations: 47.84 kB / 271.1 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002139/0.005174, allocations: 147.4 kB / 271.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.005176, allocations: 0 / 271.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.005177, allocations: 0 / 271.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.005181, allocations: 0 / 271.2 MB, free: 3.191 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.000615/0.005796, allocations: 0.5271 MB / 271.7 MB, free: 2.625 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.00583, allocations: 8.922 kB / 271.8 MB, free: 2.617 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.319e-05/0.005893, allocations: 32.8 kB / 271.8 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.006099, allocations: 196 kB / 272 MB, free: 2.367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.006121, allocations: 12.64 kB / 272 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.006145, allocations: 16.38 kB / 272 MB, free: 2.34 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.006401, allocations: 183.1 kB / 272.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.006412, allocations: 3.938 kB / 272.2 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.006426, allocations: 4 kB / 272.2 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.00645, allocations: 8 kB / 272.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.006574, allocations: 63.89 kB / 272.3 MB, free: 2.059 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008491/0.007423, allocations: 0.8281 MB / 273.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.007615, allocations: 126 kB / 273.2 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.326e-05/0.007678, allocations: 47.48 kB / 273.3 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.00771, allocations: 4 kB / 273.3 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001438/0.007854, allocations: 124.4 kB / 273.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.007855, allocations: 0 / 273.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000297/0.008152, allocations: 153.6 kB / 273.5 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.00819, allocations: 85.11 kB / 273.6 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.008347, allocations: 246.7 kB / 273.9 MB, free: 316 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.008365, allocations: 33.7 kB / 273.9 MB, free: 276 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.543e-05/0.00845, allocations: 191 kB / 274.1 MB, free: 80 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.717e-05/0.008487, allocations: 47.67 kB / 274.1 MB, free: 32 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.008559, allocations: 51.39 kB / 274.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.008681, allocations: 0.4962 MB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.965e-05/0.00874, allocations: 31.97 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.224e-05/0.008832, allocations: 107.1 kB / 274.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.008992, allocations: 145.5 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.008996, allocations: 11.88 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002315/0.009227, allocations: 173.2 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.00924, allocations: 4 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.009246, allocations: 4.188 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.009262, allocations: 8 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.009388, allocations: 35.97 kB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.009396, allocations: 7.938 kB / 275.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.988e-05/0.009476, allocations: 19.88 kB / 275.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.009492, allocations: 16.7 kB / 275.2 MB, free: 14.84 MB / 266.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.215e-05/0.009584, allocations: 172.5 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.009611, allocations: 23.86 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.009837, allocations: 147 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.009839, allocations: 4 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.009843, allocations: 3.984 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.009848, allocations: 4 kB / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.01001, allocations: 180.6 kB / 275.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01001, allocations: 3.938 kB / 275.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.728e-05/0.01008, allocations: 27.92 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.01008, allocations: 0 / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.01009, allocations: 7.984 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.01009, allocations: 0 / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01009, allocations: 0 / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001929/0.01029, allocations: 179.8 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.128e-05/0.01031, allocations: 27.78 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.01033, allocations: 0 / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-05/0.01039, allocations: 15.98 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.093e-05/0.01045, allocations: 19.97 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.01046, allocations: 4 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000329/0.01078, allocations: 177.4 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01078, allocations: 0 / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002384/0.01102, allocations: 35.95 kB / 276.2 MB, free: 13.75 MB / 266.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.0001041/0.01113, allocations: 95.25 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.01133, allocations: 119.4 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.01133, allocations: 0 / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.861e-05/0.01141, allocations: 47.61 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.01167, allocations: 55.84 kB / 276.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.01233, allocations: 356.2 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.861e-05/0.01238, allocations: 75.98 kB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.01246, allocations: 29.45 kB / 277 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.01251, allocations: 16.5 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01251, allocations: 0 / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of Templates: time 0.004729/0.01724, allocations: 2.391 MB / 279.4 MB, free: 10.57 MB / 266.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 -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.7919829301536083]