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.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.793/1.793, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003646, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08783/0.08824, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.166/1.254, allocations: 317 MB / 0.5753 GB, free: 99.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003693/1.255, allocations: 101 kB / 0.5754 GB, free: 99.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.66/2.915, allocations: 322.6 MB / 0.8904 GB, free: 35.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.125e-06/2.915, allocations: 3.938 kB / 0.8904 GB, free: 35.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002304/2.915, allocations: 49.05 kB / 0.8904 GB, free: 35.79 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.009297/2.924, allocations: 2.241 MB / 0.8926 GB, free: 34.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/2.924, allocations: 9.75 kB / 0.8926 GB, free: 34.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001009/2.925, allocations: 198.6 kB / 0.8928 GB, free: 34.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/2.927, allocations: 202 kB / 0.893 GB, free: 34.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004865/2.932, allocations: 1.252 MB / 0.8942 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/2.932, allocations: 98.81 kB / 0.8943 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007024/2.933, allocations: 119.8 kB / 0.8945 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005756/2.938, allocations: 1.935 MB / 0.8963 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.822e-05/2.938, allocations: 8.938 kB / 0.8964 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003086/2.939, allocations: 61.36 kB / 0.8964 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/2.939, allocations: 119.9 kB / 0.8965 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006058/2.945, allocations: 1.948 MB / 0.8984 GB, free: 33.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01969/2.965, allocations: 7.626 MB / 0.9059 GB, free: 30.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003114/2.968, allocations: 1.151 MB / 0.907 GB, free: 30.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007869/2.976, allocations: 3.341 MB / 0.9103 GB, free: 28.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/2.976, allocations: 49.84 kB / 0.9103 GB, free: 28.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.039e-06/2.976, allocations: 0 / 0.9103 GB, free: 28.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.02187/2.998, allocations: 5.367 MB / 0.9156 GB, free: 27.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/2.998, allocations: 169 kB / 0.9157 GB, free: 27.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002464/3.001, allocations: 1.171 MB / 0.9169 GB, free: 27.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004717/3.001, allocations: 59.8 kB / 0.9169 GB, free: 27.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006244/3.002, allocations: 0.6976 MB / 0.9176 GB, free: 27.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007118/3.002, allocations: 472.4 kB / 0.918 GB, free: 26.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/3.003, allocations: 34.16 kB / 0.9181 GB, free: 26.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/3.003, allocations: 385.8 kB / 0.9184 GB, free: 26.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00215/3.005, allocations: 0.7379 MB / 0.9192 GB, free: 26.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002618/3.008, allocations: 1.21 MB / 0.9204 GB, free: 25.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002503/3.01, allocations: 0.8757 MB / 0.9212 GB, free: 25.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/3.01, allocations: 3.938 kB / 0.9212 GB, free: 25.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006545/3.017, allocations: 2.322 MB / 0.9235 GB, free: 25.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001268/3.018, allocations: 5.148 MB / 0.9285 GB, free: 20.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.49e-05/3.018, allocations: 15.31 kB / 0.9285 GB, free: 20.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00935/3.028, allocations: 0.9517 MB / 0.9295 GB, free: 20.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/3.03, allocations: 360.8 kB / 0.9298 GB, free: 20.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003608/3.034, allocations: 2.888 MB / 0.9326 GB, free: 18.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003005/3.037, allocations: 139 kB / 0.9327 GB, free: 18.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005395/3.038, allocations: 82.12 kB / 0.9328 GB, free: 18.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/3.038, allocations: 3.875 kB / 0.9328 GB, free: 18.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006198/3.044, allocations: 2.132 MB / 0.9349 GB, free: 18.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-05/3.044, allocations: 14.66 kB / 0.9349 GB, free: 18.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007243/3.051, allocations: 0.6616 MB / 0.9356 GB, free: 18.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002862/3.054, allocations: 373.7 kB / 0.9359 GB, free: 18.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/3.058, allocations: 2.616 MB / 0.9385 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002242/3.06, allocations: 131.8 kB / 0.9386 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002691/3.06, allocations: 89.53 kB / 0.9387 GB, free: 32.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001493/3.062, allocations: 0.5196 MB / 0.9392 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/3.062, allocations: 165.8 kB / 0.9394 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007592/3.07, allocations: 2.338 MB / 0.9416 GB, free: 31.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/3.07, allocations: 17.09 kB / 0.9417 GB, free: 31.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/3.07, allocations: 3.953 kB / 0.9417 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.43e-05/3.07, allocations: 18.7 kB / 0.9417 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/3.081, allocations: 3.941 MB / 0.9455 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/3.081, allocations: 2.844 kB / 0.9455 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/3.083, allocations: 244 kB / 0.9458 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006642/3.09, allocations: 0.8783 MB / 0.9466 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004322/3.09, allocations: 39.83 kB / 0.9467 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003421/3.094, allocations: 2.832 MB / 0.9494 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/3.094, allocations: 4.938 kB / 0.9494 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008157/3.102, allocations: 3.225 MB / 0.9526 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007786/3.103, allocations: 255.6 kB / 0.9528 GB, free: 27.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006008/3.104, allocations: 38.22 kB / 0.9529 GB, free: 27.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/3.105, allocations: 108.3 kB / 0.953 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004493/3.106, allocations: 150.8 kB / 0.9531 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000198/3.106, allocations: 59 kB / 0.9532 GB, free: 27.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00185/3.108, allocations: 0.9011 MB / 0.954 GB, free: 27.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/3.108, allocations: 0 / 0.954 GB, free: 27.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006227/3.114, allocations: 1.363 MB / 0.9554 GB, free: 26.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01277/3.127, allocations: 5.282 MB / 0.9605 GB, free: 23.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009577/3.137, allocations: 3.038 MB / 0.9635 GB, free: 22.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/3.137, allocations: 0 / 0.9635 GB, free: 22.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003469/3.14, allocations: 1.063 MB / 0.9645 GB, free: 22.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00578/3.146, allocations: 0.6574 MB / 0.9652 GB, free: 22.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01804/3.164, allocations: 14.49 MB / 0.9793 GB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001434/3.166, allocations: 1.426 MB / 0.9807 GB, free: 9.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001801/3.168, allocations: 0.6618 MB / 0.9814 GB, free: 8.629 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/3.168, allocations: 0 / 0.9814 GB, free: 8.629 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.326/7.493, allocations: 65.68 MB / 1.046 GB, free: 45.75 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat