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.0007397/0.0007397, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001052/0.001792, allocations: 457.8 kB / 10.45 MB, free: 244 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.0006763/0.0006763, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009067/0.001583, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.8827/0.8827, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08317/0.9659, allocations: 53.87 MB / 243.9 MB, free: 14.84 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.332e-06/1.332e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.528e-05, allocations: 9.125 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002255/0.00228, allocations: 1.932 MB / 247.1 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008626/0.003143, allocations: 0.6541 MB / 247.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.814e-05/0.003231, allocations: 11.94 kB / 247.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.278e-05/0.003304, allocations: 27.67 kB / 247.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.003436, allocations: 39.59 kB / 247.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.00368, allocations: 79.72 kB / 248 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.003857, allocations: 175.3 kB / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.003977, allocations: 54.39 kB / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.004158, allocations: 120.6 kB / 248.3 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.004299, allocations: 63.8 kB / 248.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.004324, allocations: 16 kB / 248.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.575e-05/0.00442, allocations: 35.91 kB / 248.4 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.004475, allocations: 35.86 kB / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.502e-05/0.00452, allocations: 39.88 kB / 248.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.004715, allocations: 135.4 kB / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197e-05/0.004727, allocations: 0 / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.004728, allocations: 0 / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.004738, allocations: 0 / 248.6 MB, free: 10.12 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.0005871/0.005325, allocations: 447.8 kB / 249.1 MB, free: 9.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.005358, allocations: 8.625 kB / 249.1 MB, free: 9.652 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.005507, allocations: 118 kB / 249.2 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.005676, allocations: 169.4 kB / 249.3 MB, free: 9.328 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.005692, allocations: 8.656 kB / 249.3 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.005711, allocations: 20.31 kB / 249.4 MB, free: 9.301 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.005883, allocations: 159.6 kB / 249.5 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.005891, allocations: 192 / 249.5 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.005902, allocations: 4.375 kB / 249.5 MB, free: 9.121 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.00592, allocations: 19.92 kB / 249.5 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.738e-05/0.005987, allocations: 57.44 kB / 249.6 MB, free: 9.043 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004745/0.006462, allocations: 0.5593 MB / 250.2 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.006605, allocations: 186.7 kB / 250.3 MB, free: 8.25 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.439e-05/0.006639, allocations: 33.78 kB / 250.4 MB, free: 8.211 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.006666, allocations: 11.98 kB / 250.4 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/0.006774, allocations: 103.9 kB / 250.5 MB, free: 8.078 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 9.52e-07/0.006775, allocations: 0 / 250.5 MB, free: 8.078 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001594/0.006934, allocations: 123.2 kB / 250.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.006973, allocations: 77.11 kB / 250.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.989e-05/0.007063, allocations: 198.5 kB / 250.9 MB, free: 7.648 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.007079, allocations: 33.7 kB / 250.9 MB, free: 7.609 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.007128, allocations: 124.3 kB / 251 MB, free: 7.484 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.007155, allocations: 51.66 kB / 251.1 MB, free: 7.434 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.007197, allocations: 45.58 kB / 251.1 MB, free: 7.383 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.379e-05/0.007271, allocations: 334.8 kB / 251.5 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.184e-05/0.007303, allocations: 22.81 kB / 251.5 MB, free: 7.023 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.671e-05/0.00735, allocations: 70.84 kB / 251.5 MB, free: 6.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.561e-05/0.007445, allocations: 127.2 kB / 251.7 MB, free: 6.777 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.007448, allocations: 0 / 251.7 MB, free: 6.777 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001248/0.007572, allocations: 139.1 kB / 251.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.007584, allocations: 8 kB / 251.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.007589, allocations: 0 / 251.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.007603, allocations: 7.938 kB / 251.8 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.892e-05/0.007702, allocations: 35.92 kB / 251.9 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.007707, allocations: 7.984 kB / 251.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.361e-05/0.007761, allocations: 23.89 kB / 251.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.007769, allocations: 4 kB / 251.9 MB, free: 6.547 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 8.525e-05/0.007854, allocations: 136.8 kB / 252 MB, free: 6.402 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.00787, allocations: 11.98 kB / 252 MB, free: 6.391 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.008018, allocations: 111.8 kB / 252.1 MB, free: 6.277 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.008021, allocations: 3.938 kB / 252.2 MB, free: 6.273 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.008024, allocations: 112 / 252.2 MB, free: 6.273 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.008032, allocations: 11.92 kB / 252.2 MB, free: 6.262 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.008156, allocations: 117.8 kB / 252.3 MB, free: 6.129 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.008158, allocations: 0 / 252.3 MB, free: 6.129 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.242e-05/0.00821, allocations: 19.98 kB / 252.3 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.587e-05/0.008226, allocations: 19.86 kB / 252.3 MB, free: 6.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.008228, allocations: 4 kB / 252.3 MB, free: 6.086 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.008238, allocations: 3.984 kB / 252.3 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.008243, allocations: 7.938 kB / 252.3 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.008245, allocations: 0 / 252.3 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.008359, allocations: 134.3 kB / 252.5 MB, free: 5.918 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.008376, allocations: 4 kB / 252.5 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.874e-05/0.008414, allocations: 15.98 kB / 252.5 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.008463, allocations: 19.91 kB / 252.5 MB, free: 5.879 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.008471, allocations: 4 kB / 252.5 MB, free: 5.875 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.091e-05/0.008512, allocations: 57.95 kB / 252.6 MB, free: 5.816 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008512, allocations: 4 kB / 252.6 MB, free: 5.812 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001372/0.008649, allocations: 35.95 kB / 252.6 MB, free: 5.777 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.0001254/0.008774, allocations: 92.28 kB / 252.7 MB, free: 5.676 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.008895, allocations: 91.84 kB / 252.8 MB, free: 5.586 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.008902, allocations: 4 kB / 252.8 MB, free: 5.582 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.913e-05/0.008961, allocations: 52.77 kB / 252.8 MB, free: 5.527 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.009217, allocations: 428.7 kB / 253.3 MB, free: 5.023 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007615/0.009978, allocations: 375.6 kB / 253.6 MB, free: 4.621 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.703e-05/0.01002, allocations: 75.98 kB / 253.7 MB, free: 4.527 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.523e-05/0.01006, allocations: 13.48 kB / 253.7 MB, free: 4.512 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.31e-05/0.01015, allocations: 91.34 kB / 253.8 MB, free: 4.422 MB / 250.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01015, allocations: 0 / 253.8 MB, free: 4.422 MB / 250.7 MB Notification: Performance of Templates: time 0.003538/0.01369, allocations: 2.338 MB / 256.1 MB, free: 2.133 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.480765039101243]