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.0009612/0.0009612, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.0008936/0.0008936, allocations: 142.3 kB / 24.97 MB, free: 8.324 MB / 18.57 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.047/1.047, allocations: 173.3 MB / 201.5 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.896e-05/2.035e-05, allocations: 6.25 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00213/0.00215, allocations: 1.864 MB / 269.9 MB, free: 4.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007589/0.002909, allocations: 0.588 MB / 270.5 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.366e-05/0.003003, allocations: 4 kB / 270.5 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.00314, allocations: 23.67 kB / 270.5 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.003279, allocations: 39.66 kB / 270.6 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.003569, allocations: 67.8 kB / 270.6 MB, free: 4.133 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.003892, allocations: 171.3 kB / 270.8 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.004025, allocations: 49.81 kB / 270.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.004145, allocations: 99.7 kB / 271 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.004259, allocations: 63.8 kB / 271 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.004282, allocations: 12 kB / 271 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.366e-05/0.004345, allocations: 19.98 kB / 271 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.43e-05/0.00441, allocations: 47.83 kB / 271.1 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.32e-05/0.004463, allocations: 51.84 kB / 271.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001966/0.004659, allocations: 147.3 kB / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.004661, allocations: 0 / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.004662, allocations: 0 / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.004666, allocations: 0 / 271.3 MB, free: 3.48 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.0005842/0.00525, allocations: 0.5232 MB / 271.8 MB, free: 2.918 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.005285, allocations: 8.922 kB / 271.8 MB, free: 2.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.056e-05/0.005346, allocations: 36.8 kB / 271.9 MB, free: 2.875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.005542, allocations: 188 kB / 272 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.005566, allocations: 20.64 kB / 272.1 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.005584, allocations: 12.38 kB / 272.1 MB, free: 2.633 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.005818, allocations: 183 kB / 272.3 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.005828, allocations: 0 / 272.3 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.005848, allocations: 8 kB / 272.3 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.005872, allocations: 4 kB / 272.3 MB, free: 2.418 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.006019, allocations: 63.89 kB / 272.3 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/0.006693, allocations: 0.8436 MB / 273.2 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.006857, allocations: 126 kB / 273.3 MB, free: 1.312 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.336e-05/0.00691, allocations: 39.48 kB / 273.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.006943, allocations: 4 kB / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.007091, allocations: 128.4 kB / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.007093, allocations: 0 / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002742/0.007367, allocations: 149.6 kB / 273.6 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.007408, allocations: 89.11 kB / 273.7 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.007565, allocations: 250.7 kB / 273.9 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.007588, allocations: 25.7 kB / 274 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.007679, allocations: 195 kB / 274.2 MB, free: 372 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.007706, allocations: 39.69 kB / 274.2 MB, free: 332 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005196/0.008226, allocations: 51.31 kB / 274.2 MB, free: 272 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.008364, allocations: 0.5001 MB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.229e-05/0.008426, allocations: 27.98 kB / 274.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.791e-05/0.008514, allocations: 117.4 kB / 274.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.00866, allocations: 149.3 kB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.008664, allocations: 3.938 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001977/0.008862, allocations: 165.3 kB / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.008876, allocations: 11.98 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.00888, allocations: 4.188 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.008895, allocations: 4 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.009017, allocations: 35.92 kB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.009025, allocations: 4 kB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.581e-05/0.00909, allocations: 27.88 kB / 275.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.009101, allocations: 8.703 kB / 275.3 MB, free: 15.13 MB / 266.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 9.093e-05/0.009192, allocations: 180.4 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.009216, allocations: 27.84 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.009417, allocations: 139.2 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.00942, allocations: 11.92 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.009424, allocations: 4 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.00943, allocations: 3.984 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.009583, allocations: 184.7 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.009586, allocations: 7.875 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-05/0.009637, allocations: 15.98 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.009641, allocations: 4 kB / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.00965, allocations: 0 / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.009652, allocations: 0 / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.009653, allocations: 4 kB / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001644/0.009818, allocations: 183.3 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.803e-05/0.009836, allocations: 23.78 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.009854, allocations: 4 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.57e-05/0.009899, allocations: 15.98 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.009955, allocations: 15.97 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.009964, allocations: 4 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.011e-05/0.01004, allocations: 177.4 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01004, allocations: 0 / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000173/0.01022, allocations: 35.95 kB / 276.3 MB, free: 14.04 MB / 266.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.000123/0.01034, allocations: 107.2 kB / 276.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.01051, allocations: 107.5 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01051, allocations: 0 / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.55e-05/0.01058, allocations: 55.59 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.0108, allocations: 47.84 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006072/0.01141, allocations: 356.2 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.25e-05/0.01146, allocations: 79.97 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.228e-05/0.01152, allocations: 25.47 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.01156, allocations: 20.5 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01156, allocations: 0 / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of Templates: time 0.004009/0.01557, allocations: 2.225 MB / 279.3 MB, free: 11.02 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] 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","",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.756592586170882]