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.001538/0.001538, allocations: 85.95 kB / 23 MB, free: 1.504 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.004799/0.004799, allocations: 175.6 kB / 26.39 MB, free: 7.988 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.8757/0.8757, allocations: 158.6 MB / 188.3 MB, free: 2.801 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.272e-06/1.272e-06, allocations: 3.938 kB / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.438e-05/1.565e-05, allocations: 2.312 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006911/0.006926, allocations: 7.932 MB / 260.2 MB, free: 15.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005549/0.01248, allocations: 5.441 MB / 265.6 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.01281, allocations: 35.69 kB / 265.6 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004837/0.0133, allocations: 242.4 kB / 265.9 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001386/0.01468, allocations: 1.06 MB / 266.9 MB, free: 8.492 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.0174, allocations: 1.854 MB / 268.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002081/0.01948, allocations: 2.158 MB / 271 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000539/0.02002, allocations: 0.5496 MB / 271.5 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.02105, allocations: 1.072 MB / 272.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000719/0.02177, allocations: 0.748 MB / 273.3 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.02187, allocations: 84 kB / 273.4 MB, free: 2 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.02312, allocations: 0.897 MB / 274.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002231/0.02334, allocations: 335 kB / 274.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.02359, allocations: 331.2 kB / 275 MB, free: 460 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.02509, allocations: 1.538 MB / 276.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.02509, allocations: 0 / 276.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.02509, allocations: 0 / 276.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.0251, allocations: 0 / 276.5 MB, free: 14.91 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.001662/0.02677, allocations: 1.3 MB / 277.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.0268, allocations: 11.98 kB / 277.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.02705, allocations: 160.2 kB / 278 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.02762, allocations: 0.553 MB / 278.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.291e-05/0.02771, allocations: 152.1 kB / 278.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.124e-05/0.02779, allocations: 63.97 kB / 278.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006561/0.02845, allocations: 0.8069 MB / 279.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.02847, allocations: 11.88 kB / 279.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.02852, allocations: 31.97 kB / 279.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.725e-05/0.02857, allocations: 49.28 kB / 279.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/0.02895, allocations: 290.1 kB / 279.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.03137, allocations: 2.164 MB / 282.1 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003771/0.03175, allocations: 301.7 kB / 282.4 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.03189, allocations: 125.1 kB / 282.5 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/0.03299, allocations: 0.9389 MB / 283.4 MB, free: 7.688 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.03302, allocations: 45.89 kB / 283.5 MB, free: 7.633 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.472e-06/0.03302, allocations: 0 / 283.5 MB, free: 7.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002992/0.03601, allocations: 1.409 MB / 284.9 MB, free: 6.188 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.03606, allocations: 93.77 kB / 285 MB, free: 6.078 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.03642, allocations: 0.5334 MB / 285.5 MB, free: 5.531 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.434e-05/0.03647, allocations: 33.7 kB / 285.5 MB, free: 5.492 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002106/0.03668, allocations: 399.3 kB / 285.9 MB, free: 5.094 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.03682, allocations: 242 kB / 286.2 MB, free: 4.855 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.037, allocations: 164.1 kB / 286.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.03716, allocations: 0.5546 MB / 286.9 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.03732, allocations: 115.6 kB / 287 MB, free: 4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.03759, allocations: 365.8 kB / 287.4 MB, free: 3.555 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.03803, allocations: 478.8 kB / 287.8 MB, free: 3.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.03803, allocations: 0 / 287.8 MB, free: 3.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007281/0.03876, allocations: 0.5977 MB / 288.4 MB, free: 2.395 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.03877, allocations: 8 kB / 288.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.03878, allocations: 4.562 kB / 288.4 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006272/0.03941, allocations: 299.4 kB / 288.7 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.03974, allocations: 159.7 kB / 288.9 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005427/0.04029, allocations: 0.9364 MB / 289.8 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.04051, allocations: 24 kB / 289.8 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.04055, allocations: 31.98 kB / 289.9 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002377/0.04079, allocations: 244.8 kB / 290.1 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002568/0.04105, allocations: 373.5 kB / 290.5 MB, free: 212 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005134/0.04156, allocations: 470.5 kB / 290.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.234e-06/0.04156, allocations: 0 / 290.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006939/0.04226, allocations: 0.5975 MB / 291.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/0.04227, allocations: 8 kB / 291.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.04227, allocations: 4.562 kB / 291.5 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.04256, allocations: 183.6 kB / 291.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.04289, allocations: 175.7 kB / 291.9 MB, free: 14.69 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004298/0.04332, allocations: 0.8974 MB / 292.8 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.04354, allocations: 28 kB / 292.8 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.04357, allocations: 23.98 kB / 292.8 MB, free: 13.71 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.0001579/0.04373, allocations: 319.8 kB / 293.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.04384, allocations: 91.58 kB / 293.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007212/0.04456, allocations: 0.5464 MB / 293.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.04457, allocations: 8 kB / 293.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.04457, allocations: 4 kB / 293.8 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.04458, allocations: 3.984 kB / 293.8 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.04579, allocations: 1.066 MB / 294.9 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.04579, allocations: 3.984 kB / 294.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.04608, allocations: 111.9 kB / 295 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004949/0.04657, allocations: 287.2 kB / 295.3 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.04661, allocations: 23.98 kB / 295.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000515/0.04713, allocations: 0.9481 MB / 296.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.04713, allocations: 0 / 296.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008246/0.04795, allocations: 0.7685 MB / 297 MB, free: 9.426 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.04813, allocations: 135.5 kB / 297.1 MB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.04819, allocations: 8 kB / 297.1 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.04842, allocations: 35.98 kB / 297.2 MB, free: 9.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.0485, allocations: 48.56 kB / 297.2 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.04854, allocations: 23.97 kB / 297.2 MB, free: 9.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001838/0.04872, allocations: 330.6 kB / 297.6 MB, free: 8.859 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04872, allocations: 0 / 297.6 MB, free: 8.859 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002259/0.05098, allocations: 0.5537 MB / 298.1 MB, free: 8.305 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.001035/0.05202, allocations: 449.9 kB / 298.6 MB, free: 7.855 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.05354, allocations: 0.7072 MB / 299.3 MB, free: 7.145 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/0.05355, allocations: 3.859 kB / 299.3 MB, free: 7.141 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004109/0.05396, allocations: 244.4 kB / 299.5 MB, free: 6.895 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.05501, allocations: 376.4 kB / 299.9 MB, free: 6.531 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.0575, allocations: 1.401 MB / 301.3 MB, free: 5.098 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001718/0.05767, allocations: 200.6 kB / 301.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005244/0.05819, allocations: 150.2 kB / 301.6 MB, free: 4.734 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005818/0.05878, allocations: 385.8 kB / 302 MB, free: 4.355 MB / 282.7 MB Notification: Performance of SimCode: time 1.874e-06/0.05878, allocations: 0 / 302 MB, free: 4.355 MB / 282.7 MB Notification: Performance of Templates: time 0.02533/0.08411, allocations: 23.1 MB / 325.1 MB, free: 13.23 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.304813690017909]