Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.014/1.014, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.988e-05/2.988e-05, allocations: 4 kB / 148.2 MB, free: 6.113 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05868/0.05875, allocations: 25.18 MB / 173.4 MB, free: 12.89 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8256/0.8844, allocations: 236 MB / 409.4 MB, free: 60.09 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.8848, allocations: 68.84 kB / 409.5 MB, free: 60.09 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6001/1.485, allocations: 127.4 MB / 0.5243 GB, free: 42.95 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.485, allocations: 0 / 0.5243 GB, free: 42.95 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.777e-05/1.485, allocations: 16 kB / 0.5243 GB, free: 42.93 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002824/1.488, allocations: 1 MB / 0.5253 GB, free: 41.9 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.488, allocations: 8.031 kB / 0.5253 GB, free: 41.89 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003124/1.488, allocations: 79.03 kB / 0.5253 GB, free: 41.82 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/1.49, allocations: 0.5556 MB / 0.5259 GB, free: 41.23 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/1.49, allocations: 14.78 kB / 0.5259 GB, free: 41.22 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/1.49, allocations: 35.95 kB / 0.5259 GB, free: 41.19 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001325/1.491, allocations: 0.5453 MB / 0.5265 GB, free: 40.64 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/1.493, allocations: 0.6348 MB / 0.5271 GB, free: 39.98 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/1.493, allocations: 3.938 kB / 0.5271 GB, free: 39.98 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.591e-05/1.493, allocations: 0 / 0.5271 GB, free: 39.98 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.633e-05/1.493, allocations: 45.28 kB / 0.5271 GB, free: 39.93 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/1.498, allocations: 2.698 MB / 0.5298 GB, free: 37.09 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000917/1.499, allocations: 442.1 kB / 0.5302 GB, free: 36.65 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/1.5, allocations: 230.1 kB / 0.5304 GB, free: 36.42 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003745/1.5, allocations: 424.2 kB / 0.5308 GB, free: 35.92 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/1.5, allocations: 39 kB / 0.5308 GB, free: 35.88 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 4.117e-06/1.5, allocations: 0 / 0.5308 GB, free: 35.88 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.008159/1.508, allocations: 1.755 MB / 0.5326 GB, free: 34.07 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/1.508, allocations: 81.67 kB / 0.5326 GB, free: 33.97 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000687/1.509, allocations: 422.1 kB / 0.533 GB, free: 33.55 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/1.509, allocations: 40.5 kB / 0.5331 GB, free: 33.51 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/1.51, allocations: 358.6 kB / 0.5334 GB, free: 33.16 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/1.51, allocations: 193.1 kB / 0.5336 GB, free: 32.96 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/1.51, allocations: 0 / 0.5336 GB, free: 32.96 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.427e-05/1.51, allocations: 338.8 kB / 0.5339 GB, free: 32.62 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005411/1.51, allocations: 245.5 kB / 0.5342 GB, free: 32.39 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006124/1.511, allocations: 406.7 kB / 0.5346 GB, free: 31.92 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/1.513, allocations: 392.1 kB / 0.5349 GB, free: 31.54 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.513, allocations: 0 / 0.5349 GB, free: 31.54 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003109/1.516, allocations: 0.8588 MB / 0.5358 GB, free: 30.67 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/1.516, allocations: 8 kB / 0.5358 GB, free: 30.66 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/1.516, allocations: 7.438 kB / 0.5358 GB, free: 30.66 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007429/1.517, allocations: 164.6 kB / 0.5359 GB, free: 30.5 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/1.518, allocations: 139.8 kB / 0.5361 GB, free: 30.36 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/1.52, allocations: 0.923 MB / 0.537 GB, free: 29.41 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009861/1.521, allocations: 36.03 kB / 0.537 GB, free: 29.38 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/1.522, allocations: 28 kB / 0.537 GB, free: 29.35 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank1.T_start 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000363/1.522, allocations: 166.1 kB / 0.5372 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003051/1.525, allocations: 0.7371 MB / 0.5379 GB, free: 28.44 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/1.525, allocations: 63.25 kB / 0.538 GB, free: 28.38 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002833/1.528, allocations: 0.8074 MB / 0.5388 GB, free: 27.57 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/1.528, allocations: 4 kB / 0.5388 GB, free: 27.56 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.528, allocations: 4 kB / 0.5388 GB, free: 27.56 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/1.528, allocations: 3.984 kB / 0.5388 GB, free: 27.55 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/1.533, allocations: 1.558 MB / 0.5403 GB, free: 25.96 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/1.533, allocations: 0 / 0.5403 GB, free: 25.96 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009417/1.534, allocations: 107.8 kB / 0.5404 GB, free: 25.85 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007662/1.535, allocations: 156.2 kB / 0.5405 GB, free: 25.7 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.218e-05/1.535, allocations: 16.05 kB / 0.5406 GB, free: 25.68 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001632/1.536, allocations: 0.8645 MB / 0.5414 GB, free: 24.79 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.536, allocations: 32 / 0.5414 GB, free: 24.79 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/1.54, allocations: 1.231 MB / 0.5426 GB, free: 23.52 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/1.54, allocations: 144.3 kB / 0.5427 GB, free: 23.36 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/1.54, allocations: 4 kB / 0.5427 GB, free: 23.36 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008002/1.541, allocations: 27.97 kB / 0.5428 GB, free: 23.33 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/1.541, allocations: 55.86 kB / 0.5428 GB, free: 23.28 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.421e-05/1.541, allocations: 31.98 kB / 0.5429 GB, free: 23.25 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0005301/1.542, allocations: 326.9 kB / 0.5432 GB, free: 22.93 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.542, allocations: 0 / 0.5432 GB, free: 22.93 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001645/1.543, allocations: 383.6 kB / 0.5435 GB, free: 22.56 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005018/1.549, allocations: 2.338 MB / 0.5458 GB, free: 20.22 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001786/1.55, allocations: 0.6348 MB / 0.5464 GB, free: 19.59 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/1.55, allocations: 4.125 kB / 0.5464 GB, free: 19.58 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008393/1.551, allocations: 345.9 kB / 0.5468 GB, free: 19.25 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/1.554, allocations: 326.6 kB / 0.5471 GB, free: 18.94 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/1.558, allocations: 1.448 MB / 0.5485 GB, free: 17.46 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/1.559, allocations: 0.9702 MB / 0.5494 GB, free: 16.47 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005712/1.559, allocations: 243.3 kB / 0.5497 GB, free: 16.23 MB / 234.7 MB Notification: Performance of SimCode: time 1.042e-06/1.559, allocations: 0 / 0.5497 GB, free: 16.23 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.72/5.28, allocations: 19.83 MB / 0.569 GB, free: 40.8 MB / 234.7 MB