Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.001131/0.001131, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.007301/0.007301, allocations: 168.5 kB / 25.33 MB, free: 8.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9068/0.9068, allocations: 158.6 MB / 187.2 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 251 MB, free: 7.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.517e-05, allocations: 9.203 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01092/0.01094, allocations: 8.01 MB / 259 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006113/0.01706, allocations: 5.535 MB / 264.6 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005241/0.01758, allocations: 31.69 kB / 264.6 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005954/0.01817, allocations: 242.4 kB / 264.8 MB, free: 9.645 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.01998, allocations: 1.057 MB / 265.9 MB, free: 8.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003212/0.02319, allocations: 1.812 MB / 267.7 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.02538, allocations: 2.182 MB / 269.9 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007859/0.02616, allocations: 0.5496 MB / 270.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.02749, allocations: 1.076 MB / 271.5 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009473/0.02844, allocations: 0.7675 MB / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.02859, allocations: 76 kB / 272.4 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.02986, allocations: 0.897 MB / 273.3 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002466/0.03011, allocations: 343 kB / 273.6 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005794/0.03069, allocations: 331.2 kB / 273.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.03247, allocations: 1.542 MB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.03248, allocations: 0 / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.03248, allocations: 4 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.03249, allocations: 0 / 275.5 MB, free: 14.98 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001844/0.03434, allocations: 1.3 MB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.03438, allocations: 11.98 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.03467, allocations: 156.2 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006499/0.03532, allocations: 0.5726 MB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.03544, allocations: 156.1 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.03553, allocations: 59.98 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008564/0.03638, allocations: 0.8616 MB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.0364, allocations: 3.953 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.03645, allocations: 23.98 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.417e-05/0.03652, allocations: 53.28 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005544/0.03707, allocations: 363.5 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003053/0.04012, allocations: 2.292 MB / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/0.0406, allocations: 337.8 kB / 281.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.04079, allocations: 149.1 kB / 281.8 MB, free: 8.398 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001116/0.04191, allocations: 0.9585 MB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.04194, allocations: 45.89 kB / 282.8 MB, free: 7.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.673e-06/0.04194, allocations: 0 / 282.8 MB, free: 7.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.00299/0.04493, allocations: 1.639 MB / 284.4 MB, free: 5.688 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.04497, allocations: 85.77 kB / 284.5 MB, free: 5.586 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004183/0.04539, allocations: 0.5492 MB / 285 MB, free: 5.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.04544, allocations: 37.7 kB / 285.1 MB, free: 4.977 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.04563, allocations: 407.4 kB / 285.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.04577, allocations: 234 kB / 285.7 MB, free: 4.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.04594, allocations: 156.3 kB / 285.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.04611, allocations: 0.5586 MB / 286.4 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.04637, allocations: 151.6 kB / 286.6 MB, free: 3.453 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.04671, allocations: 393.9 kB / 287 MB, free: 2.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005749/0.04729, allocations: 0.5067 MB / 287.5 MB, free: 2.391 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.04729, allocations: 4 kB / 287.5 MB, free: 2.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001183/0.04848, allocations: 0.6723 MB / 288.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.04849, allocations: 8.094 kB / 288.1 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.0485, allocations: 4 kB / 288.2 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000649/0.04915, allocations: 307.1 kB / 288.5 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.0495, allocations: 155.7 kB / 288.6 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000598/0.0501, allocations: 0.9482 MB / 289.6 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.05036, allocations: 31.92 kB / 289.6 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/0.05041, allocations: 32 kB / 289.6 MB, free: 200 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003466/0.05076, allocations: 280.8 kB / 289.9 MB, free: 15.92 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003266/0.05109, allocations: 393.7 kB / 290.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000537/0.05162, allocations: 0.5064 MB / 290.8 MB, free: 14.85 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.897e-06/0.05163, allocations: 7.938 kB / 290.8 MB, free: 14.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0008631/0.05249, allocations: 0.6645 MB / 291.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.0525, allocations: 8 kB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.05251, allocations: 4 kB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.05284, allocations: 191.6 kB / 291.6 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/0.05318, allocations: 171.7 kB / 291.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004818/0.05366, allocations: 0.8975 MB / 292.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.05391, allocations: 35.92 kB / 292.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.05396, allocations: 35.98 kB / 292.8 MB, free: 12.8 MB / 282.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.0001855/0.05414, allocations: 315.8 kB / 293.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.05425, allocations: 99.53 kB / 293.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008707/0.05512, allocations: 0.5973 MB / 293.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.05513, allocations: 8 kB / 293.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.05513, allocations: 0 / 293.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.05514, allocations: 7.922 kB / 293.8 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.05687, allocations: 1.214 MB / 295 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.05688, allocations: 0 / 295 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/0.05718, allocations: 111.9 kB / 295.1 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005411/0.05773, allocations: 298.6 kB / 295.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.62e-05/0.05777, allocations: 23.98 kB / 295.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000541/0.05831, allocations: 0.9559 MB / 296.4 MB, free: 9.086 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.05831, allocations: 0 / 296.4 MB, free: 9.086 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009817/0.0593, allocations: 0.8584 MB / 297.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.05948, allocations: 147.4 kB / 297.4 MB, free: 8.059 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.365e-05/0.05954, allocations: 23.92 kB / 297.4 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.05977, allocations: 27.98 kB / 297.5 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.772e-05/0.05986, allocations: 52.55 kB / 297.5 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/0.05989, allocations: 27.98 kB / 297.5 MB, free: 7.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002442/0.06014, allocations: 346.8 kB / 297.9 MB, free: 7.594 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06014, allocations: 0 / 297.9 MB, free: 7.594 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008926/0.06103, allocations: 0.5537 MB / 298.4 MB, free: 7.039 MB / 282.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.0006301/0.06166, allocations: 441.9 kB / 298.9 MB, free: 6.598 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.06286, allocations: 0.7941 MB / 299.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.06287, allocations: 7.797 kB / 299.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.06324, allocations: 272.4 kB / 299.9 MB, free: 5.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008537/0.06409, allocations: 377.4 kB / 300.3 MB, free: 5.148 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.06623, allocations: 1.409 MB / 301.7 MB, free: 3.707 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.06636, allocations: 204.6 kB / 301.9 MB, free: 3.488 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008062/0.06716, allocations: 269.8 kB / 302.2 MB, free: 3.223 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.0673, allocations: 72.47 kB / 302.2 MB, free: 3.152 MB / 282.7 MB Notification: Performance of SimCode: time 7.32e-07/0.0673, allocations: 0 / 302.2 MB, free: 3.152 MB / 282.7 MB Notification: Performance of Templates: time 0.02302/0.09032, allocations: 22.46 MB / 324.7 MB, free: 12.68 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.20431507518515]