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.001297/0.001297, allocations: 112.5 kB / 21.19 MB, free: 0.7578 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.00142/0.00142, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.437/1.437, allocations: 230.6 MB / 258.3 MB, free: 8.219 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.001742/0.001742, allocations: 51.92 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2597, allocations: 53.37 MB / 432.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003505/0.2632, allocations: 1.902 MB / 434.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.2646, allocations: 0.6622 MB / 435 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2647, allocations: 7.938 kB / 435 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.2648, allocations: 27.67 kB / 435 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.265, allocations: 35.67 kB / 435 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003417/0.2653, allocations: 83.78 kB / 435.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.2656, allocations: 171.3 kB / 435.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.2658, allocations: 44.58 kB / 435.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.2659, allocations: 83.62 kB / 435.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.2661, allocations: 79.62 kB / 435.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.2661, allocations: 12 kB / 435.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.377e-05/0.2662, allocations: 23.98 kB / 435.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.499e-05/0.2663, allocations: 55.77 kB / 435.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.2664, allocations: 79.55 kB / 435.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.2667, allocations: 192.3 kB / 435.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2667, allocations: 0 / 435.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2667, allocations: 4 kB / 435.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2667, allocations: 0 / 435.8 MB, free: 3.492 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.0009553/0.2677, allocations: 449.4 kB / 436.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2677, allocations: 12.03 kB / 436.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.2679, allocations: 36.78 kB / 436.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.2682, allocations: 175.4 kB / 436.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.2682, allocations: 12.66 kB / 436.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.787e-05/0.2682, allocations: 16.38 kB / 436.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.2686, allocations: 212 kB / 436.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2686, allocations: 0 / 436.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.2686, allocations: 0 / 436.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.2687, allocations: 12 kB / 436.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003214/0.269, allocations: 139.8 kB / 436.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.2702, allocations: 0.7459 MB / 437.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.2705, allocations: 169 kB / 437.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.2706, allocations: 69.8 kB / 437.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.2707, allocations: 4 kB / 437.9 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.2709, allocations: 148.2 kB / 438 MB, free: 1.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.271, allocations: 4 kB / 438 MB, free: 1.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005862/0.2715, allocations: 254.2 kB / 438.3 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.2716, allocations: 89.09 kB / 438.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002245/0.2718, allocations: 203.1 kB / 438.5 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.2719, allocations: 33.7 kB / 438.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.272, allocations: 144.2 kB / 438.7 MB, free: 412 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.536e-05/0.272, allocations: 47.62 kB / 438.8 MB, free: 364 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-05/0.2721, allocations: 49.7 kB / 438.8 MB, free: 308 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002453/0.2723, allocations: 326.8 kB / 439.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.2725, allocations: 67.95 kB / 439.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2727, allocations: 128.5 kB / 439.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.2731, allocations: 214.5 kB / 439.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.2731, allocations: 0 / 439.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000465/0.2735, allocations: 245.3 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2735, allocations: 4 kB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2736, allocations: 4 kB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2736, allocations: 4.109 kB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.2737, allocations: 44.05 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2738, allocations: 4 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.2739, allocations: 27.86 kB / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2739, allocations: 8 kB / 439.9 MB, free: 15.18 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.000149/0.2741, allocations: 145.7 kB / 440 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.2741, allocations: 15.91 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005004/0.2746, allocations: 214.9 kB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2746, allocations: 4 kB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2746, allocations: 0 / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.2746, allocations: 0 / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/0.2749, allocations: 248.4 kB / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2749, allocations: 0 / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.275, allocations: 23.92 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.275, allocations: 0 / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.275, allocations: 8 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.275, allocations: 0 / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.275, allocations: 4 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003962/0.2754, allocations: 229.6 kB / 440.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.2755, allocations: 15.84 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.2755, allocations: 8 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.2756, allocations: 16.06 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.2757, allocations: 23.91 kB / 440.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.2757, allocations: 4 kB / 440.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001304/0.2758, allocations: 148.6 kB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2758, allocations: 0 / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.2761, allocations: 47.88 kB / 441 MB, free: 13.97 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.0001478/0.2762, allocations: 99.25 kB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003995/0.2766, allocations: 163.8 kB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2766, allocations: 4 kB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.2768, allocations: 75.89 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.2772, allocations: 52.58 kB / 441.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008097/0.278, allocations: 403.4 kB / 441.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005237/0.2785, allocations: 0.7435 MB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.556e-05/0.2786, allocations: 23.42 kB / 442.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2786, allocations: 0 / 442.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Templates: time 0.005096/0.2836, allocations: 2.452 MB / 445 MB, free: 9.91 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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: 7.204053238965571]