Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002365/0.002365, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 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.002645/0.002645, allocations: 166.9 kB / 25.03 MB, free: 8.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 158.6 MB / 186.8 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 250.4 MB, free: 7.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.68e-05/3.879e-05, allocations: 2.312 kB / 250.4 MB, free: 7.848 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.005135/0.005173, allocations: 1.829 MB / 252.2 MB, free: 6.004 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.007379, allocations: 0.6202 MB / 252.8 MB, free: 5.375 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.007524, allocations: 4 kB / 252.8 MB, free: 5.371 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.007723, allocations: 31.59 kB / 252.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.007948, allocations: 35.66 kB / 252.9 MB, free: 5.305 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004154/0.008363, allocations: 71.8 kB / 252.9 MB, free: 5.234 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.00873, allocations: 175.3 kB / 253.1 MB, free: 5.062 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.008948, allocations: 41.88 kB / 253.2 MB, free: 5.023 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002438/0.009192, allocations: 95.78 kB / 253.2 MB, free: 4.93 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.009406, allocations: 67.78 kB / 253.3 MB, free: 4.863 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.816e-05/0.009454, allocations: 12 kB / 253.3 MB, free: 4.852 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.009558, allocations: 16 kB / 253.3 MB, free: 4.836 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.00968, allocations: 51.81 kB / 253.4 MB, free: 4.785 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.009796, allocations: 47.84 kB / 253.4 MB, free: 4.738 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004466/0.01024, allocations: 183.2 kB / 253.6 MB, free: 4.559 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.01025, allocations: 8 kB / 253.6 MB, free: 4.551 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.01025, allocations: 4 kB / 253.6 MB, free: 4.547 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.01026, allocations: 0 / 253.6 MB, free: 4.547 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.00132/0.01158, allocations: 0.5268 MB / 254.2 MB, free: 3.984 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.01164, allocations: 15.97 kB / 254.2 MB, free: 3.969 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.01177, allocations: 32.8 kB / 254.2 MB, free: 3.938 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.01226, allocations: 192 kB / 254.4 MB, free: 3.723 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.01229, allocations: 8.656 kB / 254.4 MB, free: 3.715 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.01233, allocations: 20.38 kB / 254.4 MB, free: 3.695 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005474/0.01287, allocations: 186.8 kB / 254.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.01289, allocations: 192 / 254.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.01292, allocations: 12.31 kB / 254.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.01296, allocations: 11.92 kB / 254.6 MB, free: 3.469 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004156/0.01337, allocations: 99.88 kB / 254.7 MB, free: 3.371 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.0151, allocations: 0.871 MB / 255.6 MB, free: 2.449 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.01553, allocations: 126.1 kB / 255.7 MB, free: 2.301 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.01572, allocations: 55.47 kB / 255.8 MB, free: 2.238 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.004e-05/0.01578, allocations: 4 kB / 255.8 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003837/0.01616, allocations: 148.2 kB / 255.9 MB, free: 2.066 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.01616, allocations: 0 / 255.9 MB, free: 2.066 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007571/0.01692, allocations: 185.8 kB / 256.1 MB, free: 1.879 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.01702, allocations: 81.11 kB / 256.2 MB, free: 1.781 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.01743, allocations: 278.7 kB / 256.5 MB, free: 1.488 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.579e-05/0.01747, allocations: 33.69 kB / 256.5 MB, free: 1.449 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.01769, allocations: 191.1 kB / 256.7 MB, free: 1.258 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/0.01777, allocations: 55.56 kB / 256.7 MB, free: 1.203 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.01792, allocations: 55.22 kB / 256.8 MB, free: 1.141 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0004113/0.01833, allocations: 0.5118 MB / 257.3 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.01851, allocations: 39.97 kB / 257.3 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003042/0.01882, allocations: 129.4 kB / 257.5 MB, free: 428 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.0193, allocations: 173.3 kB / 257.6 MB, free: 220 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.0193, allocations: 4 kB / 257.6 MB, free: 216 kB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006048/0.01991, allocations: 189.5 kB / 257.8 MB, free: 20 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.01994, allocations: 19.56 kB / 257.8 MB, free: 4 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.01995, allocations: 0 / 257.8 MB, free: 4 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.01997, allocations: 4 kB / 257.8 MB, free: 0 / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.02026, allocations: 36.03 kB / 257.9 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.962e-05/0.02028, allocations: 11.92 kB / 257.9 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.02048, allocations: 23.89 kB / 257.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.02051, allocations: 12.69 kB / 257.9 MB, free: 15.92 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 0.0002324/0.02074, allocations: 176.5 kB / 258.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.28e-05/0.02081, allocations: 31.8 kB / 258.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005975/0.02141, allocations: 171.1 kB / 258.3 MB, free: 15.53 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.02142, allocations: 4 kB / 258.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.02142, allocations: 0 / 258.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.02143, allocations: 0 / 258.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.02185, allocations: 204.5 kB / 258.5 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.02185, allocations: 0 / 258.5 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.022, allocations: 23.98 kB / 258.5 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.02201, allocations: 0 / 258.5 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.02203, allocations: 7.938 kB / 258.5 MB, free: 15.26 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.02203, allocations: 0 / 258.5 MB, free: 15.26 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.02204, allocations: 4 kB / 258.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000549/0.02258, allocations: 207 kB / 258.7 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.165e-05/0.02264, allocations: 19.83 kB / 258.8 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.554e-05/0.02268, allocations: 7.938 kB / 258.8 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.02283, allocations: 11.98 kB / 258.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.02293, allocations: 19.97 kB / 258.8 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.02295, allocations: 4 kB / 258.8 MB, free: 14.96 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002363/0.02319, allocations: 188.1 kB / 259 MB, free: 14.78 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.02319, allocations: 0 / 259 MB, free: 14.78 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004672/0.02365, allocations: 35.95 kB / 259 MB, free: 14.75 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.0002423/0.0239, allocations: 111.1 kB / 259.1 MB, free: 14.62 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005191/0.02442, allocations: 139.4 kB / 259.3 MB, free: 14.48 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.02442, allocations: 0 / 259.3 MB, free: 14.48 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.02466, allocations: 71.59 kB / 259.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.02517, allocations: 40.34 kB / 259.4 MB, free: 14.37 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.02643, allocations: 355.1 kB / 259.7 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.02663, allocations: 124.9 kB / 259.8 MB, free: 13.85 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.02678, allocations: 29.47 kB / 259.9 MB, free: 13.82 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.399e-05/0.02687, allocations: 24.48 kB / 259.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02687, allocations: 0 / 259.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of Templates: time 0.009167/0.03604, allocations: 2.222 MB / 262.1 MB, free: 11.6 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.4630623429547995]