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.001166/0.001166, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001966/0.003133, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001052/0.001052, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001721/0.002773, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9952/0.9952, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1379/1.133, allocations: 52.48 MB / 238.5 MB, free: 7.609 MB / 234.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.713e-06/1.713e-06, allocations: 0 / 239.7 MB, free: 6.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.951e-05, allocations: 3.25 kB / 239.7 MB, free: 6.336 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003244/0.003264, allocations: 1.908 MB / 241.7 MB, free: 4.441 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009959/0.00426, allocations: 0.5931 MB / 242.2 MB, free: 3.848 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.00438, allocations: 9 kB / 242.3 MB, free: 3.84 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.004485, allocations: 35.66 kB / 242.3 MB, free: 3.805 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.004612, allocations: 40.91 kB / 242.3 MB, free: 3.766 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.004852, allocations: 59.8 kB / 242.4 MB, free: 3.707 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.005074, allocations: 168.9 kB / 242.6 MB, free: 3.543 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.005212, allocations: 46.58 kB / 242.6 MB, free: 3.496 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.00543, allocations: 128.5 kB / 242.7 MB, free: 3.367 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.005584, allocations: 64.41 kB / 242.8 MB, free: 3.305 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.005615, allocations: 12 kB / 242.8 MB, free: 3.293 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.476e-05/0.005709, allocations: 20.88 kB / 242.8 MB, free: 3.273 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-05/0.005774, allocations: 35.86 kB / 242.9 MB, free: 3.238 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.024e-05/0.005834, allocations: 40.62 kB / 242.9 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.006071, allocations: 139.4 kB / 243 MB, free: 3.062 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.185e-05/0.006083, allocations: 0.7188 kB / 243 MB, free: 3.062 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006084, allocations: 0 / 243 MB, free: 3.062 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.006095, allocations: 0.75 kB / 243 MB, free: 3.062 MB / 234.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.0006422/0.006738, allocations: 437 kB / 243.5 MB, free: 2.609 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.006774, allocations: 12.02 kB / 243.5 MB, free: 2.598 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.006839, allocations: 27.11 kB / 243.5 MB, free: 2.574 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.007057, allocations: 169.4 kB / 243.7 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.00708, allocations: 12.64 kB / 243.7 MB, free: 2.371 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.007106, allocations: 16.38 kB / 243.7 MB, free: 2.355 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.007357, allocations: 163.4 kB / 243.8 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.007367, allocations: 0 / 243.8 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.007382, allocations: 8 kB / 243.9 MB, free: 2.168 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.007402, allocations: 4.969 kB / 243.9 MB, free: 2.164 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.901e-05/0.007501, allocations: 54.31 kB / 243.9 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006416/0.008143, allocations: 0.5489 MB / 244.5 MB, free: 1.531 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.008342, allocations: 201.4 kB / 244.7 MB, free: 1.316 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.008389, allocations: 29.7 kB / 244.7 MB, free: 1.281 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.008422, allocations: 4.109 kB / 244.7 MB, free: 1.277 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.008579, allocations: 123.9 kB / 244.8 MB, free: 1.137 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.008581, allocations: 0 / 244.8 MB, free: 1.137 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002177/0.008798, allocations: 107.2 kB / 244.9 MB, free: 1.02 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.00884, allocations: 81.11 kB / 245 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.008976, allocations: 197.2 kB / 245.2 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.008997, allocations: 29.7 kB / 245.2 MB, free: 0.6797 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.009064, allocations: 132.3 kB / 245.3 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/0.009101, allocations: 51.56 kB / 245.4 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.976e-05/0.009161, allocations: 38.22 kB / 245.4 MB, free: 464 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.03e-05/0.009251, allocations: 327.7 kB / 245.8 MB, free: 128 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.609e-05/0.009297, allocations: 26.81 kB / 245.8 MB, free: 100 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-05/0.009386, allocations: 78.78 kB / 245.9 MB, free: 15.99 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.00953, allocations: 129.8 kB / 246 MB, free: 15.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.009533, allocations: 0 / 246 MB, free: 15.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001976/0.009731, allocations: 140.7 kB / 246.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.009746, allocations: 4 kB / 246.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.009752, allocations: 5.969 kB / 246.1 MB, free: 15.69 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.009769, allocations: 4 kB / 246.1 MB, free: 15.69 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.009923, allocations: 39.97 kB / 246.2 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.00993, allocations: 7.938 kB / 246.2 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.869e-05/0.01002, allocations: 11.95 kB / 246.2 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.01003, allocations: 9.344 kB / 246.2 MB, free: 15.62 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 9.927e-05/0.01013, allocations: 128.6 kB / 246.3 MB, free: 15.48 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.01016, allocations: 24.42 kB / 246.4 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.01035, allocations: 105.1 kB / 246.5 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.01036, allocations: 4 kB / 246.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.01036, allocations: 3.984 kB / 246.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.01036, allocations: 0 / 246.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.01052, allocations: 122.9 kB / 246.6 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01053, allocations: 0 / 246.6 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.231e-05/0.01061, allocations: 23.92 kB / 246.6 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.11e-05/0.01063, allocations: 20.03 kB / 246.6 MB, free: 15.17 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.01064, allocations: 11.92 kB / 246.6 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.01065, allocations: 4 kB / 246.6 MB, free: 15.15 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.01065, allocations: 0 / 246.6 MB, free: 15.15 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01065, allocations: 0 / 246.6 MB, free: 15.15 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.01081, allocations: 138.4 kB / 246.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.01084, allocations: 11.92 kB / 246.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.426e-05/0.0109, allocations: 12 kB / 246.8 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.01096, allocations: 15.97 kB / 246.8 MB, free: 14.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.01097, allocations: 7.984 kB / 246.8 MB, free: 14.95 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.776e-05/0.01103, allocations: 51.11 kB / 246.9 MB, free: 14.89 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01103, allocations: 4 kB / 246.9 MB, free: 14.89 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002358/0.01127, allocations: 39.89 kB / 246.9 MB, free: 14.85 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.0001382/0.0114, allocations: 92.39 kB / 247 MB, free: 14.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001639/0.01157, allocations: 80.7 kB / 247.1 MB, free: 14.67 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/0.01158, allocations: 4 kB / 247.1 MB, free: 14.67 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.129e-05/0.01167, allocations: 52.7 kB / 247.1 MB, free: 14.61 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.01203, allocations: 432.5 kB / 247.6 MB, free: 14.11 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.01317, allocations: 363.8 kB / 247.9 MB, free: 13.72 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.464e-05/0.01323, allocations: 79.98 kB / 248 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.816e-05/0.0133, allocations: 17.48 kB / 248 MB, free: 13.6 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.01343, allocations: 87.34 kB / 248.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01343, allocations: 0 / 248.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of Templates: time 0.005133/0.01857, allocations: 2.345 MB / 250.4 MB, free: 11.23 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4989882623776793]