Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001811/0.001811, allocations: 107 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.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.002226/0.002226, allocations: 211.6 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.546/1.546, allocations: 230.6 MB / 258.3 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 47.92 kB / 379 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.244, allocations: 53.37 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003284/0.2473, allocations: 1.832 MB / 434.2 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2487, allocations: 0.6155 MB / 434.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.625e-05/0.2488, allocations: 3.938 kB / 434.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.2489, allocations: 35.66 kB / 434.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.2491, allocations: 35.66 kB / 434.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.2494, allocations: 71.86 kB / 434.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000254/0.2496, allocations: 179.3 kB / 435.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.2498, allocations: 48.56 kB / 435.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.25, allocations: 79.64 kB / 435.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.2501, allocations: 79.61 kB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.2501, allocations: 12 kB / 435.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.993e-05/0.2502, allocations: 24 kB / 435.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.998e-05/0.2503, allocations: 47.83 kB / 435.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.136e-05/0.2504, allocations: 71.59 kB / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002825/0.2507, allocations: 196.7 kB / 435.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2507, allocations: 0 / 435.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2507, allocations: 0 / 435.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2507, allocations: 4 kB / 435.6 MB, free: 3.395 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.0009564/0.2516, allocations: 449.4 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.2517, allocations: 12.03 kB / 436.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.2519, allocations: 28.8 kB / 436.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.2522, allocations: 175.4 kB / 436.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.2522, allocations: 20.64 kB / 436.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.2522, allocations: 12.38 kB / 436.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.2526, allocations: 200 kB / 436.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2526, allocations: 4 kB / 436.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.2526, allocations: 4 kB / 436.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.2526, allocations: 7.984 kB / 436.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.253, allocations: 143.8 kB / 436.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2541, allocations: 0.6879 MB / 437.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.2544, allocations: 157 kB / 437.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.2546, allocations: 85.66 kB / 437.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.042e-05/0.2546, allocations: 4 kB / 437.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.2549, allocations: 151.7 kB / 437.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.562e-06/0.2549, allocations: 0 / 437.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006427/0.2556, allocations: 258.2 kB / 438 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/0.2556, allocations: 85.09 kB / 438.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.2558, allocations: 198.8 kB / 438.3 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.2559, allocations: 33.69 kB / 438.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.256, allocations: 144.3 kB / 438.5 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.305e-05/0.256, allocations: 39.66 kB / 438.5 MB, free: 352 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.308e-05/0.2561, allocations: 41.7 kB / 438.5 MB, free: 304 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.2563, allocations: 338.8 kB / 438.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.2564, allocations: 67.95 kB / 438.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.2566, allocations: 128.4 kB / 439.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.257, allocations: 214.8 kB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.257, allocations: 0 / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000454/0.2575, allocations: 241.2 kB / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2575, allocations: 8 kB / 439.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2575, allocations: 3.938 kB / 439.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.2575, allocations: 4 kB / 439.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.2577, allocations: 36.16 kB / 439.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.2577, allocations: 7.938 kB / 439.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.2579, allocations: 27.88 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.2579, allocations: 11.98 kB / 439.6 MB, free: 15.17 MB / 350.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.0001854/0.2581, allocations: 133.8 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.361e-05/0.2582, allocations: 15.91 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005761/0.2587, allocations: 215 kB / 440 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.2587, allocations: 3.938 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2588, allocations: 8.094 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.2588, allocations: 7.938 kB / 440 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.259, allocations: 193.1 kB / 440.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.259, allocations: 3.938 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.2591, allocations: 27.91 kB / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2591, allocations: 0 / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.2591, allocations: 4 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2591, allocations: 0 / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2591, allocations: 0 / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.2596, allocations: 233.7 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.2596, allocations: 19.8 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.2596, allocations: 8 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2598, allocations: 15.97 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.2598, allocations: 19.97 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.2598, allocations: 4 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.26, allocations: 136.6 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.26, allocations: 0 / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.2602, allocations: 43.89 kB / 440.7 MB, free: 14.03 MB / 350.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.0001499/0.2604, allocations: 103.2 kB / 440.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004108/0.2608, allocations: 167.8 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2608, allocations: 0 / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.261, allocations: 75.89 kB / 441 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.2613, allocations: 56.91 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007098/0.262, allocations: 377.2 kB / 441.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/0.2622, allocations: 124.9 kB / 441.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.2623, allocations: 33.47 kB / 441.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.354e-05/0.2623, allocations: 23.61 kB / 441.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2623, allocations: 0 / 441.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Templates: time 0.006079/0.2684, allocations: 2.419 MB / 444 MB, free: 10.66 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.397435949998908]