Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 0.9567/0.9567, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.82e-05, allocations: 4 kB / 148.1 MB, free: 6.215 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04616/0.0462, allocations: 25.18 MB / 173.3 MB, free: 12.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6284/0.6747, allocations: 238.8 MB / 412.1 MB, free: 79.16 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.6749, allocations: 73.17 kB / 412.2 MB, free: 79.16 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5644/1.239, allocations: 130.1 MB / 0.5296 GB, free: 39.74 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.185e-06/1.239, allocations: 0 / 0.5296 GB, free: 39.74 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001018/1.239, allocations: 18.14 kB / 0.5296 GB, free: 39.73 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.003665/1.243, allocations: 1.03 MB / 0.5306 GB, free: 38.92 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/1.243, allocations: 7.781 kB / 0.5306 GB, free: 38.92 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004807/1.244, allocations: 87.61 kB / 0.5307 GB, free: 38.88 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002621/1.246, allocations: 0.6138 MB / 0.5313 GB, free: 38.41 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/1.247, allocations: 77.98 kB / 0.5314 GB, free: 38.34 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/1.247, allocations: 34.5 kB / 0.5314 GB, free: 38.34 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001932/1.249, allocations: 0.5303 MB / 0.532 GB, free: 38.1 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/1.251, allocations: 0.6981 MB / 0.5326 GB, free: 37.65 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.918e-05/1.251, allocations: 7.875 kB / 0.5326 GB, free: 37.64 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/1.251, allocations: 7.797 kB / 0.5327 GB, free: 37.64 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/1.251, allocations: 37.27 kB / 0.5327 GB, free: 37.63 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008131/1.259, allocations: 3.493 MB / 0.5361 GB, free: 34.48 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/1.261, allocations: 371.1 kB / 0.5365 GB, free: 34.3 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006306/1.261, allocations: 220.1 kB / 0.5367 GB, free: 34.2 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003097/1.264, allocations: 1.365 MB / 0.538 GB, free: 32.93 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007173/1.265, allocations: 283.4 kB / 0.5383 GB, free: 32.74 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 6.251e-06/1.265, allocations: 0 / 0.5383 GB, free: 32.74 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.006885/1.272, allocations: 1.312 MB / 0.5395 GB, free: 31.98 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/1.272, allocations: 161.9 kB / 0.5397 GB, free: 31.79 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/1.274, allocations: 0.5155 MB / 0.5402 GB, free: 31.49 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/1.274, allocations: 33.69 kB / 0.5402 GB, free: 31.45 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005067/1.275, allocations: 434.3 kB / 0.5407 GB, free: 31.06 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/1.275, allocations: 125.8 kB / 0.5408 GB, free: 30.95 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.38e-05/1.275, allocations: 0 / 0.5408 GB, free: 30.95 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/1.275, allocations: 338.7 kB / 0.5411 GB, free: 30.62 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009378/1.276, allocations: 219 kB / 0.5413 GB, free: 30.53 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/1.277, allocations: 0.4927 MB / 0.5418 GB, free: 30.05 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/1.279, allocations: 311.3 kB / 0.5421 GB, free: 29.91 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.494e-06/1.279, allocations: 5.562 kB / 0.5421 GB, free: 29.91 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002335/1.281, allocations: 0.8032 MB / 0.5429 GB, free: 29.54 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/1.281, allocations: 37.64 kB / 0.5429 GB, free: 29.51 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/1.281, allocations: 7.156 kB / 0.5429 GB, free: 29.51 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004395/1.282, allocations: 111.3 kB / 0.543 GB, free: 29.46 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006573/1.283, allocations: 139.9 kB / 0.5432 GB, free: 29.43 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007461/1.283, allocations: 0.6852 MB / 0.5438 GB, free: 28.81 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008387/1.284, allocations: 40.84 kB / 0.5439 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/1.284, allocations: 40.12 kB / 0.5439 GB, free: 28.79 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002817/1.285, allocations: 181.1 kB / 0.5441 GB, free: 28.62 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/1.285, allocations: 73.77 kB / 0.5441 GB, free: 28.58 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/1.287, allocations: 0.6322 MB / 0.5448 GB, free: 28.26 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.038e-06/1.287, allocations: 3.938 kB / 0.5448 GB, free: 28.26 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/1.287, allocations: 3.688 kB / 0.5448 GB, free: 28.26 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.588e-06/1.287, allocations: 3.984 kB / 0.5448 GB, free: 28.26 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002902/1.29, allocations: 1.233 MB / 0.546 GB, free: 27.39 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/1.29, allocations: 7.562 kB / 0.546 GB, free: 27.39 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/1.29, allocations: 59.97 kB / 0.546 GB, free: 27.33 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004561/1.291, allocations: 92.3 kB / 0.5461 GB, free: 27.24 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/1.291, allocations: 12 kB / 0.5461 GB, free: 27.23 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006892/1.291, allocations: 0.6733 MB / 0.5468 GB, free: 26.53 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.291, allocations: 4.031 kB / 0.5468 GB, free: 26.53 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/1.293, allocations: 0.9581 MB / 0.5477 GB, free: 25.54 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/1.294, allocations: 136.3 kB / 0.5479 GB, free: 25.39 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/1.294, allocations: 8 kB / 0.5479 GB, free: 25.38 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/1.294, allocations: 23.91 kB / 0.5479 GB, free: 25.36 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/1.294, allocations: 43.78 kB / 0.5479 GB, free: 25.32 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/1.294, allocations: 24.05 kB / 0.548 GB, free: 25.29 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0005467/1.295, allocations: 391.1 kB / 0.5483 GB, free: 24.91 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.64e-07/1.295, allocations: 0 / 0.5483 GB, free: 24.91 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001423/1.296, allocations: 359.6 kB / 0.5487 GB, free: 24.56 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001366/1.298, allocations: 0.5136 MB / 0.5492 GB, free: 24.09 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001219/1.299, allocations: 0.5583 MB / 0.5497 GB, free: 23.52 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.124e-06/1.299, allocations: 2.438 kB / 0.5497 GB, free: 23.52 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005135/1.3, allocations: 287.4 kB / 0.55 GB, free: 23.23 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/1.301, allocations: 262.7 kB / 0.5503 GB, free: 22.99 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/1.303, allocations: 1.071 MB / 0.5513 GB, free: 21.89 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/1.304, allocations: 0.9646 MB / 0.5522 GB, free: 20.9 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/1.304, allocations: 55.42 kB / 0.5523 GB, free: 20.85 MB / 234.7 MB Notification: Performance of SimCode: time 1.695e-06/1.304, allocations: 0 / 0.5523 GB, free: 20.85 MB / 234.7 MB Notification: Performance of Templates: time 0.02255/1.327, allocations: 15.44 MB / 0.5674 GB, free: 5.48 MB / 234.7 MB