Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00139/0.00139, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001485/0.001485, allocations: 210.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.594/1.594, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 51.92 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2821, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00311/0.2852, allocations: 1.836 MB / 433.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2864, allocations: 0.6271 MB / 434 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.504e-05/0.2865, allocations: 7.938 kB / 434 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.2866, allocations: 27.67 kB / 434.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.2867, allocations: 27.67 kB / 434.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.287, allocations: 87.84 kB / 434.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.2873, allocations: 171.3 kB / 434.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.2875, allocations: 44.58 kB / 434.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2876, allocations: 79.69 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2878, allocations: 83.56 kB / 434.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.2878, allocations: 12 kB / 434.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.854e-05/0.2879, allocations: 23.98 kB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.398e-05/0.288, allocations: 47.83 kB / 434.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.569e-05/0.2881, allocations: 63.61 kB / 434.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.2883, allocations: 201.3 kB / 434.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2884, allocations: 3.938 kB / 434.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2884, allocations: 4 kB / 434.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2884, allocations: 0 / 434.9 MB, free: 3.387 MB / 334.1 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.001022/0.2894, allocations: 441.5 kB / 435.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.2894, allocations: 11.97 kB / 435.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.2896, allocations: 36.78 kB / 435.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.29, allocations: 179.4 kB / 435.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.29, allocations: 12.66 kB / 435.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.381e-05/0.29, allocations: 16.38 kB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.2904, allocations: 204 kB / 435.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2904, allocations: 0 / 435.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.2905, allocations: 4 kB / 435.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.2905, allocations: 8 kB / 435.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003318/0.2908, allocations: 143.8 kB / 435.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.292, allocations: 0.6879 MB / 436.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.2923, allocations: 165 kB / 436.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.2924, allocations: 77.73 kB / 436.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.803e-05/0.2925, allocations: 0 / 436.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.2927, allocations: 153.1 kB / 437 MB, free: 1.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.2927, allocations: 3.938 kB / 437 MB, free: 1.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006062/0.2933, allocations: 253.7 kB / 437.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.2934, allocations: 85.11 kB / 437.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.2936, allocations: 198.8 kB / 437.5 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.2936, allocations: 29.7 kB / 437.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.2938, allocations: 144.3 kB / 437.7 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.787e-05/0.2938, allocations: 47.64 kB / 437.7 MB, free: 340 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.037e-05/0.2939, allocations: 45.7 kB / 437.8 MB, free: 288 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.294, allocations: 334.8 kB / 438.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.2942, allocations: 67.95 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.2944, allocations: 120.5 kB / 438.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003418/0.2947, allocations: 211.3 kB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2947, allocations: 0 / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004341/0.2951, allocations: 257.2 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2952, allocations: 4 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.2952, allocations: 4 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2952, allocations: 4.125 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.2954, allocations: 35.98 kB / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.2954, allocations: 3.984 kB / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.2955, allocations: 31.81 kB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.2955, allocations: 8 kB / 438.9 MB, free: 15.16 MB / 350.1 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.0001313/0.2957, allocations: 141.8 kB / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.2957, allocations: 15.91 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004436/0.2961, allocations: 210.9 kB / 439.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.2962, allocations: 8 kB / 439.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2962, allocations: 0 / 439.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2962, allocations: 0 / 439.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.2964, allocations: 197.1 kB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2964, allocations: 3.938 kB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.2965, allocations: 23.92 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.2965, allocations: 4 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.2965, allocations: 0 / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.2965, allocations: 3.984 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2965, allocations: 0 / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.2969, allocations: 233.8 kB / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.231e-05/0.297, allocations: 27.73 kB / 439.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.736e-05/0.297, allocations: 3.938 kB / 439.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.2971, allocations: 19.97 kB / 439.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.204e-05/0.2972, allocations: 15.98 kB / 439.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.2972, allocations: 7.984 kB / 439.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.2973, allocations: 136.6 kB / 439.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2973, allocations: 0 / 439.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.2976, allocations: 43.89 kB / 439.9 MB, free: 14.02 MB / 350.1 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.0001563/0.2977, allocations: 103.2 kB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.2981, allocations: 163.8 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2981, allocations: 0 / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.2983, allocations: 75.89 kB / 440.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.2987, allocations: 52.97 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006762/0.2993, allocations: 377.2 kB / 440.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.2995, allocations: 120.9 kB / 440.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.2996, allocations: 37.45 kB / 440.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.2996, allocations: 19.44 kB / 440.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2996, allocations: 0 / 440.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Templates: time 0.006016/0.3056, allocations: 2.419 MB / 443.3 MB, free: 10.66 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.772397772874683]