Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.0009927/0.0009927, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001074/0.001074, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 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 0.9674/0.9674, allocations: 173.4 MB / 202.3 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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.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.0.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.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.619e-05, allocations: 2.312 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.009242/0.009269, allocations: 10.99 MB / 280.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008119/0.01739, allocations: 6.822 MB / 287 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.01861, allocations: 63.44 kB / 287.1 MB, free: 7.863 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.0197, allocations: 425.2 kB / 287.5 MB, free: 7.445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002878/0.02258, allocations: 1.752 MB / 289.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004068/0.02665, allocations: 2.841 MB / 292.1 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004387/0.03103, allocations: 4.063 MB / 296.1 MB, free: 14.76 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.03255, allocations: 1.091 MB / 297.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.03512, allocations: 2.077 MB / 299.3 MB, free: 11.56 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00193/0.03705, allocations: 1.555 MB / 300.9 MB, free: 10 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000441/0.03749, allocations: 156 kB / 301 MB, free: 9.852 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001955/0.03944, allocations: 0.9713 MB / 302 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005114/0.03996, allocations: 0.6738 MB / 302.7 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008379/0.04079, allocations: 0.6314 MB / 303.3 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002814/0.04361, allocations: 2.282 MB / 305.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.04361, allocations: 4 kB / 305.6 MB, free: 5.277 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.04361, allocations: 4 kB / 305.6 MB, free: 5.273 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.391e-05/0.04367, allocations: 0 / 305.6 MB, free: 5.273 MB / 282.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.003175/0.04684, allocations: 2.031 MB / 307.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.04688, allocations: 12.03 kB / 307.6 MB, free: 3.184 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005255/0.04741, allocations: 287.6 kB / 307.9 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.04852, allocations: 0.9834 MB / 308.9 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005405/0.04906, allocations: 252.2 kB / 309.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.04921, allocations: 104 kB / 309.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.05056, allocations: 1.442 MB / 310.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.05059, allocations: 4 kB / 310.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.415e-05/0.05068, allocations: 47.97 kB / 310.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.05079, allocations: 113.9 kB / 310.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008538/0.05165, allocations: 0.5952 MB / 311.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005079/0.05672, allocations: 3.958 MB / 315.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007015/0.05743, allocations: 0.5793 MB / 316 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004907/0.05792, allocations: 246.5 kB / 316.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002206/0.06012, allocations: 1.736 MB / 317.9 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.06015, allocations: 50.39 kB / 318 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003961/0.06055, allocations: 183.2 kB / 318.2 MB, free: 8.238 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.355e-06/0.06055, allocations: 0 / 318.2 MB, free: 8.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=112): time 0.007161/0.06771, allocations: 2.899 MB / 321.1 MB, free: 5.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.06778, allocations: 145.5 kB / 321.2 MB, free: 5.145 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007781/0.06856, allocations: 0.9178 MB / 322.1 MB, free: 4.207 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.933e-05/0.06864, allocations: 49.7 kB / 322.2 MB, free: 4.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000392/0.06903, allocations: 0.6824 MB / 322.9 MB, free: 3.461 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005774/0.06961, allocations: 416.5 kB / 323.3 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003339/0.06994, allocations: 305 kB / 323.6 MB, free: 2.746 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.07004, allocations: 476.8 kB / 324 MB, free: 2.277 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003145/0.07035, allocations: 215.5 kB / 324.2 MB, free: 2.062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005592/0.07091, allocations: 0.7663 MB / 325 MB, free: 1.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009827/0.0719, allocations: 0.948 MB / 326 MB, free: 15.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.006e-06/0.07191, allocations: 7.938 kB / 326 MB, free: 15.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001715/0.07362, allocations: 1.144 MB / 327.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.07365, allocations: 15.94 kB / 327.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.07367, allocations: 12 kB / 327.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002978/0.07665, allocations: 0.9185 MB / 328.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006689/0.07732, allocations: 303.5 kB / 328.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.0784, allocations: 1.138 MB / 329.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006691/0.07907, allocations: 47.98 kB / 329.5 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-05/0.07916, allocations: 59.97 kB / 329.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005378/0.0797, allocations: 354.7 kB / 329.9 MB, free: 11.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007422/0.08044, allocations: 0.7897 MB / 330.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008424/0.08128, allocations: 0.9509 MB / 331.7 MB, free: 9.762 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.172e-06/0.08129, allocations: 7.938 kB / 331.7 MB, free: 9.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001423/0.08271, allocations: 1.124 MB / 332.8 MB, free: 8.617 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.08273, allocations: 8 kB / 332.8 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.08274, allocations: 15.98 kB / 332.8 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002529/0.08527, allocations: 0.7944 MB / 333.6 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005998/0.08587, allocations: 299.5 kB / 333.9 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008194/0.08669, allocations: 1.081 MB / 335 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006059/0.08729, allocations: 47.98 kB / 335.1 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.138e-05/0.08737, allocations: 63.91 kB / 335.1 MB, free: 6.281 MB / 314.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.0003295/0.0877, allocations: 355.7 kB / 335.5 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/0.08792, allocations: 171.2 kB / 335.6 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.08979, allocations: 1.083 MB / 336.7 MB, free: 4.656 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.0898, allocations: 12 kB / 336.7 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.0898, allocations: 4 kB / 336.7 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.08981, allocations: 7.969 kB / 336.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002502/0.09231, allocations: 1.783 MB / 338.5 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.09231, allocations: 0 / 338.5 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/0.09277, allocations: 175.8 kB / 338.7 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.09382, allocations: 0.593 MB / 339.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.259e-05/0.09388, allocations: 31.98 kB / 339.3 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008916/0.09478, allocations: 1.176 MB / 340.5 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.09478, allocations: 0 / 340.5 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.09629, allocations: 1.264 MB / 341.8 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/0.09668, allocations: 258.9 kB / 342 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.0968, allocations: 20 kB / 342 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.09722, allocations: 47.97 kB / 342.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.09735, allocations: 93.08 kB / 342.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.734e-05/0.09742, allocations: 43.91 kB / 342.2 MB, free: 15.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003875/0.09781, allocations: 0.5185 MB / 342.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09781, allocations: 4 kB / 342.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001571/0.09938, allocations: 0.8662 MB / 343.6 MB, free: 13.67 MB / 330.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.0006876/0.1001, allocations: 461.9 kB / 344 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002556/0.1026, allocations: 1.431 MB / 345.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1026, allocations: 0 / 345.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006201/0.1032, allocations: 454.3 kB / 345.9 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.1046, allocations: 0.6327 MB / 346.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.1078, allocations: 2.469 MB / 349 MB, free: 8.207 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.108, allocations: 340.7 kB / 349.4 MB, free: 7.852 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007911/0.1088, allocations: 299.3 kB / 349.6 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009145/0.1097, allocations: 0.5837 MB / 350.2 MB, free: 6.969 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1097, allocations: 0 / 350.2 MB, free: 6.969 MB / 330.7 MB Notification: Performance of Templates: time 0.1408/0.2505, allocations: 38.62 MB / 388.9 MB, free: 55.2 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.984103995375335]