Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.706/1.706, allocations: 171.1 MB / 186.7 MB, free: 1.145 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004305/0.0004304, allocations: 16 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08828, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9223/1.011, allocations: 311.9 MB / 0.5704 GB, free: 1.715 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/1.011, allocations: 97 kB / 0.5705 GB, free: 1.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7079/1.719, allocations: 136.2 MB / 0.7035 GB, free: 19.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.719, allocations: 0 / 0.7035 GB, free: 19.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.38e-05/1.719, allocations: 16 kB / 0.7035 GB, free: 19.28 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003348/1.723, allocations: 1.119 MB / 0.7046 GB, free: 18.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/1.723, allocations: 8.031 kB / 0.7046 GB, free: 18.1 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002282/1.723, allocations: 90.52 kB / 0.7047 GB, free: 18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003799/1.723, allocations: 91.09 kB / 0.7048 GB, free: 17.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/1.725, allocations: 0.5831 MB / 0.7054 GB, free: 17.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.258e-05/1.725, allocations: 40.98 kB / 0.7054 GB, free: 17.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/1.725, allocations: 47.98 kB / 0.7054 GB, free: 17.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/1.727, allocations: 0.7303 MB / 0.7062 GB, free: 16.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/1.727, allocations: 0 / 0.7062 GB, free: 16.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.937e-05/1.727, allocations: 27.98 kB / 0.7062 GB, free: 16.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.214e-05/1.727, allocations: 40.97 kB / 0.7062 GB, free: 16.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/1.729, allocations: 0.6908 MB / 0.7069 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006177/1.735, allocations: 2.857 MB / 0.7097 GB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/1.736, allocations: 476.5 kB / 0.7101 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003141/1.736, allocations: 341.3 kB / 0.7105 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/1.736, allocations: 42.94 kB / 0.7105 GB, free: 11.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.878e-06/1.736, allocations: 0 / 0.7105 GB, free: 11.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.008664/1.745, allocations: 2.281 MB / 0.7127 GB, free: 9.352 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/1.745, allocations: 85.67 kB / 0.7128 GB, free: 9.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/1.746, allocations: 0.55 MB / 0.7133 GB, free: 8.695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/1.746, allocations: 41.64 kB / 0.7134 GB, free: 8.648 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/1.747, allocations: 354.9 kB / 0.7137 GB, free: 8.301 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/1.747, allocations: 205 kB / 0.7139 GB, free: 8.098 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/1.747, allocations: 12 kB / 0.7139 GB, free: 8.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.22e-05/1.747, allocations: 342.8 kB / 0.7143 GB, free: 7.742 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007585/1.748, allocations: 285.8 kB / 0.7145 GB, free: 7.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008072/1.749, allocations: 453 kB / 0.715 GB, free: 6.961 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008007/1.749, allocations: 335.1 kB / 0.7153 GB, free: 6.633 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/1.75, allocations: 0 / 0.7153 GB, free: 6.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002184/1.752, allocations: 0.8762 MB / 0.7161 GB, free: 5.746 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003611/1.752, allocations: 1.749 MB / 0.7178 GB, free: 3.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/1.752, allocations: 4 kB / 0.7179 GB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003255/1.755, allocations: 360.5 kB / 0.7182 GB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/1.757, allocations: 155.7 kB / 0.7183 GB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/1.758, allocations: 0.8137 MB / 0.7191 GB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/1.759, allocations: 55.92 kB / 0.7192 GB, free: 2.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.423e-05/1.759, allocations: 28 kB / 0.7192 GB, free: 2.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/1.759, allocations: 4 kB / 0.7192 GB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002006/1.761, allocations: 0.7851 MB / 0.72 GB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/1.761, allocations: 7.984 kB / 0.72 GB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002371/1.763, allocations: 217.1 kB / 0.7202 GB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/1.765, allocations: 167.7 kB / 0.7204 GB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007764/1.765, allocations: 0.6812 MB / 0.721 GB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007433/1.766, allocations: 47.94 kB / 0.7211 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.284e-05/1.766, allocations: 35.98 kB / 0.7211 GB, free: 472 kB / 362.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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.0005799/1.767, allocations: 324.1 kB / 0.7214 GB, free: 140 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/1.767, allocations: 71.16 kB / 0.7215 GB, free: 68 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2543/2.021, allocations: 0.8186 MB / 0.7223 GB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/2.022, allocations: 15.92 kB / 0.7223 GB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/2.022, allocations: 0 / 0.7223 GB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/2.022, allocations: 2.906 kB / 0.7223 GB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004641/2.026, allocations: 1.668 MB / 0.7239 GB, free: 73.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/2.026, allocations: 1 kB / 0.7239 GB, free: 73.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009685/2.027, allocations: 111.5 kB / 0.724 GB, free: 73.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002588/2.03, allocations: 337.5 kB / 0.7244 GB, free: 73.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001657/2.03, allocations: 18.48 kB / 0.7244 GB, free: 73.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/2.031, allocations: 0.8071 MB / 0.7252 GB, free: 73.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/2.031, allocations: 5.344 kB / 0.7252 GB, free: 73.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003051/2.034, allocations: 1.256 MB / 0.7264 GB, free: 73.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/2.035, allocations: 156 kB / 0.7265 GB, free: 73.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/2.035, allocations: 19.31 kB / 0.7266 GB, free: 73.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008471/2.036, allocations: 35.02 kB / 0.7266 GB, free: 73.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/2.036, allocations: 52.09 kB / 0.7267 GB, free: 73.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.819e-05/2.036, allocations: 31.44 kB / 0.7267 GB, free: 73.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007919/2.037, allocations: 435.3 kB / 0.7271 GB, free: 72.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.037, allocations: 3.031 kB / 0.7271 GB, free: 72.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002446/2.039, allocations: 0.589 MB / 0.7277 GB, free: 72.98 MB / 362.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]) * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005082/2.044, allocations: 2.439 MB / 0.7301 GB, free: 72.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003702/2.048, allocations: 1.122 MB / 0.7312 GB, free: 72.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/2.048, allocations: 1.062 kB / 0.7312 GB, free: 72.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/2.049, allocations: 376.6 kB / 0.7315 GB, free: 72.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/2.052, allocations: 323.5 kB / 0.7318 GB, free: 72.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007128/2.06, allocations: 5.438 MB / 0.7371 GB, free: 68.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006888/2.06, allocations: 0.9814 MB / 0.7381 GB, free: 67.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000733/2.061, allocations: 262.6 kB / 0.7383 GB, free: 67.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/2.061, allocations: 0 / 0.7383 GB, free: 67.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.046/5.107, allocations: 20.8 MB / 0.7587 GB, free: 66.55 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat