Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000951/0.000951, allocations: 84.25 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009995/0.0009995, allocations: 165.9 kB / 25.61 MB, free: 8.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9762/0.9762, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 274.1 MB, free: 4.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.534e-05, allocations: 2.312 kB / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01004/0.01007, allocations: 8.021 MB / 282.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007561/0.01763, allocations: 5.501 MB / 287.6 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005981/0.01822, allocations: 35.69 kB / 287.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006276/0.01885, allocations: 238.5 kB / 287.9 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.02083, allocations: 1.072 MB / 289 MB, free: 5.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002985/0.02382, allocations: 1.843 MB / 290.8 MB, free: 3.566 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002542/0.02636, allocations: 2.155 MB / 293 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007455/0.02711, allocations: 0.534 MB / 293.5 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00156/0.02867, allocations: 1.087 MB / 294.6 MB, free: 15.76 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009822/0.02965, allocations: 0.7402 MB / 295.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.02979, allocations: 80 kB / 295.4 MB, free: 14.94 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.03135, allocations: 0.9126 MB / 296.3 MB, free: 14.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006356/0.0377, allocations: 339 kB / 296.6 MB, free: 13.7 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004365/0.03814, allocations: 331.2 kB / 297 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008616/0.04675, allocations: 1.554 MB / 298.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.04676, allocations: 0 / 298.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.04676, allocations: 0 / 298.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.169e-05/0.04678, allocations: 0 / 298.5 MB, free: 11.81 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002162/0.04894, allocations: 1.296 MB / 299.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.04898, allocations: 12.03 kB / 299.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003471/0.04932, allocations: 152.2 kB / 300 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006797/0.05612, allocations: 0.5532 MB / 300.5 MB, free: 9.738 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.05624, allocations: 160.1 kB / 300.7 MB, free: 9.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.702e-05/0.05633, allocations: 55.98 kB / 300.7 MB, free: 9.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008532/0.05719, allocations: 0.8069 MB / 301.5 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.05721, allocations: 4 kB / 301.5 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.05727, allocations: 23.92 kB / 301.6 MB, free: 8.562 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-05/0.05734, allocations: 57.27 kB / 301.6 MB, free: 8.508 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/0.05785, allocations: 298 kB / 301.9 MB, free: 8.215 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009184/0.06703, allocations: 2.145 MB / 304.1 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006489/0.07352, allocations: 313.6 kB / 304.4 MB, free: 5.699 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.07371, allocations: 125.1 kB / 304.5 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001671/0.07538, allocations: 0.9311 MB / 305.4 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.07541, allocations: 53.88 kB / 305.5 MB, free: 4.559 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.334e-06/0.07542, allocations: 0 / 305.5 MB, free: 4.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.009294/0.08471, allocations: 1.409 MB / 306.9 MB, free: 3.117 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.08475, allocations: 85.75 kB / 307 MB, free: 3.016 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000432/0.08518, allocations: 0.5333 MB / 307.5 MB, free: 2.465 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.08523, allocations: 41.7 kB / 307.5 MB, free: 2.418 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00623/0.09146, allocations: 399.3 kB / 307.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.09165, allocations: 245.9 kB / 308.2 MB, free: 1.777 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.09187, allocations: 160.2 kB / 308.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.09205, allocations: 0.5585 MB / 308.9 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.09226, allocations: 115.6 kB / 309 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.0926, allocations: 365.9 kB / 309.4 MB, free: 488 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005597/0.09316, allocations: 466.8 kB / 309.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.09316, allocations: 3.938 kB / 309.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001/0.09416, allocations: 0.6018 MB / 310.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.09418, allocations: 11.98 kB / 310.4 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.09419, allocations: 4 kB / 310.4 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003312/0.0975, allocations: 295.6 kB / 310.7 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/0.09796, allocations: 159.8 kB / 310.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006925/0.09865, allocations: 0.9364 MB / 311.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.09898, allocations: 27.98 kB / 311.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.09903, allocations: 27.98 kB / 311.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005021/0.09953, allocations: 244.8 kB / 312.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002564/0.09978, allocations: 369.5 kB / 312.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004008/0.1002, allocations: 466.5 kB / 312.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.404e-06/0.1002, allocations: 4 kB / 312.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006952/0.1009, allocations: 0.5939 MB / 313.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.1009, allocations: 8 kB / 313.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1009, allocations: 4 kB / 313.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003132/0.1012, allocations: 191.8 kB / 313.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003323/0.1015, allocations: 155.8 kB / 313.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000483/0.102, allocations: 0.8935 MB / 314.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.1023, allocations: 35.98 kB / 314.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.1023, allocations: 31.97 kB / 314.8 MB, free: 10.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.1025, allocations: 311.8 kB / 315.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.1026, allocations: 99.53 kB / 315.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007372/0.1033, allocations: 0.5464 MB / 315.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1033, allocations: 11.98 kB / 315.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1033, allocations: 0 / 315.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1034, allocations: 0 / 315.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.1046, allocations: 1.074 MB / 316.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1046, allocations: 4 kB / 316.9 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.1049, allocations: 115.8 kB / 317 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005182/0.1054, allocations: 289.8 kB / 317.3 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.783e-05/0.1055, allocations: 15.98 kB / 317.3 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005/0.106, allocations: 0.9422 MB / 318.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.106, allocations: 4 kB / 318.2 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009247/0.1069, allocations: 0.7647 MB / 319 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.1071, allocations: 143.4 kB / 319.1 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.249e-05/0.1071, allocations: 12 kB / 319.1 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.1074, allocations: 27.98 kB / 319.2 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.009e-05/0.1074, allocations: 48.55 kB / 319.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.1075, allocations: 23.98 kB / 319.2 MB, free: 6.113 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001781/0.1077, allocations: 330.7 kB / 319.6 MB, free: 5.793 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1077, allocations: 4 kB / 319.6 MB, free: 5.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009734/0.1086, allocations: 0.5537 MB / 320.1 MB, free: 5.234 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006323/0.1093, allocations: 453.7 kB / 320.6 MB, free: 4.781 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.1103, allocations: 0.7012 MB / 321.3 MB, free: 4.078 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1103, allocations: 4 kB / 321.3 MB, free: 4.074 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.1106, allocations: 248.4 kB / 321.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008551/0.1115, allocations: 373.4 kB / 321.9 MB, free: 3.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.1134, allocations: 1.403 MB / 323.3 MB, free: 2.047 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.1136, allocations: 212.5 kB / 323.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004207/0.114, allocations: 166.1 kB / 323.6 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005186/0.1145, allocations: 373.9 kB / 324 MB, free: 1.289 MB / 298.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1145, allocations: 0 / 324 MB, free: 1.289 MB / 298.7 MB Notification: Performance of Templates: time 0.02445/0.139, allocations: 23.15 MB / 347.2 MB, free: 10.39 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.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.40913796890527]