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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004978/0.0004979, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1095, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/1.263, allocations: 314.4 MB / 0.5728 GB, free: 99.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003651/1.264, allocations: 92.73 kB / 0.5729 GB, free: 99.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262/2.526, allocations: 280 MB / 0.8463 GB, free: 6.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.226e-06/2.526, allocations: 0 / 0.8463 GB, free: 6.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000212/2.526, allocations: 39.98 kB / 0.8463 GB, free: 6.652 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.01097/2.537, allocations: 1.955 MB / 0.8482 GB, free: 4.641 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.566e-05/2.537, allocations: 12.03 kB / 0.8483 GB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001119/2.538, allocations: 164.3 kB / 0.8484 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/2.54, allocations: 170.1 kB / 0.8486 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005971/2.546, allocations: 1.097 MB / 0.8496 GB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/2.546, allocations: 77.97 kB / 0.8497 GB, free: 3.078 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005457/2.547, allocations: 95.98 kB / 0.8498 GB, free: 2.984 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005757/2.552, allocations: 1.619 MB / 0.8514 GB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.303e-05/2.553, allocations: 7.984 kB / 0.8514 GB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000335/2.553, allocations: 43.97 kB / 0.8514 GB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002697/2.553, allocations: 97.94 kB / 0.8515 GB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2821/2.835, allocations: 1.612 MB / 0.8531 GB, free: 38.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/2.853, allocations: 6.514 MB / 0.8595 GB, free: 35.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002471/2.856, allocations: 0.9024 MB / 0.8604 GB, free: 35.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006302/2.862, allocations: 2.728 MB / 0.863 GB, free: 34.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/2.862, allocations: 46.41 kB / 0.8631 GB, free: 34.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.258e-06/2.862, allocations: 0 / 0.8631 GB, free: 34.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.01507/2.877, allocations: 3.642 MB / 0.8666 GB, free: 33.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/2.877, allocations: 194 kB / 0.8668 GB, free: 33.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/2.88, allocations: 1.056 MB / 0.8678 GB, free: 33.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000397/2.881, allocations: 50.81 kB / 0.8679 GB, free: 33.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008147/2.882, allocations: 0.6661 MB / 0.8685 GB, free: 32.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005915/2.882, allocations: 327.8 kB / 0.8688 GB, free: 32.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/2.883, allocations: 28.75 kB / 0.8689 GB, free: 32.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/2.883, allocations: 361 kB / 0.8692 GB, free: 32.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001742/2.884, allocations: 0.5466 MB / 0.8697 GB, free: 32.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002004/2.886, allocations: 1.02 MB / 0.8707 GB, free: 31.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/2.889, allocations: 0.6738 MB / 0.8714 GB, free: 31.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/2.889, allocations: 4.125 kB / 0.8714 GB, free: 31.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005697/2.894, allocations: 1.863 MB / 0.8732 GB, free: 31.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001305/2.896, allocations: 5.581 MB / 0.8787 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.987e-05/2.896, allocations: 15.03 kB / 0.8787 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006694/2.903, allocations: 0.6593 MB / 0.8793 GB, free: 25.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/2.905, allocations: 302.5 kB / 0.8796 GB, free: 25.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/2.908, allocations: 2.136 MB / 0.8817 GB, free: 24.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/2.91, allocations: 110.8 kB / 0.8818 GB, free: 24.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002581/2.911, allocations: 68.5 kB / 0.8819 GB, free: 24.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/2.911, allocations: 8.562 kB / 0.8819 GB, free: 24.37 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004671/2.915, allocations: 1.662 MB / 0.8835 GB, free: 24.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.357e-05/2.915, allocations: 13.88 kB / 0.8835 GB, free: 24.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005269/2.921, allocations: 0.5002 MB / 0.884 GB, free: 24.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/2.923, allocations: 306.5 kB / 0.8843 GB, free: 24.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002807/2.926, allocations: 1.987 MB / 0.8862 GB, free: 38.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/2.928, allocations: 102.8 kB / 0.8863 GB, free: 38.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003089/2.929, allocations: 73.28 kB / 0.8864 GB, free: 38.73 MB / 378.7 MB 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 (171): * Single equations (assignments): 168 * 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.001286/2.93, allocations: 480.3 kB / 0.8869 GB, free: 38.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/2.931, allocations: 133.6 kB / 0.887 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/2.935, allocations: 1.52 MB / 0.8885 GB, free: 38.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/2.935, allocations: 9.562 kB / 0.8885 GB, free: 38.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/2.935, allocations: 2.75 kB / 0.8885 GB, free: 38.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/2.935, allocations: 7.734 kB / 0.8885 GB, free: 38.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007657/2.943, allocations: 2.75 MB / 0.8912 GB, free: 37.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/2.943, allocations: 2.781 kB / 0.8912 GB, free: 37.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/2.945, allocations: 157.3 kB / 0.8913 GB, free: 37.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00467/2.949, allocations: 0.6043 MB / 0.8919 GB, free: 37.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002883/2.95, allocations: 33.95 kB / 0.892 GB, free: 37.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002639/2.952, allocations: 2.114 MB / 0.894 GB, free: 36.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/2.952, allocations: 0 / 0.894 GB, free: 36.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005194/2.958, allocations: 2.123 MB / 0.8961 GB, free: 36.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007284/2.958, allocations: 230.8 kB / 0.8963 GB, free: 35.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003912/2.959, allocations: 24.47 kB / 0.8963 GB, free: 35.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/2.96, allocations: 78.55 kB / 0.8964 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/2.96, allocations: 97.91 kB / 0.8965 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/2.961, allocations: 37.47 kB / 0.8965 GB, free: 35.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00161/2.962, allocations: 0.8062 MB / 0.8973 GB, free: 35.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.962, allocations: 0 / 0.8973 GB, free: 35.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005213/2.967, allocations: 1.182 MB / 0.8985 GB, free: 35.73 MB / 378.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 (84): * Single equations (assignments): 81 * 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.009022/2.977, allocations: 3.944 MB / 0.9023 GB, free: 34.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007021/2.984, allocations: 2.224 MB / 0.9045 GB, free: 34.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/2.984, allocations: 0 / 0.9045 GB, free: 34.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002396/2.986, allocations: 0.6962 MB / 0.9052 GB, free: 34.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/2.99, allocations: 0.4982 MB / 0.9057 GB, free: 34.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/3.005, allocations: 14.15 MB / 0.9195 GB, free: 22.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/3.006, allocations: 1.281 MB / 0.9208 GB, free: 22.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003341/3.01, allocations: 0.5506 MB / 0.9213 GB, free: 22.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/3.011, allocations: 0.5209 MB / 0.9218 GB, free: 22.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/3.011, allocations: 3.406 kB / 0.9218 GB, free: 22.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1281/3.139, allocations: 48.54 MB / 0.9692 GB, free: 17.42 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/3.139, allocations: 273.5 kB / 0.9695 GB, free: 17.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.61/7.75, allocations: 3.172 kB / 0.9695 GB, free: 17.06 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat