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.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_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.6/1.6, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.0003678, allocations: 8 kB / 233.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08242/0.08283, allocations: 38.76 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.136/1.219, allocations: 314.1 MB / 0.5724 GB, free: 99.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/1.219, allocations: 94.67 kB / 0.5725 GB, free: 99.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9252/2.144, allocations: 190.8 MB / 0.7589 GB, free: 68.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/2.144, allocations: 0 / 0.7589 GB, free: 68.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001186/2.145, allocations: 30.56 kB / 0.7589 GB, free: 68.05 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.005358/2.15, allocations: 1.41 MB / 0.7603 GB, free: 67.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/2.15, allocations: 11.44 kB / 0.7603 GB, free: 67.34 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005208/2.151, allocations: 116.1 kB / 0.7604 GB, free: 67.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006148/2.151, allocations: 113.1 kB / 0.7605 GB, free: 67.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/2.154, allocations: 0.7763 MB / 0.7613 GB, free: 66.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.176e-05/2.154, allocations: 51.77 kB / 0.7613 GB, free: 66.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/2.154, allocations: 63.36 kB / 0.7614 GB, free: 66.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/2.157, allocations: 1.048 MB / 0.7624 GB, free: 66.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/2.157, allocations: 6.25 kB / 0.7624 GB, free: 66.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/2.157, allocations: 26.81 kB / 0.7624 GB, free: 66.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001429/2.157, allocations: 62.17 kB / 0.7625 GB, free: 66.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002535/2.16, allocations: 1.011 MB / 0.7635 GB, free: 66.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01074/2.17, allocations: 4.403 MB / 0.7678 GB, free: 64.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/2.172, allocations: 0.5405 MB / 0.7683 GB, free: 64.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003796/2.176, allocations: 1.909 MB / 0.7702 GB, free: 63.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/2.176, allocations: 44.98 kB / 0.7702 GB, free: 63.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 4.098e-06/2.176, allocations: 0 / 0.7702 GB, free: 63.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.007051/2.183, allocations: 1.884 MB / 0.7721 GB, free: 62.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/2.183, allocations: 165.1 kB / 0.7722 GB, free: 62.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/2.184, allocations: 0.7367 MB / 0.7729 GB, free: 62.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/2.185, allocations: 39.48 kB / 0.773 GB, free: 62.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/2.185, allocations: 499.9 kB / 0.7734 GB, free: 61.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/2.185, allocations: 166 kB / 0.7736 GB, free: 61.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.357e-05/2.185, allocations: 20.91 kB / 0.7736 GB, free: 61.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/2.186, allocations: 399.5 kB / 0.774 GB, free: 61.58 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008308/2.186, allocations: 296.4 kB / 0.7743 GB, free: 61.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/2.188, allocations: 0.6562 MB / 0.7749 GB, free: 61.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/2.189, allocations: 407.7 kB / 0.7753 GB, free: 61.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/2.189, allocations: 3.844 kB / 0.7753 GB, free: 61.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003162/2.192, allocations: 1.101 MB / 0.7764 GB, free: 60.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009539/2.193, allocations: 4.441 MB / 0.7807 GB, free: 56.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/2.193, allocations: 11.16 kB / 0.7807 GB, free: 56.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003336/2.196, allocations: 317.1 kB / 0.781 GB, free: 56.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/2.198, allocations: 192.1 kB / 0.7812 GB, free: 56.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/2.199, allocations: 1.324 MB / 0.7825 GB, free: 54.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/2.201, allocations: 64.64 kB / 0.7826 GB, free: 54.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/2.201, allocations: 50.77 kB / 0.7826 GB, free: 54.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/2.201, allocations: 3.844 kB / 0.7826 GB, free: 54.84 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002546/2.204, allocations: 0.9801 MB / 0.7836 GB, free: 54.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-05/2.204, allocations: 18.34 kB / 0.7836 GB, free: 54.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002938/2.207, allocations: 295.2 kB / 0.7839 GB, free: 54.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/2.208, allocations: 189.8 kB / 0.7841 GB, free: 54.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/2.21, allocations: 1.287 MB / 0.7853 GB, free: 53.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/2.211, allocations: 70.86 kB / 0.7854 GB, free: 53.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/2.211, allocations: 45.36 kB / 0.7854 GB, free: 53.22 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.0007676/2.212, allocations: 363.4 kB / 0.7858 GB, free: 52.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002463/2.212, allocations: 88.75 kB / 0.7859 GB, free: 52.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/2.215, allocations: 0.7778 MB / 0.7866 GB, free: 52.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/2.215, allocations: 6.688 kB / 0.7866 GB, free: 52.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/2.215, allocations: 0 / 0.7866 GB, free: 52.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/2.215, allocations: 3.188 kB / 0.7866 GB, free: 52.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004061/2.219, allocations: 1.549 MB / 0.7882 GB, free: 51.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/2.219, allocations: 0 / 0.7882 GB, free: 51.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006837/2.22, allocations: 82.14 kB / 0.7882 GB, free: 51.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/2.222, allocations: 283.6 kB / 0.7885 GB, free: 51.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/2.222, allocations: 15.72 kB / 0.7885 GB, free: 51.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/2.224, allocations: 1.315 MB / 0.7898 GB, free: 50.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/2.224, allocations: 0 / 0.7898 GB, free: 50.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/2.226, allocations: 1.088 MB / 0.7909 GB, free: 50.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004334/2.227, allocations: 183.9 kB / 0.791 GB, free: 49.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/2.227, allocations: 11.91 kB / 0.791 GB, free: 49.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008525/2.228, allocations: 40.08 kB / 0.7911 GB, free: 49.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/2.228, allocations: 49.23 kB / 0.7911 GB, free: 49.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.912e-05/2.228, allocations: 22.8 kB / 0.7912 GB, free: 49.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001051/2.229, allocations: 0.5632 MB / 0.7917 GB, free: 49.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.229, allocations: 0 / 0.7917 GB, free: 49.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003242/2.232, allocations: 0.805 MB / 0.7925 GB, free: 49.39 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.005884/2.238, allocations: 2.472 MB / 0.7949 GB, free: 47.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005113/2.243, allocations: 1.262 MB / 0.7961 GB, free: 47.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/2.243, allocations: 3.906 kB / 0.7961 GB, free: 47.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/2.245, allocations: 345.6 kB / 0.7965 GB, free: 47.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00317/2.248, allocations: 318.4 kB / 0.7968 GB, free: 47.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/2.26, allocations: 10.64 MB / 0.8072 GB, free: 37.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008557/2.261, allocations: 1.059 MB / 0.8082 GB, free: 37.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002709/2.263, allocations: 351.2 kB / 0.8085 GB, free: 37.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009192/2.264, allocations: 322 kB / 0.8088 GB, free: 36.9 MB / 362.7 MB Notification: Performance of SimCode: time 1.473e-06/2.264, allocations: 0 / 0.8088 GB, free: 36.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/2.366, allocations: 30.66 MB / 0.8388 GB, free: 11.27 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002957/2.366, allocations: 264.5 kB / 0.839 GB, free: 10.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.004/6.371, allocations: 0 / 0.839 GB, free: 10.91 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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat