Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.109/1.109, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000281/0.0002809, allocations: 16 kB / 158.4 MB, free: 15.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05872/0.05903, allocations: 25.16 MB / 183.6 MB, free: 5.855 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8573/0.9163, allocations: 236.5 MB / 420.1 MB, free: 54.3 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.9167, allocations: 70.95 kB / 420.1 MB, free: 54.28 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6725/1.589, allocations: 122.8 MB / 0.5302 GB, free: 28.02 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.589, allocations: 0 / 0.5302 GB, free: 28.02 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.029e-05/1.589, allocations: 16 kB / 0.5302 GB, free: 28 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003466/1.593, allocations: 1.118 MB / 0.5313 GB, free: 26.84 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.593, allocations: 12.02 kB / 0.5313 GB, free: 26.83 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002381/1.593, allocations: 98.34 kB / 0.5314 GB, free: 26.73 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/1.593, allocations: 83.06 kB / 0.5315 GB, free: 26.64 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/1.595, allocations: 0.5912 MB / 0.532 GB, free: 26.02 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/1.595, allocations: 108.3 kB / 0.5321 GB, free: 25.91 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/1.595, allocations: 55.86 kB / 0.5322 GB, free: 25.86 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/1.598, allocations: 0.8513 MB / 0.533 GB, free: 24.98 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.309e-05/1.598, allocations: 7.984 kB / 0.533 GB, free: 24.98 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/1.598, allocations: 23.83 kB / 0.5331 GB, free: 24.96 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/1.598, allocations: 44.97 kB / 0.5331 GB, free: 24.91 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00217/1.6, allocations: 0.7767 MB / 0.5339 GB, free: 24.14 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007308/1.607, allocations: 3.125 MB / 0.5369 GB, free: 20.87 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001913/1.609, allocations: 0.6458 MB / 0.5375 GB, free: 20.21 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003993/1.613, allocations: 1.896 MB / 0.5394 GB, free: 18.16 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/1.614, allocations: 39 kB / 0.5394 GB, free: 18.11 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.155e-06/1.614, allocations: 0 / 0.5394 GB, free: 18.11 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.01185/1.625, allocations: 2.874 MB / 0.5422 GB, free: 15.17 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/1.626, allocations: 85.66 kB / 0.5423 GB, free: 15.07 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/1.627, allocations: 0.55 MB / 0.5429 GB, free: 14.51 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001997/1.627, allocations: 37.7 kB / 0.5429 GB, free: 14.46 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/1.627, allocations: 343 kB / 0.5432 GB, free: 14.12 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/1.627, allocations: 204.9 kB / 0.5434 GB, free: 13.93 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/1.627, allocations: 20 kB / 0.5434 GB, free: 13.91 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/1.627, allocations: 338.8 kB / 0.5438 GB, free: 13.57 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/1.629, allocations: 345.4 kB / 0.5441 GB, free: 13.23 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/1.63, allocations: 0.4894 MB / 0.5446 GB, free: 12.69 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/1.631, allocations: 396.2 kB / 0.5449 GB, free: 12.3 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/1.631, allocations: 4 kB / 0.5449 GB, free: 12.3 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003445/1.634, allocations: 1.097 MB / 0.546 GB, free: 11.19 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/1.634, allocations: 9.875 kB / 0.546 GB, free: 11.18 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/1.635, allocations: 8.125 kB / 0.546 GB, free: 11.17 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002154/1.637, allocations: 472.4 kB / 0.5465 GB, free: 10.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/1.638, allocations: 147.8 kB / 0.5466 GB, free: 10.56 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002428/1.64, allocations: 1.095 MB / 0.5477 GB, free: 9.441 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/1.642, allocations: 51.97 kB / 0.5477 GB, free: 9.391 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/1.642, allocations: 31.98 kB / 0.5478 GB, free: 9.359 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Level height of 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Level height of 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" fixed = true 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: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007717/1.642, allocations: 286.9 kB / 0.548 GB, free: 9.074 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/1.643, allocations: 71.16 kB / 0.5481 GB, free: 9.004 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003412/1.646, allocations: 1.116 MB / 0.5492 GB, free: 7.879 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/1.646, allocations: 12 kB / 0.5492 GB, free: 7.867 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/1.646, allocations: 0 / 0.5492 GB, free: 7.867 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/1.646, allocations: 3.984 kB / 0.5492 GB, free: 7.863 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005062/1.651, allocations: 1.975 MB / 0.5511 GB, free: 5.844 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/1.651, allocations: 0 / 0.5511 GB, free: 5.844 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/1.652, allocations: 111.9 kB / 0.5513 GB, free: 5.734 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002207/1.655, allocations: 492.4 kB / 0.5517 GB, free: 5.25 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/1.655, allocations: 15.98 kB / 0.5517 GB, free: 5.234 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002382/1.657, allocations: 1.114 MB / 0.5528 GB, free: 4.094 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.657, allocations: 0 / 0.5528 GB, free: 4.094 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004397/1.662, allocations: 1.6 MB / 0.5544 GB, free: 2.469 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004471/1.662, allocations: 144.3 kB / 0.5545 GB, free: 2.309 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002061/1.662, allocations: 19.98 kB / 0.5545 GB, free: 2.289 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/1.663, allocations: 55.81 kB / 0.5546 GB, free: 2.234 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/1.664, allocations: 56.47 kB / 0.5547 GB, free: 2.18 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.745e-05/1.664, allocations: 27.98 kB / 0.5547 GB, free: 2.152 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.000778/1.665, allocations: 439 kB / 0.5551 GB, free: 1.727 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.433e-06/1.665, allocations: 0 / 0.5551 GB, free: 1.727 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001845/1.666, allocations: 435.5 kB / 0.5555 GB, free: 1.301 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {4 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.1995/1.866, allocations: 2.542 MB / 0.558 GB, free: 35.2 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005173/1.871, allocations: 0.9202 MB / 0.5589 GB, free: 35.2 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/1.871, allocations: 0 / 0.5589 GB, free: 35.2 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002264/1.873, allocations: 0.5057 MB / 0.5594 GB, free: 35.19 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003118/1.877, allocations: 384 kB / 0.5598 GB, free: 35.19 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01747/1.894, allocations: 7.951 MB / 0.5675 GB, free: 31.3 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007441/1.895, allocations: 0.982 MB / 0.5685 GB, free: 30.6 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008334/1.896, allocations: 266.8 kB / 0.5687 GB, free: 30.59 MB / 234.7 MB Notification: Performance of SimCode: time 1.643e-06/1.896, allocations: 1.094 kB / 0.5687 GB, free: 30.59 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.243/5.139, allocations: 20.84 MB / 0.5891 GB, free: 29.45 MB / 234.7 MB