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.001039/0.001039, allocations: 80.8 kB / 22.28 MB, free: 2.211 MB / 18.57 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.001291/0.001291, allocations: 169.6 kB / 25.7 MB, free: 8.449 MB / 18.57 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.9109/0.9109, allocations: 158.6 MB / 187.6 MB, free: 2.793 MB / 170.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.513e-06/1.513e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.309e-05/1.461e-05, allocations: 2.312 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.005631/0.005646, allocations: 1.912 MB / 253.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000943/0.006589, allocations: 0.6318 MB / 254.1 MB, free: 4.684 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.09e-05/0.00668, allocations: 7.938 kB / 254.1 MB, free: 4.676 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003125/0.009805, allocations: 27.66 kB / 254.1 MB, free: 4.648 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.009939, allocations: 39.66 kB / 254.2 MB, free: 4.609 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.01018, allocations: 71.73 kB / 254.2 MB, free: 4.539 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.01038, allocations: 175.3 kB / 254.4 MB, free: 4.367 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.0105, allocations: 46.52 kB / 254.5 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.01063, allocations: 95.78 kB / 254.5 MB, free: 4.23 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.01076, allocations: 63.8 kB / 254.6 MB, free: 4.168 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.01079, allocations: 12 kB / 254.6 MB, free: 4.156 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.559e-05/0.01086, allocations: 19.98 kB / 254.6 MB, free: 4.137 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.881e-05/0.01092, allocations: 47.83 kB / 254.7 MB, free: 4.09 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.142e-05/0.01097, allocations: 43.84 kB / 254.7 MB, free: 4.047 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001951/0.01117, allocations: 155.3 kB / 254.9 MB, free: 3.895 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.01117, allocations: 0 / 254.9 MB, free: 3.895 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01117, allocations: 3.938 kB / 254.9 MB, free: 3.891 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.01117, allocations: 0 / 254.9 MB, free: 3.891 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.0004923/0.01167, allocations: 416 kB / 255.3 MB, free: 3.461 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.0117, allocations: 15.98 kB / 255.3 MB, free: 3.445 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.722e-05/0.01175, allocations: 16.92 kB / 255.3 MB, free: 3.43 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.01193, allocations: 177.3 kB / 255.5 MB, free: 3.23 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.01195, allocations: 12.66 kB / 255.5 MB, free: 3.219 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.01197, allocations: 12.38 kB / 255.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.01217, allocations: 159 kB / 255.7 MB, free: 3.031 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.01218, allocations: 4.172 kB / 255.7 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.0122, allocations: 12.36 kB / 255.7 MB, free: 3.016 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.01222, allocations: 7.938 kB / 255.7 MB, free: 3.008 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.506e-05/0.0123, allocations: 53.5 kB / 255.8 MB, free: 2.953 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/0.0159, allocations: 0.5709 MB / 256.3 MB, free: 2.348 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.01607, allocations: 186.7 kB / 256.5 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.361e-05/0.01611, allocations: 29.83 kB / 256.5 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.01614, allocations: 4 kB / 256.5 MB, free: 2.105 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001276/0.01627, allocations: 107.4 kB / 256.6 MB, free: 1.984 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.01627, allocations: 0 / 256.6 MB, free: 1.984 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001956/0.01646, allocations: 115.2 kB / 256.8 MB, free: 1.863 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.0165, allocations: 85.09 kB / 256.8 MB, free: 1.762 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.01662, allocations: 191.4 kB / 257 MB, free: 1.559 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.01664, allocations: 33.7 kB / 257.1 MB, free: 1.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.01671, allocations: 136.4 kB / 257.2 MB, free: 1.383 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.01674, allocations: 43.67 kB / 257.2 MB, free: 1.34 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/0.01679, allocations: 41.67 kB / 257.3 MB, free: 1.293 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.01688, allocations: 334.8 kB / 257.6 MB, free: 0.957 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.852e-05/0.01692, allocations: 18.83 kB / 257.6 MB, free: 0.9375 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.642e-05/0.01698, allocations: 78.83 kB / 257.7 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.01711, allocations: 119.8 kB / 257.8 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.01711, allocations: 0 / 257.8 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000166/0.01728, allocations: 139 kB / 258 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.01729, allocations: 4 kB / 258 MB, free: 0.543 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.01729, allocations: 4.078 kB / 258 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.01731, allocations: 8.125 kB / 258 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.01742, allocations: 35.92 kB / 258 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.01743, allocations: 11.97 kB / 258 MB, free: 496 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.493e-05/0.0175, allocations: 19.89 kB / 258 MB, free: 476 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.01751, allocations: 8 kB / 258 MB, free: 468 kB / 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 0.0003211/0.01784, allocations: 128.6 kB / 258.2 MB, free: 328 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.01786, allocations: 16.09 kB / 258.2 MB, free: 312 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001582/0.01802, allocations: 114.9 kB / 258.3 MB, free: 188 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.01802, allocations: 7.938 kB / 258.3 MB, free: 180 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.01802, allocations: 4 kB / 258.3 MB, free: 176 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01803, allocations: 3.984 kB / 258.3 MB, free: 172 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.01816, allocations: 125.8 kB / 258.4 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.01816, allocations: 0 / 258.4 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.428e-05/0.01822, allocations: 23.97 kB / 258.5 MB, free: 4 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.01822, allocations: 0 / 258.5 MB, free: 4 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.01823, allocations: 4 kB / 258.5 MB, free: 0 / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.594e-05/0.01825, allocations: 4.047 kB / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01825, allocations: 3.938 kB / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.01838, allocations: 126.3 kB / 258.6 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.828e-05/0.0184, allocations: 19.86 kB / 258.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.01842, allocations: 4 kB / 258.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.279e-05/0.01847, allocations: 11.98 kB / 258.6 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.01852, allocations: 23.91 kB / 258.6 MB, free: 15.79 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.01853, allocations: 4 kB / 258.7 MB, free: 15.78 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.003058/0.02158, allocations: 57.77 kB / 258.7 MB, free: 15.72 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02158, allocations: 0 / 258.7 MB, free: 15.72 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002095/0.02179, allocations: 39.94 kB / 258.7 MB, free: 15.68 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.0001014/0.0219, allocations: 80.36 kB / 258.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.02204, allocations: 92.67 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.02205, allocations: 0 / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.318e-05/0.02211, allocations: 44.78 kB / 259 MB, free: 15.45 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.02229, allocations: 35.97 kB / 259 MB, free: 15.42 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005757/0.02286, allocations: 355.5 kB / 259.3 MB, free: 15.04 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.61e-05/0.02291, allocations: 80.36 kB / 259.4 MB, free: 14.94 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.176e-05/0.02297, allocations: 21.48 kB / 259.4 MB, free: 14.92 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.02308, allocations: 87.34 kB / 259.5 MB, free: 14.83 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.02308, allocations: 0 / 259.5 MB, free: 14.83 MB / 250.7 MB Notification: Performance of Templates: time 0.007404/0.03048, allocations: 2.286 MB / 261.8 MB, free: 12.57 MB / 250.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5467368261888623]