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.TanksWithEmptyingPipe1.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.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.075/1.075, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002753, allocations: 11.98 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06052/0.06082, allocations: 25.16 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8008/0.8617, allocations: 238.6 MB / 422.2 MB, free: 52.49 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.862, allocations: 72.95 kB / 422.2 MB, free: 52.46 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.392/2.254, allocations: 260.4 MB / 0.6666 GB, free: 21.61 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.053e-06/2.254, allocations: 2.406 kB / 0.6666 GB, free: 21.61 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001982/2.255, allocations: 36.11 kB / 0.6667 GB, free: 21.6 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00738/2.262, allocations: 1.855 MB / 0.6685 GB, free: 20.76 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/2.262, allocations: 8.875 kB / 0.6685 GB, free: 20.76 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007352/2.263, allocations: 158.9 kB / 0.6687 GB, free: 20.72 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006174/2.263, allocations: 156.3 kB / 0.6688 GB, free: 20.64 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003933/2.267, allocations: 1.042 MB / 0.6698 GB, free: 20.31 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/2.268, allocations: 77.28 kB / 0.6699 GB, free: 20.3 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004352/2.268, allocations: 97.59 kB / 0.67 GB, free: 20.3 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005071/2.273, allocations: 1.523 MB / 0.6715 GB, free: 20.06 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.415e-05/2.273, allocations: 2.625 kB / 0.6715 GB, free: 20.06 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002673/2.274, allocations: 45.78 kB / 0.6715 GB, free: 20.06 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002039/2.274, allocations: 101.5 kB / 0.6716 GB, free: 20.05 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004654/2.278, allocations: 1.465 MB / 0.673 GB, free: 20.05 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/2.293, allocations: 6.388 MB / 0.6793 GB, free: 16.71 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/2.295, allocations: 0.8968 MB / 0.6802 GB, free: 16.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00544/2.301, allocations: 2.704 MB / 0.6828 GB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.654e-05/2.301, allocations: 47.75 kB / 0.6828 GB, free: 15.08 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 3.526e-06/2.301, allocations: 0 / 0.6828 GB, free: 15.08 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.01877/2.32, allocations: 3.546 MB / 0.6863 GB, free: 14.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/2.32, allocations: 191.4 kB / 0.6865 GB, free: 14.01 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003898/2.324, allocations: 0.9832 MB / 0.6874 GB, free: 13.85 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003284/2.324, allocations: 45.64 kB / 0.6875 GB, free: 13.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005429/2.325, allocations: 0.6474 MB / 0.6881 GB, free: 13.46 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004176/2.325, allocations: 308.9 kB / 0.6884 GB, free: 13.27 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/2.325, allocations: 28.75 kB / 0.6884 GB, free: 13.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/2.325, allocations: 365 kB / 0.6888 GB, free: 12.96 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002347/2.328, allocations: 0.5036 MB / 0.6893 GB, free: 12.96 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003315/2.331, allocations: 0.9796 MB / 0.6902 GB, free: 12.4 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003947/2.335, allocations: 0.6387 MB / 0.6909 GB, free: 12.38 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/2.335, allocations: 6.938 kB / 0.6909 GB, free: 12.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.009486/2.345, allocations: 1.691 MB / 0.6925 GB, free: 12.28 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.963e-05/2.345, allocations: 11.09 kB / 0.6925 GB, free: 12.28 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.216e-05/2.345, allocations: 15.94 kB / 0.6926 GB, free: 12.28 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009439/2.354, allocations: 0.6446 MB / 0.6932 GB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/2.356, allocations: 282.1 kB / 0.6934 GB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/2.359, allocations: 2.113 MB / 0.6955 GB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/2.361, allocations: 117.4 kB / 0.6956 GB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/2.361, allocations: 69.33 kB / 0.6957 GB, free: 10.68 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true 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 = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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 = 293.15 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: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001106/2.362, allocations: 422.3 kB / 0.6961 GB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/2.363, allocations: 131.7 kB / 0.6962 GB, free: 10.48 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/2.367, allocations: 1.503 MB / 0.6977 GB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/2.367, allocations: 9.938 kB / 0.6977 GB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/2.367, allocations: 0 / 0.6977 GB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/2.367, allocations: 5.641 kB / 0.6977 GB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006666/2.374, allocations: 2.688 MB / 0.7003 GB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/2.374, allocations: 9.5 kB / 0.7003 GB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/2.375, allocations: 151.5 kB / 0.7005 GB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004519/2.38, allocations: 0.6003 MB / 0.7011 GB, free: 9.934 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001875/2.38, allocations: 25 kB / 0.7011 GB, free: 9.934 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/2.382, allocations: 2.086 MB / 0.7031 GB, free: 8.371 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/2.382, allocations: 3.094 kB / 0.7031 GB, free: 8.371 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004707/2.387, allocations: 2.091 MB / 0.7052 GB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005616/2.387, allocations: 225.4 kB / 0.7054 GB, free: 7.844 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000312/2.388, allocations: 25.45 kB / 0.7054 GB, free: 7.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/2.389, allocations: 81.06 kB / 0.7055 GB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/2.389, allocations: 89.42 kB / 0.7056 GB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/2.39, allocations: 38.84 kB / 0.7056 GB, free: 7.832 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001399/2.391, allocations: 0.7528 MB / 0.7063 GB, free: 7.723 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.232e-06/2.391, allocations: 4.156 kB / 0.7064 GB, free: 7.723 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003348/2.394, allocations: 0.7612 MB / 0.7071 GB, free: 7.59 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008122/2.402, allocations: 3.741 MB / 0.7107 GB, free: 22.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004027/2.407, allocations: 1.306 MB / 0.712 GB, free: 22.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/2.407, allocations: 3.906 kB / 0.712 GB, free: 22.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00224/2.409, allocations: 0.6849 MB / 0.7127 GB, free: 22.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00457/2.413, allocations: 0.5555 MB / 0.7132 GB, free: 22.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/2.439, allocations: 18.58 MB / 0.7314 GB, free: 9.469 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/2.44, allocations: 1.262 MB / 0.7326 GB, free: 8.742 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/2.441, allocations: 0.5203 MB / 0.7331 GB, free: 8.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.293e-06/2.441, allocations: 0 / 0.7331 GB, free: 8.73 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.082/6.523, allocations: 47.5 MB / 0.7795 GB, free: 34.9 MB / 266.7 MB