Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0006449/0.0006449, allocations: 73.12 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009593/0.001604, allocations: 453.8 kB / 10.46 MB, free: 236 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.0006453/0.0006453, allocations: 161.2 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008209/0.001466, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8182/0.8182, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1313/0.9495, allocations: 49.49 MB / 220.7 MB, free: 1.363 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/1.946e-05, allocations: 2.312 kB / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002331/0.00235, allocations: 1.908 MB / 223.9 MB, free: 14.14 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008198/0.00317, allocations: 0.6434 MB / 224.5 MB, free: 13.48 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.658e-05/0.003257, allocations: 4 kB / 224.5 MB, free: 13.48 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 7.846e-05/0.003335, allocations: 27.61 kB / 224.6 MB, free: 13.45 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.214e-05/0.003427, allocations: 39.66 kB / 224.6 MB, free: 13.41 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.003611, allocations: 67.8 kB / 224.7 MB, free: 13.35 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.003782, allocations: 167.4 kB / 224.8 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.0039, allocations: 46.31 kB / 224.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.004041, allocations: 124.6 kB / 225 MB, free: 13.02 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.004174, allocations: 59.8 kB / 225.1 MB, free: 12.96 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.004198, allocations: 12 kB / 225.1 MB, free: 12.95 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.028e-05/0.004278, allocations: 35.91 kB / 225.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.856e-05/0.004327, allocations: 31.88 kB / 225.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.324e-05/0.00437, allocations: 39.88 kB / 225.2 MB, free: 12.84 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.004541, allocations: 131.4 kB / 225.3 MB, free: 12.71 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.004551, allocations: 0 / 225.3 MB, free: 12.71 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.004552, allocations: 3.938 kB / 225.3 MB, free: 12.71 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.004561, allocations: 0 / 225.3 MB, free: 12.71 MB / 234.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.0005416/0.005103, allocations: 439.8 kB / 225.7 MB, free: 12.26 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.005132, allocations: 8.031 kB / 225.7 MB, free: 12.25 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.005175, allocations: 28.92 kB / 225.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.005348, allocations: 177.2 kB / 226 MB, free: 12.02 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.005365, allocations: 8.656 kB / 226 MB, free: 12.02 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.005384, allocations: 16.38 kB / 226 MB, free: 12 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.005563, allocations: 163 kB / 226.1 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.577e-06/0.005571, allocations: 192 / 226.1 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.00558, allocations: 384 / 226.1 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.005599, allocations: 15.94 kB / 226.2 MB, free: 11.8 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.648e-05/0.005676, allocations: 53.52 kB / 226.2 MB, free: 11.75 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.006151, allocations: 0.5671 MB / 226.8 MB, free: 11.15 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.006292, allocations: 186.7 kB / 227 MB, free: 10.95 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.285e-05/0.006324, allocations: 29.84 kB / 227 MB, free: 10.91 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.006352, allocations: 4 kB / 227 MB, free: 10.91 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001246/0.006477, allocations: 107.8 kB / 227.1 MB, free: 10.79 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 9.02e-07/0.006478, allocations: 0 / 227.1 MB, free: 10.79 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001818/0.006659, allocations: 131.7 kB / 227.2 MB, free: 10.65 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.006703, allocations: 77.22 kB / 227.3 MB, free: 10.55 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.006806, allocations: 195.4 kB / 227.5 MB, free: 10.35 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.006821, allocations: 25.7 kB / 227.5 MB, free: 10.32 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.006877, allocations: 132.5 kB / 227.6 MB, free: 10.18 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.006901, allocations: 43.58 kB / 227.7 MB, free: 10.14 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.006944, allocations: 45.69 kB / 227.7 MB, free: 10.09 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.678e-05/0.00701, allocations: 334.8 kB / 228.1 MB, free: 9.754 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.977e-05/0.00704, allocations: 22.81 kB / 228.1 MB, free: 9.73 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.818e-05/0.007088, allocations: 78.64 kB / 228.2 MB, free: 9.629 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.384e-05/0.007182, allocations: 127.2 kB / 228.3 MB, free: 9.477 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.007184, allocations: 0 / 228.3 MB, free: 9.477 MB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001194/0.007304, allocations: 135.1 kB / 228.4 MB, free: 9.336 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.007315, allocations: 12.17 kB / 228.4 MB, free: 9.324 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.007319, allocations: 4 kB / 228.4 MB, free: 9.32 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.007332, allocations: 7.938 kB / 228.4 MB, free: 9.312 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.751e-05/0.00743, allocations: 35.92 kB / 228.5 MB, free: 9.277 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-06/0.007434, allocations: 4 kB / 228.5 MB, free: 9.273 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.404e-05/0.007488, allocations: 23.88 kB / 228.5 MB, free: 9.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.007496, allocations: 4 kB / 228.5 MB, free: 9.246 MB / 234.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.504e-05/0.007571, allocations: 132.6 kB / 228.6 MB, free: 9.105 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.007587, allocations: 15.98 kB / 228.6 MB, free: 9.09 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.007713, allocations: 115 kB / 228.8 MB, free: 8.977 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.007716, allocations: 7.938 kB / 228.8 MB, free: 8.969 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.007717, allocations: 0 / 228.8 MB, free: 8.969 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.00772, allocations: 0 / 228.8 MB, free: 8.969 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.00783, allocations: 121.8 kB / 228.9 MB, free: 8.832 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007831, allocations: 0 / 228.9 MB, free: 8.832 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.00788, allocations: 19.98 kB / 228.9 MB, free: 8.812 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.007893, allocations: 19.83 kB / 228.9 MB, free: 8.793 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.007896, allocations: 4 kB / 228.9 MB, free: 8.789 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.007902, allocations: 0 / 228.9 MB, free: 8.789 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.007904, allocations: 3.938 kB / 228.9 MB, free: 8.785 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.007905, allocations: 4 kB / 228.9 MB, free: 8.781 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.854e-05/0.008003, allocations: 130.4 kB / 229.1 MB, free: 8.629 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.008018, allocations: 8 kB / 229.1 MB, free: 8.621 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.588e-05/0.008054, allocations: 11.98 kB / 229.1 MB, free: 8.609 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.008102, allocations: 19.91 kB / 229.1 MB, free: 8.59 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.008109, allocations: 7.938 kB / 229.1 MB, free: 8.582 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.595e-05/0.008145, allocations: 53.78 kB / 229.2 MB, free: 8.527 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008145, allocations: 0 / 229.2 MB, free: 8.527 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001345/0.00828, allocations: 43.88 kB / 229.2 MB, free: 8.484 MB / 234.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.778e-05/0.008377, allocations: 96.36 kB / 229.3 MB, free: 8.379 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.008494, allocations: 84.78 kB / 229.4 MB, free: 8.293 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.008504, allocations: 0 / 229.4 MB, free: 8.293 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.669e-05/0.008561, allocations: 53.31 kB / 229.4 MB, free: 8.238 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.008802, allocations: 428.4 kB / 229.8 MB, free: 7.734 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007554/0.009557, allocations: 363.5 kB / 230.2 MB, free: 7.344 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.709e-05/0.009594, allocations: 79.94 kB / 230.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 5.048e-05/0.009645, allocations: 17.47 kB / 230.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.092e-05/0.009736, allocations: 87.34 kB / 230.4 MB, free: 7.145 MB / 234.7 MB Notification: Performance of SimCode: time 4.91e-07/0.009736, allocations: 4 kB / 230.4 MB, free: 7.141 MB / 234.7 MB Notification: Performance of Templates: time 0.003679/0.01341, allocations: 2.355 MB / 232.7 MB, free: 4.812 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.3235187865793705]