Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.778/1.778, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003767, allocations: 8 kB / 233.4 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.08952, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9133/1.003, allocations: 311.4 MB / 0.5698 GB, free: 2.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/1.003, allocations: 77.91 kB / 0.5699 GB, free: 2.383 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.417/2.42, allocations: 267.7 MB / 0.8313 GB, free: 31.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.116e-06/2.421, allocations: 0 / 0.8313 GB, free: 31.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001703/2.421, allocations: 36 kB / 0.8313 GB, free: 31.47 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008988/2.43, allocations: 2.001 MB / 0.8333 GB, free: 29.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.794e-05/2.43, allocations: 12.02 kB / 0.8333 GB, free: 29.4 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001157/2.431, allocations: 168.5 kB / 0.8335 GB, free: 29.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001615/2.433, allocations: 181.5 kB / 0.8336 GB, free: 29.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006173/2.439, allocations: 1.113 MB / 0.8347 GB, free: 27.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003532/2.439, allocations: 175.1 kB / 0.8349 GB, free: 27.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008686/2.44, allocations: 103.9 kB / 0.835 GB, free: 27.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007153/2.447, allocations: 1.767 MB / 0.8367 GB, free: 25.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.438e-05/2.447, allocations: 0 / 0.8367 GB, free: 25.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000395/2.448, allocations: 47.97 kB / 0.8368 GB, free: 25.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003545/2.448, allocations: 117.9 kB / 0.8369 GB, free: 25.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008265/2.457, allocations: 1.768 MB / 0.8386 GB, free: 23.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02868/2.485, allocations: 6.401 MB / 0.8449 GB, free: 17.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004682/2.49, allocations: 1.184 MB / 0.846 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/2.503, allocations: 4.173 MB / 0.8501 GB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.59e-05/2.504, allocations: 43.56 kB / 0.8501 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002539/2.506, allocations: 218.6 kB / 0.8503 GB, free: 11.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.841e-06/2.506, allocations: 0 / 0.8503 GB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.03309/2.539, allocations: 5.35 MB / 0.8556 GB, free: 5.711 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/2.539, allocations: 153.4 kB / 0.8557 GB, free: 5.531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/2.542, allocations: 1.103 MB / 0.8568 GB, free: 4.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003396/2.542, allocations: 49.69 kB / 0.8568 GB, free: 4.367 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004882/2.542, allocations: 0.6015 MB / 0.8574 GB, free: 3.758 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004431/2.543, allocations: 382.4 kB / 0.8578 GB, free: 3.379 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/2.543, allocations: 28 kB / 0.8578 GB, free: 3.352 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/2.543, allocations: 365.9 kB / 0.8582 GB, free: 2.988 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/2.545, allocations: 0.6402 MB / 0.8588 GB, free: 2.348 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/2.547, allocations: 0.9665 MB / 0.8597 GB, free: 1.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001856/2.549, allocations: 0.7678 MB / 0.8605 GB, free: 492 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/2.549, allocations: 4 kB / 0.8605 GB, free: 488 kB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.2741/2.823, allocations: 2.106 MB / 0.8625 GB, free: 46.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007947/2.824, allocations: 3.516 MB / 0.866 GB, free: 42.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/2.824, allocations: 8.969 kB / 0.866 GB, free: 42.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01352/2.837, allocations: 1.231 MB / 0.8672 GB, free: 42.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/2.84, allocations: 290.4 kB / 0.8675 GB, free: 42.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003945/2.844, allocations: 1.537 MB / 0.869 GB, free: 42.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/2.846, allocations: 88.53 kB / 0.869 GB, free: 42.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002737/2.847, allocations: 72.59 kB / 0.8691 GB, free: 42.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/2.847, allocations: 3.75 kB / 0.8691 GB, free: 42.16 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005096/2.852, allocations: 1.793 MB / 0.8709 GB, free: 42.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.735e-05/2.852, allocations: 14 kB / 0.8709 GB, free: 42.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01165/2.864, allocations: 0.9635 MB / 0.8718 GB, free: 42.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002532/2.866, allocations: 301.2 kB / 0.8721 GB, free: 42.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/2.869, allocations: 1.223 MB / 0.8733 GB, free: 41.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/2.871, allocations: 91.31 kB / 0.8734 GB, free: 41.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002933/2.872, allocations: 62.98 kB / 0.8735 GB, free: 41.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001259/2.873, allocations: 466.8 kB / 0.8739 GB, free: 41.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00052/2.874, allocations: 145.8 kB / 0.874 GB, free: 41.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007486/2.881, allocations: 2.023 MB / 0.876 GB, free: 41.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/2.881, allocations: 13.84 kB / 0.876 GB, free: 41.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/2.881, allocations: 0 / 0.876 GB, free: 41.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/2.881, allocations: 6.844 kB / 0.876 GB, free: 41.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/2.892, allocations: 3.435 MB / 0.8794 GB, free: 40.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/2.892, allocations: 0 / 0.8794 GB, free: 40.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00187/2.894, allocations: 197.5 kB / 0.8796 GB, free: 40.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006534/2.9, allocations: 0.955 MB / 0.8805 GB, free: 40.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003377/2.901, allocations: 36.75 kB / 0.8805 GB, free: 40.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003192/2.904, allocations: 1.563 MB / 0.8821 GB, free: 40.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/2.904, allocations: 2 kB / 0.8821 GB, free: 40.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006969/2.911, allocations: 2.746 MB / 0.8848 GB, free: 40.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/2.913, allocations: 402.4 kB / 0.8851 GB, free: 39.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/2.913, allocations: 23.19 kB / 0.8852 GB, free: 39.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/2.915, allocations: 93.09 kB / 0.8852 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003274/2.915, allocations: 100.5 kB / 0.8853 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001936/2.915, allocations: 47.33 kB / 0.8854 GB, free: 39.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001655/2.917, allocations: 0.8414 MB / 0.8862 GB, free: 39.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.917, allocations: 0 / 0.8862 GB, free: 39.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00521/2.922, allocations: 1.242 MB / 0.8874 GB, free: 39.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01023/2.933, allocations: 4.272 MB / 0.8916 GB, free: 39.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009084/2.942, allocations: 2.579 MB / 0.8941 GB, free: 39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/2.942, allocations: 0 / 0.8941 GB, free: 39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003018/2.945, allocations: 0.8326 MB / 0.8949 GB, free: 38.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005048/2.95, allocations: 0.5938 MB / 0.8955 GB, free: 38.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/2.964, allocations: 10.8 MB / 0.9061 GB, free: 31.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009639/2.965, allocations: 1.318 MB / 0.9073 GB, free: 30.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003491/2.968, allocations: 0.5582 MB / 0.9079 GB, free: 30.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/2.969, allocations: 0.5413 MB / 0.9084 GB, free: 30.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.693e-06/2.969, allocations: 0 / 0.9084 GB, free: 30.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1271/3.097, allocations: 53.88 MB / 0.961 GB, free: 21.09 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/3.097, allocations: 193.8 kB / 0.9612 GB, free: 20.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.042/8.139, allocations: 0 / 0.9612 GB, free: 20.84 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat