Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.107, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.144, allocations: 322.3 MB / 0.6161 GB, free: 60.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/1.145, allocations: 94.58 kB / 0.6162 GB, free: 60.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.7/2.845, allocations: 322.6 MB / 0.9312 GB, free: 55.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/2.845, allocations: 0 / 0.9312 GB, free: 55.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002095/2.845, allocations: 46.62 kB / 0.9312 GB, free: 55.93 MB / 410.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.009207/2.854, allocations: 2.246 MB / 0.9334 GB, free: 54.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/2.854, allocations: 10.56 kB / 0.9334 GB, free: 54.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009788/2.855, allocations: 188.2 kB / 0.9336 GB, free: 54.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/2.856, allocations: 211.5 kB / 0.9338 GB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004583/2.861, allocations: 1.25 MB / 0.935 GB, free: 53.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/2.861, allocations: 96.22 kB / 0.9351 GB, free: 53.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004814/2.862, allocations: 119.4 kB / 0.9352 GB, free: 53.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005313/2.867, allocations: 1.945 MB / 0.9371 GB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.467e-05/2.867, allocations: 11.95 kB / 0.9372 GB, free: 52.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003105/2.867, allocations: 53.53 kB / 0.9372 GB, free: 52.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002322/2.868, allocations: 119.2 kB / 0.9373 GB, free: 52.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005558/2.873, allocations: 1.951 MB / 0.9392 GB, free: 52.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01849/2.892, allocations: 7.623 MB / 0.9467 GB, free: 47.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003115/2.895, allocations: 1.151 MB / 0.9478 GB, free: 46.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007468/2.903, allocations: 3.342 MB / 0.9511 GB, free: 44.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/2.903, allocations: 52.59 kB / 0.9511 GB, free: 44.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.369e-06/2.903, allocations: 0 / 0.9511 GB, free: 44.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.0211/2.924, allocations: 5.36 MB / 0.9563 GB, free: 40.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.856e-05/2.924, allocations: 167.5 kB / 0.9565 GB, free: 40.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/2.926, allocations: 1.171 MB / 0.9576 GB, free: 39.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004338/2.927, allocations: 61.45 kB / 0.9577 GB, free: 39.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005829/2.927, allocations: 0.6951 MB / 0.9584 GB, free: 39.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006005/2.928, allocations: 473 kB / 0.9588 GB, free: 38.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/2.928, allocations: 36 kB / 0.9589 GB, free: 38.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/2.928, allocations: 381.3 kB / 0.9592 GB, free: 38.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002031/2.93, allocations: 0.7489 MB / 0.96 GB, free: 37.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002292/2.933, allocations: 1.214 MB / 0.9611 GB, free: 36.22 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/2.935, allocations: 0.8746 MB / 0.962 GB, free: 35.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/2.935, allocations: 7.938 kB / 0.962 GB, free: 35.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00611/2.941, allocations: 2.319 MB / 0.9643 GB, free: 33.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001283/2.942, allocations: 5.135 MB / 0.9693 GB, free: 27.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-05/2.942, allocations: 19.94 kB / 0.9693 GB, free: 27.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009108/2.952, allocations: 0.9515 MB / 0.9702 GB, free: 26.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002741/2.954, allocations: 359.4 kB / 0.9706 GB, free: 26.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003412/2.958, allocations: 2.899 MB / 0.9734 GB, free: 23.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/2.961, allocations: 135.9 kB / 0.9735 GB, free: 23.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003536/2.961, allocations: 83.97 kB / 0.9736 GB, free: 22.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/2.961, allocations: 8 kB / 0.9736 GB, free: 22.98 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005724/2.967, allocations: 2.123 MB / 0.9757 GB, free: 20.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.134e-05/2.967, allocations: 16 kB / 0.9757 GB, free: 20.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007039/2.974, allocations: 0.6633 MB / 0.9764 GB, free: 20.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/2.977, allocations: 373.9 kB / 0.9767 GB, free: 19.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002604/2.98, allocations: 2.615 MB / 0.9793 GB, free: 17.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002289/2.982, allocations: 139.1 kB / 0.9794 GB, free: 16.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/2.982, allocations: 79.97 kB / 0.9795 GB, free: 16.86 MB / 410.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.001469/2.984, allocations: 0.522 MB / 0.98 GB, free: 16.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005475/2.984, allocations: 166.2 kB / 0.9801 GB, free: 16.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007127/2.991, allocations: 2.349 MB / 0.9824 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/2.991, allocations: 16 kB / 0.9825 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/2.992, allocations: 4 kB / 0.9825 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-05/2.992, allocations: 7.969 kB / 0.9825 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/3.004, allocations: 3.936 MB / 0.9863 GB, free: 9.789 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/3.004, allocations: 0 / 0.9863 GB, free: 9.789 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/3.006, allocations: 243.7 kB / 0.9865 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006509/3.012, allocations: 0.8835 MB / 0.9874 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004086/3.013, allocations: 47.98 kB / 0.9875 GB, free: 8.609 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002951/3.016, allocations: 2.835 MB / 0.9902 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/3.016, allocations: 0 / 0.9902 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007734/3.023, allocations: 3.221 MB / 0.9934 GB, free: 2.371 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007616/3.024, allocations: 258.9 kB / 0.9936 GB, free: 2.098 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004938/3.025, allocations: 39.98 kB / 0.9937 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001882/3.027, allocations: 107.8 kB / 0.9938 GB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/3.027, allocations: 149 kB / 0.9939 GB, free: 1.805 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/3.027, allocations: 59.97 kB / 0.994 GB, free: 1.746 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001757/3.029, allocations: 0.8953 MB / 0.9948 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.52e-07/3.029, allocations: 0 / 0.9948 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.3193/3.348, allocations: 1.356 MB / 0.9962 GB, free: 54.03 MB / 410.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.01344/3.362, allocations: 5.277 MB / 1.001 GB, free: 52.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01009/3.372, allocations: 3.048 MB / 1.004 GB, free: 52.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/3.372, allocations: 1.312 kB / 1.004 GB, free: 52.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00366/3.376, allocations: 1.06 MB / 1.005 GB, free: 52.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005911/3.382, allocations: 0.6627 MB / 1.006 GB, free: 52.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/3.398, allocations: 14.48 MB / 1.02 GB, free: 41.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/3.399, allocations: 1.424 MB / 1.022 GB, free: 40.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/3.401, allocations: 0.6674 MB / 1.022 GB, free: 40.74 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/3.401, allocations: 0 / 1.022 GB, free: 40.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.003/7.404, allocations: 65.65 MB / 1.086 GB, free: 34.8 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat