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.001363/0.001363, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001415/0.001415, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.484/1.484, allocations: 225.7 MB / 253.3 MB, free: 12.8 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.001674/0.001674, allocations: 51.91 kB / 371.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2452, allocations: 52.18 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003287/0.2484, allocations: 1.816 MB / 425.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2497, allocations: 0.5533 MB / 426.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.369e-05/0.2498, allocations: 3.938 kB / 426.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.2499, allocations: 27.73 kB / 426.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.2501, allocations: 35.66 kB / 426.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.2503, allocations: 71.81 kB / 426.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.2506, allocations: 167.4 kB / 426.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.2507, allocations: 41.94 kB / 426.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.2509, allocations: 79.64 kB / 426.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.251, allocations: 71.62 kB / 426.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.251, allocations: 12 kB / 426.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.711e-05/0.2511, allocations: 23.98 kB / 426.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.381e-05/0.2512, allocations: 47.83 kB / 426.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.862e-05/0.2513, allocations: 63.61 kB / 426.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.2516, allocations: 192.7 kB / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2516, allocations: 0 / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2516, allocations: 4 kB / 427 MB, free: 11.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.2516, allocations: 0 / 427 MB, free: 11.26 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.0009059/0.2525, allocations: 441.5 kB / 427.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2525, allocations: 12.03 kB / 427.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.2526, allocations: 24.8 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.2529, allocations: 179 kB / 427.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.2529, allocations: 12.66 kB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.2529, allocations: 19.94 kB / 427.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.2533, allocations: 203.7 kB / 427.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.2533, allocations: 0 / 427.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.2533, allocations: 4 kB / 427.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.2534, allocations: 8 kB / 427.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003264/0.2537, allocations: 139.8 kB / 428 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2548, allocations: 0.6801 MB / 428.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.2551, allocations: 157 kB / 428.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.2553, allocations: 69.81 kB / 428.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.2553, allocations: 3.984 kB / 428.9 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.2556, allocations: 157.1 kB / 429.1 MB, free: 9.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.2556, allocations: 0 / 429.1 MB, free: 9.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006058/0.2562, allocations: 265.5 kB / 429.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.2563, allocations: 85.09 kB / 429.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.2565, allocations: 195.8 kB / 429.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.2565, allocations: 29.7 kB / 429.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.2567, allocations: 148.3 kB / 429.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.2567, allocations: 43.62 kB / 429.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.2568, allocations: 45.7 kB / 429.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.257, allocations: 338.8 kB / 430.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.2571, allocations: 67.95 kB / 430.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.2573, allocations: 122.8 kB / 430.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003611/0.2577, allocations: 202.7 kB / 430.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2577, allocations: 0 / 430.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004681/0.2582, allocations: 241.3 kB / 430.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.2582, allocations: 11.98 kB / 430.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.2582, allocations: 4 kB / 430.9 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.2582, allocations: 4 kB / 430.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.2584, allocations: 40.11 kB / 430.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.2584, allocations: 4 kB / 430.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.2586, allocations: 27.86 kB / 430.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.2586, allocations: 15.94 kB / 430.9 MB, free: 7.055 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.000162/0.2588, allocations: 137.8 kB / 431.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.2588, allocations: 15.91 kB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004644/0.2592, allocations: 210.9 kB / 431.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2592, allocations: 0 / 431.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2593, allocations: 4.109 kB / 431.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2593, allocations: 7.938 kB / 431.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.2595, allocations: 197.3 kB / 431.5 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2595, allocations: 3.938 kB / 431.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.2596, allocations: 23.92 kB / 431.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2596, allocations: 0 / 431.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.2596, allocations: 4 kB / 431.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.2597, allocations: 4.859 kB / 431.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2597, allocations: 0 / 431.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.2601, allocations: 233.6 kB / 431.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.2601, allocations: 19.8 kB / 431.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.2602, allocations: 11.98 kB / 431.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.2603, allocations: 11.98 kB / 431.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.2604, allocations: 15.97 kB / 431.8 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.2604, allocations: 4 kB / 431.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.2605, allocations: 145.5 kB / 432 MB, free: 5.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2605, allocations: 0 / 432 MB, free: 5.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.2608, allocations: 35.95 kB / 432 MB, free: 5.922 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.0001523/0.2609, allocations: 107.2 kB / 432.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004382/0.2614, allocations: 171.7 kB / 432.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2614, allocations: 0 / 432.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.2616, allocations: 84.03 kB / 432.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.2619, allocations: 51.8 kB / 432.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007662/0.2627, allocations: 399.1 kB / 432.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.2628, allocations: 124.9 kB / 432.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.2629, allocations: 19.44 kB / 432.9 MB, free: 4.926 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2629, allocations: 4 kB / 432.9 MB, free: 4.922 MB / 334.1 MB Notification: Performance of Templates: time 0.004869/0.2677, allocations: 2.463 MB / 435.4 MB, free: 2.473 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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: 7.490823206026107]