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.001654/0.001654, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.001718/0.001718, allocations: 149.1 kB / 24.25 MB, free: 160 kB / 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.459/1.459, allocations: 173.3 MB / 200.8 MB, free: 9.281 MB / 186.7 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 9.82e-07/9.82e-07, allocations: 0 / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.44e-05/2.538e-05, allocations: 6.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003568/0.003593, allocations: 1.81 MB / 269.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.004826, allocations: 0.5685 MB / 269.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.877e-05/0.004905, allocations: 7.938 kB / 269.7 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.54e-05/0.005, allocations: 27.66 kB / 269.7 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.005119, allocations: 35.66 kB / 269.8 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.005348, allocations: 71.73 kB / 269.8 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.005578, allocations: 171.3 kB / 270 MB, free: 3.996 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.005702, allocations: 53.88 kB / 270 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.005862, allocations: 99.7 kB / 270.1 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.005982, allocations: 63.8 kB / 270.2 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.00601, allocations: 12 kB / 270.2 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.672e-05/0.006067, allocations: 19.98 kB / 270.2 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.239e-05/0.006139, allocations: 47.83 kB / 270.3 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.989e-05/0.006219, allocations: 47.84 kB / 270.3 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.006507, allocations: 195.2 kB / 270.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.00651, allocations: 0 / 270.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.00651, allocations: 0 / 270.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.006516, allocations: 0 / 270.5 MB, free: 3.465 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.001203/0.007719, allocations: 449.5 kB / 271 MB, free: 2.992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.007747, allocations: 8.922 kB / 271 MB, free: 2.984 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.986e-05/0.007817, allocations: 32.8 kB / 271 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.008083, allocations: 185.2 kB / 271.2 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.0081, allocations: 8.656 kB / 271.2 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.008126, allocations: 16.38 kB / 271.2 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.008619, allocations: 207.9 kB / 271.4 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.008632, allocations: 3.938 kB / 271.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.008662, allocations: 8 kB / 271.4 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.008682, allocations: 4 kB / 271.4 MB, free: 2.488 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004057/0.009088, allocations: 147.8 kB / 271.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.0102, allocations: 0.6724 MB / 272.2 MB, free: 1.629 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/0.01054, allocations: 157 kB / 272.4 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.0107, allocations: 65.81 kB / 272.5 MB, free: 1.387 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.81e-05/0.01075, allocations: 8 kB / 272.5 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.01105, allocations: 149.1 kB / 272.6 MB, free: 1.215 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.01105, allocations: 0 / 272.6 MB, free: 1.215 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006561/0.01171, allocations: 269.5 kB / 272.9 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.01178, allocations: 81.11 kB / 273 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.01203, allocations: 199.8 kB / 273.2 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.01207, allocations: 29.7 kB / 273.2 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.0122, allocations: 148.3 kB / 273.3 MB, free: 468 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.364e-05/0.01225, allocations: 35.64 kB / 273.4 MB, free: 432 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.54e-05/0.01234, allocations: 45.7 kB / 273.4 MB, free: 380 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.01254, allocations: 334.8 kB / 273.7 MB, free: 36 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.01273, allocations: 71.95 kB / 273.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.01294, allocations: 122.8 kB / 273.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.01335, allocations: 198.7 kB / 274.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.01336, allocations: 3.938 kB / 274.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004882/0.01385, allocations: 257.2 kB / 274.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.01387, allocations: 11.94 kB / 274.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.01387, allocations: 0 / 274.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.01389, allocations: 4 kB / 274.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.01407, allocations: 31.97 kB / 274.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.01409, allocations: 7.938 kB / 274.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.01427, allocations: 28.12 kB / 274.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.01429, allocations: 12.69 kB / 274.5 MB, free: 15.25 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 0.0001518/0.01444, allocations: 137.7 kB / 274.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.448e-05/0.01449, allocations: 27.86 kB / 274.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00049/0.01498, allocations: 211.2 kB / 274.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.01498, allocations: 11.94 kB / 274.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.01499, allocations: 3.984 kB / 274.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.01499, allocations: 0 / 274.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.01527, allocations: 185.2 kB / 275 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.01527, allocations: 11.92 kB / 275 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.0154, allocations: 27.91 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.0154, allocations: 0 / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.01542, allocations: 4 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.01542, allocations: 4 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.01542, allocations: 0 / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.01588, allocations: 233.2 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.724e-05/0.01591, allocations: 23.84 kB / 275.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.01594, allocations: 4 kB / 275.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.01608, allocations: 19.97 kB / 275.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.881e-05/0.01615, allocations: 15.97 kB / 275.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.01616, allocations: 8 kB / 275.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001412/0.0163, allocations: 141.5 kB / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0163, allocations: 0 / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.01658, allocations: 43.89 kB / 275.6 MB, free: 14.09 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.0001724/0.01675, allocations: 103.2 kB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.01717, allocations: 171.8 kB / 275.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01717, allocations: 0 / 275.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.01736, allocations: 75.89 kB / 275.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.01772, allocations: 47.84 kB / 275.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007501/0.01847, allocations: 375.7 kB / 276.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.01861, allocations: 124.9 kB / 276.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.01872, allocations: 37.47 kB / 276.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.14e-05/0.01879, allocations: 20.48 kB / 276.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01879, allocations: 0 / 276.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Templates: time 0.006479/0.02527, allocations: 2.219 MB / 278.7 MB, free: 10.93 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=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.392469607992098]