Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002093/0.002093, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002189/0.002189, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 51.86 kB / 370.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2683, allocations: 52.19 MB / 423.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003218/0.2715, allocations: 1.812 MB / 424.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.2727, allocations: 0.5455 MB / 425.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2728, allocations: 7.938 kB / 425.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.273, allocations: 35.66 kB / 425.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.2731, allocations: 39.59 kB / 425.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.2734, allocations: 63.88 kB / 425.6 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002519/0.2737, allocations: 163.5 kB / 425.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.2739, allocations: 37.95 kB / 425.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.274, allocations: 79.64 kB / 425.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.2742, allocations: 75.61 kB / 425.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.2742, allocations: 12 kB / 425.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.046e-05/0.2743, allocations: 24 kB / 425.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.715e-05/0.2744, allocations: 47.78 kB / 426 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.008e-05/0.2745, allocations: 63.64 kB / 426.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.2748, allocations: 197.3 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2748, allocations: 0 / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2748, allocations: 0 / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.2748, allocations: 0 / 426.2 MB, free: 11.32 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.0009487/0.2757, allocations: 448.6 kB / 426.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2758, allocations: 12.02 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.2758, allocations: 24.8 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.2761, allocations: 179 kB / 426.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.2762, allocations: 12.64 kB / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.2762, allocations: 23.92 kB / 426.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.2766, allocations: 195.7 kB / 427.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.2766, allocations: 0 / 427.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2766, allocations: 7.938 kB / 427.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.2766, allocations: 19.92 kB / 427.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.277, allocations: 139.8 kB / 427.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2781, allocations: 0.6762 MB / 428 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.2785, allocations: 149.1 kB / 428.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.2786, allocations: 77.8 kB / 428.2 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.2786, allocations: 3.938 kB / 428.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002825/0.2789, allocations: 149 kB / 428.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.2789, allocations: 0 / 428.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005876/0.2795, allocations: 257.7 kB / 428.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.2796, allocations: 85.09 kB / 428.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.2798, allocations: 195.8 kB / 428.9 MB, free: 8.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.2799, allocations: 29.7 kB / 428.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.28, allocations: 152.3 kB / 429 MB, free: 8.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.867e-05/0.28, allocations: 47.62 kB / 429.1 MB, free: 8.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.192e-05/0.2801, allocations: 45.7 kB / 429.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2803, allocations: 334.8 kB / 429.5 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.2804, allocations: 67.95 kB / 429.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.2806, allocations: 126.8 kB / 429.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.2809, allocations: 198.7 kB / 429.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2809, allocations: 0 / 429.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004456/0.2814, allocations: 249.4 kB / 430.1 MB, free: 7.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2814, allocations: 8 kB / 430.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2814, allocations: 0 / 430.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.2814, allocations: 4 kB / 430.1 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.2816, allocations: 39.91 kB / 430.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.2816, allocations: 4.094 kB / 430.1 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.2818, allocations: 31.92 kB / 430.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.2818, allocations: 15.94 kB / 430.2 MB, free: 7.113 MB / 334.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.0001461/0.282, allocations: 141.8 kB / 430.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.282, allocations: 19.91 kB / 430.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004593/0.2825, allocations: 211.7 kB / 430.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2825, allocations: 0 / 430.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2825, allocations: 0 / 430.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.2825, allocations: 11.97 kB / 430.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.2827, allocations: 193.2 kB / 430.7 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2827, allocations: 0 / 430.7 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.2829, allocations: 19.98 kB / 430.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2829, allocations: 4 kB / 430.8 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.2829, allocations: 11.98 kB / 430.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2829, allocations: 0 / 430.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2829, allocations: 0 / 430.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004038/0.2833, allocations: 233.6 kB / 431 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.2833, allocations: 15.84 kB / 431 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.2834, allocations: 8 kB / 431 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.2835, allocations: 15.97 kB / 431.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.628e-05/0.2836, allocations: 19.97 kB / 431.1 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.2836, allocations: 4 kB / 431.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001308/0.2837, allocations: 141.5 kB / 431.2 MB, free: 6.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2837, allocations: 0 / 431.2 MB, free: 6.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002729/0.284, allocations: 39.95 kB / 431.3 MB, free: 5.977 MB / 334.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.0001471/0.2841, allocations: 99.19 kB / 431.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004208/0.2845, allocations: 175.8 kB / 431.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2845, allocations: 384 / 431.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.2847, allocations: 79.89 kB / 431.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.285, allocations: 51.97 kB / 431.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.2857, allocations: 369.2 kB / 432 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2859, allocations: 124.9 kB / 432.1 MB, free: 5.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.286, allocations: 33.45 kB / 432.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.091e-05/0.286, allocations: 19.44 kB / 432.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.286, allocations: 0 / 432.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of Templates: time 0.006079/0.2921, allocations: 2.361 MB / 434.5 MB, free: 2.676 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.510507810860872]