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.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.619/1.619, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003511, allocations: 8 kB / 233.3 MB, free: 0.8281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08162/0.08201, allocations: 38.77 MB / 272.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.143/1.225, allocations: 314.1 MB / 0.5724 GB, free: 98.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/1.225, allocations: 98.92 kB / 0.5725 GB, free: 98.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9154/2.14, allocations: 190.8 MB / 0.7588 GB, free: 69.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/2.141, allocations: 2.312 kB / 0.7588 GB, free: 69.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.769e-05/2.141, allocations: 26.59 kB / 0.7589 GB, free: 69.64 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004995/2.146, allocations: 1.414 MB / 0.7603 GB, free: 68.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/2.146, allocations: 7.688 kB / 0.7603 GB, free: 68.58 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004711/2.146, allocations: 114.8 kB / 0.7604 GB, free: 68.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006042/2.147, allocations: 112.7 kB / 0.7605 GB, free: 68.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002611/2.149, allocations: 0.7791 MB / 0.7612 GB, free: 67.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.263e-05/2.15, allocations: 49.66 kB / 0.7613 GB, free: 67.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/2.15, allocations: 60.97 kB / 0.7613 GB, free: 67.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/2.152, allocations: 1.052 MB / 0.7624 GB, free: 67.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/2.152, allocations: 11.88 kB / 0.7624 GB, free: 67.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/2.153, allocations: 27.45 kB / 0.7624 GB, free: 67.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/2.153, allocations: 59.45 kB / 0.7625 GB, free: 67.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002592/2.155, allocations: 1.017 MB / 0.7635 GB, free: 66.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/2.166, allocations: 4.406 MB / 0.7678 GB, free: 62.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/2.167, allocations: 0.5333 MB / 0.7683 GB, free: 62.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003668/2.171, allocations: 1.912 MB / 0.7701 GB, free: 60.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/2.171, allocations: 46.66 kB / 0.7702 GB, free: 60.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 4.729e-06/2.171, allocations: 2.672 kB / 0.7702 GB, free: 60.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.007493/2.179, allocations: 1.879 MB / 0.772 GB, free: 59.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/2.179, allocations: 162 kB / 0.7722 GB, free: 59.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/2.18, allocations: 0.7427 MB / 0.7729 GB, free: 58.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/2.181, allocations: 37.67 kB / 0.7729 GB, free: 58.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004174/2.181, allocations: 0.5006 MB / 0.7734 GB, free: 58.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/2.181, allocations: 165.7 kB / 0.7736 GB, free: 58.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.402e-05/2.181, allocations: 19.75 kB / 0.7736 GB, free: 58.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/2.182, allocations: 346.8 kB / 0.7739 GB, free: 57.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008576/2.182, allocations: 305.8 kB / 0.7742 GB, free: 57.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/2.183, allocations: 0.6482 MB / 0.7749 GB, free: 56.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/2.185, allocations: 406.6 kB / 0.7753 GB, free: 56.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/2.185, allocations: 4 kB / 0.7753 GB, free: 56.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002863/2.187, allocations: 1.051 MB / 0.7763 GB, free: 55.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009827/2.188, allocations: 4.442 MB / 0.7806 GB, free: 50.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/2.189, allocations: 15.95 kB / 0.7806 GB, free: 50.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003455/2.192, allocations: 317.3 kB / 0.7809 GB, free: 50.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/2.193, allocations: 195.7 kB / 0.7811 GB, free: 50.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/2.195, allocations: 1.323 MB / 0.7824 GB, free: 48.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/2.197, allocations: 68.03 kB / 0.7825 GB, free: 48.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/2.197, allocations: 47.94 kB / 0.7825 GB, free: 48.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/2.197, allocations: 6.344 kB / 0.7825 GB, free: 48.55 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002584/2.199, allocations: 0.9791 MB / 0.7835 GB, free: 47.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/2.2, allocations: 12 kB / 0.7835 GB, free: 47.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003526/2.203, allocations: 282 kB / 0.7838 GB, free: 47.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/2.205, allocations: 187.7 kB / 0.784 GB, free: 47.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/2.207, allocations: 1.288 MB / 0.7852 GB, free: 45.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/2.21, allocations: 64.02 kB / 0.7853 GB, free: 45.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/2.21, allocations: 44 kB / 0.7853 GB, free: 45.64 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001062/2.211, allocations: 368.7 kB / 0.7857 GB, free: 45.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/2.211, allocations: 82.97 kB / 0.7857 GB, free: 45.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/2.214, allocations: 0.7871 MB / 0.7865 GB, free: 44.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/2.214, allocations: 8 kB / 0.7865 GB, free: 44.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/2.214, allocations: 0 / 0.7865 GB, free: 44.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/2.214, allocations: 0 / 0.7865 GB, free: 44.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003704/2.217, allocations: 1.551 MB / 0.788 GB, free: 42.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/2.218, allocations: 0 / 0.788 GB, free: 42.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000698/2.218, allocations: 75.89 kB / 0.7881 GB, free: 42.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002511/2.221, allocations: 285.5 kB / 0.7884 GB, free: 42.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/2.221, allocations: 16 kB / 0.7884 GB, free: 42.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/2.222, allocations: 1.311 MB / 0.7897 GB, free: 41.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/2.222, allocations: 0 / 0.7897 GB, free: 41.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/2.225, allocations: 1.091 MB / 0.7907 GB, free: 39.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004272/2.226, allocations: 176 kB / 0.7909 GB, free: 39.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/2.226, allocations: 11.98 kB / 0.7909 GB, free: 39.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008944/2.227, allocations: 47.97 kB / 0.791 GB, free: 39.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/2.227, allocations: 44.38 kB / 0.791 GB, free: 39.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.59e-05/2.227, allocations: 19.98 kB / 0.791 GB, free: 39.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001023/2.228, allocations: 0.5654 MB / 0.7916 GB, free: 39.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/2.228, allocations: 4 kB / 0.7916 GB, free: 39.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003098/2.231, allocations: 0.8039 MB / 0.7924 GB, free: 38.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00511/2.236, allocations: 2.476 MB / 0.7948 GB, free: 35.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003847/2.24, allocations: 1.241 MB / 0.796 GB, free: 34.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/2.24, allocations: 3.938 kB / 0.796 GB, free: 34.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/2.241, allocations: 362.4 kB / 0.7963 GB, free: 34.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/2.244, allocations: 301.4 kB / 0.7966 GB, free: 33.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007917/2.252, allocations: 10.7 MB / 0.8071 GB, free: 22.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006039/2.253, allocations: 1.056 MB / 0.8081 GB, free: 21.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007584/2.253, allocations: 331.3 kB / 0.8084 GB, free: 21.52 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/2.253, allocations: 4 kB / 0.8084 GB, free: 21.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.843/6.097, allocations: 28.97 MB / 0.8367 GB, free: 65.74 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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat