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.0009016/0.0009016, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009253/0.0009253, allocations: 150.1 kB / 24.81 MB, free: 9.285 MB / 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.8648/0.8648, allocations: 173.4 MB / 201.4 MB, free: 9.195 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.192e-06/1.192e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.944e-05/2.063e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.005462/0.005483, allocations: 1.852 MB / 270.2 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008771/0.00636, allocations: 0.588 MB / 270.8 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.476e-05/0.006454, allocations: 11.94 kB / 270.8 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.00657, allocations: 23.73 kB / 270.9 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.006699, allocations: 31.66 kB / 270.9 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.006946, allocations: 71.73 kB / 271 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.00713, allocations: 183.2 kB / 271.1 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.007245, allocations: 45.92 kB / 271.2 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.007357, allocations: 91.78 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.007463, allocations: 63.8 kB / 271.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.007484, allocations: 12 kB / 271.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.007542, allocations: 27.98 kB / 271.4 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.663e-05/0.007618, allocations: 39.83 kB / 271.4 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.489e-05/0.007673, allocations: 51.83 kB / 271.5 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.007877, allocations: 151.3 kB / 271.6 MB, free: 2.938 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.007879, allocations: 0 / 271.6 MB, free: 2.938 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00788, allocations: 0 / 271.6 MB, free: 2.938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.007884, allocations: 0 / 271.6 MB, free: 2.938 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.0005431/0.008427, allocations: 0.5231 MB / 272.1 MB, free: 2.375 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.008463, allocations: 8.922 kB / 272.2 MB, free: 2.367 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.008521, allocations: 36.8 kB / 272.2 MB, free: 2.332 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.008703, allocations: 184 kB / 272.4 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.008722, allocations: 8.656 kB / 272.4 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.008744, allocations: 20.38 kB / 272.4 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.008957, allocations: 175 kB / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.008966, allocations: 0 / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.008979, allocations: 8 kB / 272.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.008996, allocations: 11.98 kB / 272.6 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.916e-05/0.009076, allocations: 43.91 kB / 272.6 MB, free: 1.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006615/0.009737, allocations: 0.8011 MB / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.009886, allocations: 110.2 kB / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.298e-05/0.009929, allocations: 35.48 kB / 273.6 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.009963, allocations: 11.94 kB / 273.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001191/0.01008, allocations: 120.4 kB / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.223e-06/0.01008, allocations: 0 / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001914/0.01028, allocations: 133.5 kB / 273.8 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.01031, allocations: 81.11 kB / 273.9 MB, free: 444 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.01042, allocations: 250.6 kB / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.01044, allocations: 33.7 kB / 274.2 MB, free: 132 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.496e-05/0.01053, allocations: 191 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.01056, allocations: 47.66 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.01061, allocations: 51.3 kB / 274.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.01071, allocations: 0.504 MB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.132e-05/0.01074, allocations: 23.97 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.829e-05/0.0108, allocations: 99.03 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.0109, allocations: 141.3 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01091, allocations: 0 / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001453/0.01105, allocations: 157.9 kB / 275.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.01106, allocations: 4 kB / 275.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.01107, allocations: 4 kB / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.01108, allocations: 0 / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.155e-05/0.01117, allocations: 43.91 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.01117, allocations: 4 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.323e-05/0.01123, allocations: 15.89 kB / 275.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.01123, allocations: 12.06 kB / 275.5 MB, free: 14.75 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 7.741e-05/0.01131, allocations: 176.7 kB / 275.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.01133, allocations: 31.8 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.01151, allocations: 131 kB / 275.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.01152, allocations: 4 kB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01152, allocations: 0 / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01152, allocations: 112 / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.01164, allocations: 169 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01164, allocations: 0 / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-05/0.01169, allocations: 12 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.01169, allocations: 4 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.0117, allocations: 11.92 kB / 276 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.0117, allocations: 0 / 276 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.0117, allocations: 4 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.01183, allocations: 163.1 kB / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.01184, allocations: 23.83 kB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.01186, allocations: 7.938 kB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.84e-05/0.01189, allocations: 11.98 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/0.01193, allocations: 15.97 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.01194, allocations: 4 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.779e-05/0.012, allocations: 169.4 kB / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.012, allocations: 4 kB / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000157/0.01215, allocations: 39.95 kB / 276.4 MB, free: 13.72 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 9.367e-05/0.01225, allocations: 107.1 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.01237, allocations: 87.5 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01237, allocations: 4 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.944e-05/0.01242, allocations: 51.58 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.01261, allocations: 44.34 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000467/0.01308, allocations: 347.8 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.749e-05/0.01311, allocations: 79.97 kB / 277.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.811e-05/0.01316, allocations: 17.48 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.01325, allocations: 110.2 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01325, allocations: 0 / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of Templates: time 0.003589/0.01684, allocations: 2.428 MB / 279.7 MB, free: 10.45 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.449925228022039]