Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.728/1.728, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003872, allocations: 8 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09231/0.09276, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9221/1.015, allocations: 311.9 MB / 0.5704 GB, free: 1.066 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/1.015, allocations: 91.7 kB / 0.5705 GB, free: 1.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.699/1.714, allocations: 136.2 MB / 0.7035 GB, free: 18.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.714, allocations: 0 / 0.7035 GB, free: 18.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.071e-05/1.715, allocations: 23.98 kB / 0.7035 GB, free: 18.46 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.003405/1.718, allocations: 1.122 MB / 0.7046 GB, free: 17.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/1.718, allocations: 8.031 kB / 0.7046 GB, free: 17.28 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00026/1.718, allocations: 98.44 kB / 0.7047 GB, free: 17.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003892/1.719, allocations: 83.11 kB / 0.7048 GB, free: 17.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/1.72, allocations: 0.5754 MB / 0.7054 GB, free: 16.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/1.72, allocations: 40.97 kB / 0.7054 GB, free: 16.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/1.72, allocations: 48 kB / 0.7055 GB, free: 16.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/1.722, allocations: 0.7342 MB / 0.7062 GB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/1.722, allocations: 0 / 0.7062 GB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-05/1.722, allocations: 16 kB / 0.7062 GB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.394e-05/1.722, allocations: 44.97 kB / 0.7062 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/1.724, allocations: 0.687 MB / 0.7069 GB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006091/1.73, allocations: 2.864 MB / 0.7097 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/1.731, allocations: 476.5 kB / 0.7102 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003081/1.732, allocations: 345.2 kB / 0.7105 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/1.732, allocations: 43 kB / 0.7105 GB, free: 10.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.506e-06/1.732, allocations: 0 / 0.7105 GB, free: 10.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.008795/1.741, allocations: 2.281 MB / 0.7128 GB, free: 8.531 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/1.741, allocations: 89.61 kB / 0.7128 GB, free: 8.426 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/1.742, allocations: 0.5422 MB / 0.7134 GB, free: 7.879 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001628/1.742, allocations: 45.69 kB / 0.7134 GB, free: 7.828 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002781/1.742, allocations: 328.4 kB / 0.7137 GB, free: 7.504 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/1.743, allocations: 213 kB / 0.7139 GB, free: 7.293 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.26e-05/1.743, allocations: 12 kB / 0.7139 GB, free: 7.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/1.743, allocations: 378.8 kB / 0.7143 GB, free: 6.902 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007591/1.743, allocations: 285.8 kB / 0.7146 GB, free: 6.625 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008144/1.744, allocations: 449.1 kB / 0.715 GB, free: 6.125 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008139/1.745, allocations: 335.1 kB / 0.7153 GB, free: 5.797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/1.745, allocations: 0 / 0.7153 GB, free: 5.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002348/1.748, allocations: 0.923 MB / 0.7162 GB, free: 4.863 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003579/1.748, allocations: 1.748 MB / 0.7179 GB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/1.748, allocations: 7.984 kB / 0.7179 GB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/1.751, allocations: 356.5 kB / 0.7183 GB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/1.753, allocations: 151.7 kB / 0.7184 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/1.754, allocations: 0.8176 MB / 0.7192 GB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/1.755, allocations: 47.92 kB / 0.7193 GB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/1.755, allocations: 35.98 kB / 0.7193 GB, free: 1.543 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/1.755, allocations: 4 kB / 0.7193 GB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002011/1.757, allocations: 0.7733 MB / 0.7201 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.757, allocations: 8 kB / 0.7201 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/1.76, allocations: 233.1 kB / 0.7203 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/1.761, allocations: 151.8 kB / 0.7204 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2607/2.022, allocations: 0.6961 MB / 0.7211 GB, free: 73.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/2.023, allocations: 44 kB / 0.7212 GB, free: 73.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/2.023, allocations: 30.45 kB / 0.7212 GB, free: 73.09 MB / 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.0006307/2.024, allocations: 326 kB / 0.7215 GB, free: 72.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/2.024, allocations: 74.19 kB / 0.7216 GB, free: 72.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00248/2.026, allocations: 0.836 MB / 0.7224 GB, free: 72.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/2.026, allocations: 7.406 kB / 0.7224 GB, free: 72.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/2.026, allocations: 1.25 kB / 0.7224 GB, free: 72.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/2.026, allocations: 3.234 kB / 0.7224 GB, free: 72.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/2.031, allocations: 1.664 MB / 0.724 GB, free: 72.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/2.031, allocations: 1 kB / 0.724 GB, free: 72.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009683/2.032, allocations: 112.2 kB / 0.7241 GB, free: 72.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002461/2.034, allocations: 341 kB / 0.7245 GB, free: 72.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/2.034, allocations: 14.94 kB / 0.7245 GB, free: 72.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/2.035, allocations: 0.8018 MB / 0.7253 GB, free: 72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/2.036, allocations: 5.219 kB / 0.7253 GB, free: 72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002955/2.038, allocations: 1.26 MB / 0.7265 GB, free: 71.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003009/2.039, allocations: 160 kB / 0.7266 GB, free: 71.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/2.039, allocations: 13.06 kB / 0.7267 GB, free: 71.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008223/2.04, allocations: 41.64 kB / 0.7267 GB, free: 71.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/2.04, allocations: 56.25 kB / 0.7268 GB, free: 71.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-05/2.04, allocations: 25.81 kB / 0.7268 GB, free: 71.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007443/2.041, allocations: 442.1 kB / 0.7272 GB, free: 71.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.041, allocations: 0 / 0.7272 GB, free: 71.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00228/2.043, allocations: 0.5867 MB / 0.7278 GB, free: 71.58 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.004808/2.048, allocations: 2.435 MB / 0.7302 GB, free: 70.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003474/2.052, allocations: 1.113 MB / 0.7312 GB, free: 70.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/2.052, allocations: 1.062 kB / 0.7312 GB, free: 70.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/2.053, allocations: 376.2 kB / 0.7316 GB, free: 70.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/2.055, allocations: 334.1 kB / 0.7319 GB, free: 70.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006294/2.062, allocations: 5.4 MB / 0.7372 GB, free: 66.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006987/2.062, allocations: 0.9866 MB / 0.7382 GB, free: 66.03 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001785/2.064, allocations: 273.5 kB / 0.7384 GB, free: 66.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006134/2.065, allocations: 252.5 kB / 0.7387 GB, free: 66.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.954e-06/2.065, allocations: 0 / 0.7387 GB, free: 66.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07514/2.14, allocations: 26.68 MB / 0.7647 GB, free: 64.78 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/2.14, allocations: 214.8 kB / 0.7649 GB, free: 64.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.591/5.731, allocations: 3.938 kB / 0.7649 GB, free: 64.54 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat