Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001671/0.001671, allocations: 200.5 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007832/0.0007832, allocations: 96.78 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002122/0.0002123, allocations: 8 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2004, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02647/0.2269, allocations: 37.42 MB / 449.5 MB, free: 2.484 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.2441, allocations: 14.32 MB / 463.8 MB, free: 3.184 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001593/0.2458, allocations: 43.62 kB / 463.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.2471, allocations: 417.7 kB / 464.2 MB, free: 2.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004762/0.2518, allocations: 1.75 MB / 466 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00616/0.258, allocations: 2.303 MB / 468.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005504/0.2635, allocations: 5.214 MB / 473.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.2652, allocations: 1.005 MB / 474.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002475/0.2677, allocations: 1.362 MB / 475.9 MB, free: 7.051 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.2697, allocations: 1.386 MB / 477.3 MB, free: 5.66 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002126/0.2699, allocations: 80 kB / 477.3 MB, free: 5.582 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004025/0.2739, allocations: 1.93 MB / 479.3 MB, free: 3.648 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005918/0.2745, allocations: 498.5 kB / 479.8 MB, free: 3.16 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009601/0.2755, allocations: 0.7558 MB / 480.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004416/0.2799, allocations: 3.229 MB / 483.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.28, allocations: 3.938 kB / 483.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.28, allocations: 4 kB / 483.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.28, allocations: 0 / 483.7 MB, free: 15.15 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004288/0.2843, allocations: 1.773 MB / 485.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2843, allocations: 12.03 kB / 485.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004426/0.2848, allocations: 170.2 kB / 485.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.2862, allocations: 0.9018 MB / 486.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.2864, allocations: 234.5 kB / 486.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.2866, allocations: 99.97 kB / 486.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/0.2893, allocations: 1.794 MB / 488.7 MB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.2893, allocations: 7.875 kB / 488.7 MB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.2895, allocations: 39.98 kB / 488.8 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.2896, allocations: 102 kB / 488.9 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.2924, allocations: 1.772 MB / 490.6 MB, free: 8.059 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01109/0.3035, allocations: 6.952 MB / 497.6 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.306, allocations: 1.493 MB / 499.1 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.3074, allocations: 0.8861 MB / 500 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008439/0.3082, allocations: 0.6568 MB / 0.4889 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.3083, allocations: 47.56 kB / 0.4889 GB, free: 13.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.3083, allocations: 0 / 0.4889 GB, free: 13.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=128): time 0.0158/0.3241, allocations: 6.66 MB / 0.4954 GB, free: 6.797 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.784e-05/0.3242, allocations: 171.5 kB / 0.4956 GB, free: 6.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.3257, allocations: 1.092 MB / 0.4967 GB, free: 5.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.3258, allocations: 49.7 kB / 0.4967 GB, free: 5.426 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.3262, allocations: 0.4965 MB / 0.4972 GB, free: 4.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/0.3266, allocations: 437.8 kB / 0.4976 GB, free: 4.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.3267, allocations: 24 kB / 0.4976 GB, free: 4.465 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3269, allocations: 361.9 kB / 0.498 GB, free: 4.105 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.3282, allocations: 0.8354 MB / 0.4988 GB, free: 3.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.3297, allocations: 1.076 MB / 0.4999 GB, free: 2.117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.3324, allocations: 1.8 MB / 0.5016 GB, free: 260 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3324, allocations: 4 kB / 0.5016 GB, free: 256 kB / 378.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.1847/0.5172, allocations: 2.604 MB / 0.5042 GB, free: 95.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.5173, allocations: 229.3 kB / 0.5044 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.5173, allocations: 4.969 kB / 0.5044 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003652/0.521, allocations: 1.296 MB / 0.5056 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.5221, allocations: 212.5 kB / 0.5058 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005544/0.5276, allocations: 6.367 MB / 0.5121 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.529, allocations: 91.66 kB / 0.5122 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001991/0.5292, allocations: 58.8 kB / 0.5122 GB, free: 89.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.366e-06/0.5292, allocations: 3.594 kB / 0.5122 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003555/0.5328, allocations: 2.337 MB / 0.5145 GB, free: 88.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5328, allocations: 10.5 kB / 0.5145 GB, free: 88.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002243/0.5351, allocations: 1.026 MB / 0.5155 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009638/0.536, allocations: 223.5 kB / 0.5157 GB, free: 88.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004503/0.5406, allocations: 6.106 MB / 0.5217 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.5418, allocations: 100.6 kB / 0.5218 GB, free: 83.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.542, allocations: 57.56 kB / 0.5218 GB, free: 83.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0006168/0.5426, allocations: 454 kB / 0.5223 GB, free: 82.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002168/0.5428, allocations: 139.1 kB / 0.5224 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004475/0.5473, allocations: 2.789 MB / 0.5251 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.5473, allocations: 16 kB / 0.5251 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.5473, allocations: 11.92 kB / 0.5252 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.5474, allocations: 3.984 kB / 0.5252 GB, free: 80.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007091/0.5545, allocations: 4.511 MB / 0.5296 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.5545, allocations: 4 kB / 0.5296 GB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007592/0.5553, allocations: 155.8 kB / 0.5297 GB, free: 75.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002897/0.5582, allocations: 1.3 MB / 0.531 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.5583, allocations: 43.91 kB / 0.531 GB, free: 74.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004788/0.5631, allocations: 6.39 MB / 0.5373 GB, free: 67.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.5631, allocations: 0 / 0.5373 GB, free: 67.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005239/0.5684, allocations: 3.93 MB / 0.5411 GB, free: 63.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006873/0.5691, allocations: 453.3 kB / 0.5415 GB, free: 62.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/0.5693, allocations: 24 kB / 0.5416 GB, free: 62.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5704, allocations: 93.64 kB / 0.5416 GB, free: 62.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.5708, allocations: 145.1 kB / 0.5418 GB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.5709, allocations: 51.97 kB / 0.5418 GB, free: 62.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008364/0.5717, allocations: 0.7376 MB / 0.5426 GB, free: 61.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5717, allocations: 0 / 0.5426 GB, free: 61.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002516/0.5743, allocations: 1.058 MB / 0.5436 GB, free: 60.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001604/0.5759, allocations: 0.7478 MB / 0.5443 GB, free: 60.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006487/0.5824, allocations: 3.785 MB / 0.548 GB, free: 56.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5824, allocations: 0 / 0.548 GB, free: 56.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002499/0.5849, allocations: 1.429 MB / 0.5494 GB, free: 54.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.5875, allocations: 0.5961 MB / 0.55 GB, free: 54.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005616/0.5932, allocations: 3.707 MB / 0.5536 GB, free: 50.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007202/0.5939, allocations: 1.264 MB / 0.5548 GB, free: 49.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001834/0.5958, allocations: 0.573 MB / 0.5554 GB, free: 48.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.5961, allocations: 119.4 kB / 0.5555 GB, free: 48.66 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5961, allocations: 0 / 0.5555 GB, free: 48.66 MB / 378.7 MB Notification: Performance of Templates: time 0.05107/0.6472, allocations: 43.88 MB / 0.5984 GB, free: 5.066 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)