Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.0009956/0.0009956, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001052/0.001052, allocations: 164.4 kB / 24.82 MB, free: 9.266 MB / 18.57 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 0.998/0.998, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.098e-05, allocations: 2.312 kB / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01973/0.01975, allocations: 11.08 MB / 284.5 MB, free: 6.152 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1385/0.1582, allocations: 6.828 MB / 291.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.1596, allocations: 59.28 kB / 291.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000864/0.1605, allocations: 413.5 kB / 291.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002843/0.1633, allocations: 1.777 MB / 293.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004264/0.1676, allocations: 2.814 MB / 296.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00432/0.1719, allocations: 4.051 MB / 300.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.1734, allocations: 1.092 MB / 301.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003231/0.1766, allocations: 2.078 MB / 303.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002076/0.1787, allocations: 1.56 MB / 305.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004453/0.1792, allocations: 158.3 kB / 305.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002004/0.1812, allocations: 0.9784 MB / 306.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000469/0.1816, allocations: 0.671 MB / 306.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009249/0.1826, allocations: 0.6266 MB / 307.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002979/0.1855, allocations: 2.306 MB / 309.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1855, allocations: 0 / 309.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1855, allocations: 0 / 309.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.59e-05/0.1856, allocations: 4 kB / 309.9 MB, free: 9.027 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003114/0.1887, allocations: 2.031 MB / 311.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1887, allocations: 8.969 kB / 311.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005559/0.1893, allocations: 291.7 kB / 312.2 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1905, allocations: 0.9838 MB / 313.2 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.1906, allocations: 248.7 kB / 313.4 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.1907, allocations: 113.5 kB / 313.5 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.192, allocations: 1.435 MB / 315 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.192, allocations: 7.281 kB / 315 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.669e-05/0.1921, allocations: 50.47 kB / 315 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.1922, allocations: 113.9 kB / 315.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009057/0.1931, allocations: 0.5936 MB / 315.7 MB, free: 4.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005282/0.1984, allocations: 3.934 MB / 319.7 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007933/0.1992, allocations: 0.5711 MB / 320.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003901/0.1996, allocations: 251.9 kB / 320.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002861/0.2024, allocations: 1.749 MB / 322.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.2025, allocations: 47.02 kB / 322.3 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005122/0.203, allocations: 175.3 kB / 322.4 MB, free: 13.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 3.497e-06/0.203, allocations: 3.375 kB / 322.4 MB, free: 13.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.008587/0.2116, allocations: 2.903 MB / 325.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.2116, allocations: 141.5 kB / 325.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008287/0.2125, allocations: 0.9292 MB / 326.4 MB, free: 9.664 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.2126, allocations: 53.69 kB / 326.5 MB, free: 9.605 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004309/0.213, allocations: 0.6823 MB / 327.1 MB, free: 8.965 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.2133, allocations: 411.5 kB / 327.6 MB, free: 8.586 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003921/0.2137, allocations: 300 kB / 327.8 MB, free: 8.316 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.2138, allocations: 484.7 kB / 328.3 MB, free: 7.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.2142, allocations: 215.5 kB / 328.5 MB, free: 7.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006672/0.2149, allocations: 0.7691 MB / 329.3 MB, free: 6.684 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.216, allocations: 0.9451 MB / 330.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.216, allocations: 1.375 kB / 330.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001832/0.2178, allocations: 1.143 MB / 331.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.2178, allocations: 8 kB / 331.4 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.2179, allocations: 16 kB / 331.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003609/0.2215, allocations: 0.926 MB / 332.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007773/0.2222, allocations: 295.8 kB / 332.6 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.2234, allocations: 1.141 MB / 333.8 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006447/0.2241, allocations: 55.98 kB / 333.8 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.2242, allocations: 55.97 kB / 333.9 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005703/0.2247, allocations: 354.7 kB / 334.2 MB, free: 1.723 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007053/0.2255, allocations: 0.7883 MB / 335 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001135/0.2266, allocations: 0.9622 MB / 336 MB, free: 15.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.144e-06/0.2266, allocations: 0.9375 kB / 336 MB, free: 15.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001791/0.2284, allocations: 1.128 MB / 337.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2284, allocations: 12 kB / 337.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.2284, allocations: 8 kB / 337.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003151/0.2316, allocations: 0.7908 MB / 337.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007793/0.2323, allocations: 300 kB / 338.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009798/0.2333, allocations: 1.072 MB / 339.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006829/0.234, allocations: 55.98 kB / 339.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.2341, allocations: 58.91 kB / 339.4 MB, free: 12.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003153/0.2344, allocations: 359.6 kB / 339.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.2347, allocations: 171.2 kB / 339.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002121/0.2368, allocations: 1.093 MB / 341 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.2368, allocations: 15.94 kB / 341 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2368, allocations: 3.984 kB / 341 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.2368, allocations: 3.984 kB / 341 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.2396, allocations: 1.772 MB / 342.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2396, allocations: 0 / 342.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005701/0.2402, allocations: 175.8 kB / 343 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/0.2415, allocations: 0.5926 MB / 343.6 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.564e-05/0.2416, allocations: 39.91 kB / 343.6 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.2427, allocations: 1.177 MB / 344.8 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2427, allocations: 4 kB / 344.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.2446, allocations: 1.26 MB / 346 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004412/0.245, allocations: 262.8 kB / 346.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.2452, allocations: 23.69 kB / 346.3 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005151/0.2457, allocations: 47.97 kB / 346.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.2458, allocations: 85.14 kB / 346.4 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.423e-05/0.2459, allocations: 39.97 kB / 346.5 MB, free: 5.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004619/0.2464, allocations: 0.5187 MB / 347 MB, free: 4.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2464, allocations: 0 / 347 MB, free: 4.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001605/0.248, allocations: 0.8701 MB / 347.9 MB, free: 3.848 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006562/0.2487, allocations: 465.5 kB / 348.3 MB, free: 3.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.2509, allocations: 1.434 MB / 349.8 MB, free: 2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.2509, allocations: 4 kB / 349.8 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005798/0.2514, allocations: 447.5 kB / 350.2 MB, free: 1.562 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.2528, allocations: 0.6518 MB / 350.9 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.256, allocations: 2.46 MB / 353.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.2562, allocations: 344.7 kB / 353.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007485/0.2569, allocations: 289.5 kB / 353.9 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008941/0.2578, allocations: 0.5759 MB / 354.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.2578, allocations: 4 kB / 354.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of Templates: time 0.03919/0.297, allocations: 37.98 MB / 392.5 MB, free: 7.777 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.616651898249984]