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.0009468/0.0009468, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001/0.001, allocations: 161.2 kB / 25.6 MB, free: 8.895 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.9615/0.9615, allocations: 158.6 MB / 187.5 MB, free: 2.812 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.323e-06/1.323e-06, allocations: 0 / 251.5 MB, free: 7.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.55e-05, allocations: 2.312 kB / 251.5 MB, free: 7.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.007587/0.007603, allocations: 7.924 MB / 259.4 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006901/0.0145, allocations: 5.453 MB / 264.8 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006606/0.01516, allocations: 27.75 kB / 264.9 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006404/0.0158, allocations: 250.3 kB / 265.1 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001994/0.0178, allocations: 1.045 MB / 266.1 MB, free: 8.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003674/0.02147, allocations: 1.866 MB / 268 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002145/0.02362, allocations: 2.159 MB / 270.2 MB, free: 4.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005893/0.02421, allocations: 0.5457 MB / 270.7 MB, free: 3.992 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00122/0.02543, allocations: 1.079 MB / 271.8 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008921/0.02632, allocations: 0.748 MB / 272.5 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.02644, allocations: 80 kB / 272.6 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001602/0.02804, allocations: 0.897 MB / 273.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.02834, allocations: 339 kB / 273.9 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.02865, allocations: 335.2 kB / 274.2 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001988/0.03064, allocations: 1.538 MB / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.03064, allocations: 0 / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.03064, allocations: 0 / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.657e-06/0.03065, allocations: 4 kB / 275.7 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.001634/0.03229, allocations: 1.292 MB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.03233, allocations: 15.98 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002786/0.03261, allocations: 156.2 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006349/0.03324, allocations: 0.553 MB / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.03335, allocations: 156.1 kB / 277.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.277e-05/0.03344, allocations: 63.92 kB / 278 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00069/0.03413, allocations: 0.803 MB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.03414, allocations: 11.94 kB / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.03419, allocations: 27.98 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.791e-05/0.03426, allocations: 53.27 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003969/0.03466, allocations: 290.1 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.03732, allocations: 2.164 MB / 281.3 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004723/0.0378, allocations: 309.3 kB / 281.6 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.03795, allocations: 117.1 kB / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001624/0.03958, allocations: 0.9428 MB / 282.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.0396, allocations: 45.88 kB / 282.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.704e-06/0.0396, allocations: 0 / 282.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002589/0.04219, allocations: 1.417 MB / 284.1 MB, free: 6.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.04223, allocations: 85.77 kB / 284.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003463/0.04258, allocations: 0.5334 MB / 284.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.04262, allocations: 37.7 kB / 284.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.04279, allocations: 399.3 kB / 285.2 MB, free: 5.168 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.04293, allocations: 242 kB / 285.4 MB, free: 4.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001691/0.04309, allocations: 160.1 kB / 285.6 MB, free: 4.762 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.04327, allocations: 0.5624 MB / 286.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.04343, allocations: 119.6 kB / 286.2 MB, free: 4.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.0437, allocations: 357.9 kB / 286.6 MB, free: 3.629 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.04413, allocations: 478.8 kB / 287 MB, free: 3.078 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.04413, allocations: 0 / 287 MB, free: 3.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007696/0.0449, allocations: 0.5982 MB / 287.6 MB, free: 2.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.04492, allocations: 16.03 kB / 287.7 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.04493, allocations: 4 kB / 287.7 MB, free: 2.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006023/0.04553, allocations: 287.4 kB / 287.9 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.04586, allocations: 163.7 kB / 288.1 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008229/0.04669, allocations: 0.9379 MB / 289 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.04693, allocations: 31.98 kB / 289.1 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.04698, allocations: 31.98 kB / 289.1 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002531/0.04723, allocations: 248.8 kB / 289.3 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002508/0.04748, allocations: 365.6 kB / 289.7 MB, free: 284 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004286/0.04791, allocations: 466.5 kB / 290.2 MB, free: 15.74 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.636e-06/0.04791, allocations: 4 kB / 290.2 MB, free: 15.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0007346/0.04865, allocations: 0.602 MB / 290.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.04866, allocations: 4 kB / 290.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.04866, allocations: 8 kB / 290.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003314/0.04899, allocations: 187.6 kB / 291 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003333/0.04933, allocations: 155.8 kB / 291.1 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004695/0.0498, allocations: 0.9052 MB / 292 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.05003, allocations: 31.98 kB / 292.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.05008, allocations: 20 kB / 292.1 MB, free: 13.78 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.0002165/0.05029, allocations: 323.8 kB / 292.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.05041, allocations: 91.58 kB / 292.5 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007833/0.05119, allocations: 0.5425 MB / 293 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.0512, allocations: 8 kB / 293 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.0512, allocations: 0 / 293 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.05121, allocations: 3.984 kB / 293 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.05257, allocations: 1.07 MB / 294.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.05257, allocations: 0 / 294.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.05286, allocations: 111.9 kB / 294.2 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005511/0.05341, allocations: 291.4 kB / 294.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.913e-05/0.05345, allocations: 15.98 kB / 294.5 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005233/0.05397, allocations: 0.9518 MB / 295.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.05397, allocations: 0 / 295.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.05485, allocations: 0.7724 MB / 296.2 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.0551, allocations: 135.5 kB / 296.4 MB, free: 9.367 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.861e-05/0.05516, allocations: 16 kB / 296.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.05538, allocations: 27.98 kB / 296.4 MB, free: 9.324 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.286e-05/0.05547, allocations: 56.55 kB / 296.5 MB, free: 9.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.899e-05/0.05551, allocations: 19.98 kB / 296.5 MB, free: 9.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002286/0.05573, allocations: 330.7 kB / 296.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05573, allocations: 0 / 296.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001081/0.05681, allocations: 0.5537 MB / 297.4 MB, free: 8.375 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.0008342/0.05765, allocations: 445.9 kB / 297.8 MB, free: 7.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.05871, allocations: 0.7119 MB / 298.5 MB, free: 7.215 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.05871, allocations: 3.859 kB / 298.5 MB, free: 7.211 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.05905, allocations: 244.6 kB / 298.7 MB, free: 6.965 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009001/0.05995, allocations: 379.5 kB / 299.1 MB, free: 6.594 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.06219, allocations: 1.397 MB / 300.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.06231, allocations: 200.6 kB / 300.7 MB, free: 4.953 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000477/0.06279, allocations: 162.1 kB / 300.9 MB, free: 4.793 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005534/0.06334, allocations: 377.9 kB / 301.2 MB, free: 4.422 MB / 282.7 MB Notification: Performance of SimCode: time 1.292e-06/0.06334, allocations: 0 / 301.2 MB, free: 4.422 MB / 282.7 MB Notification: Performance of Templates: time 0.02565/0.08899, allocations: 22.77 MB / 324 MB, free: 13.64 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.1979763018898666]