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.Tanks.ThreeTanks.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.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.00036, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09922/0.09961, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.035/1.135, allocations: 316.7 MB / 0.6106 GB, free: 66.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/1.135, allocations: 80.39 kB / 0.6107 GB, free: 66.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583/2.718, allocations: 267.7 MB / 0.872 GB, free: 62.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.015e-06/2.718, allocations: 0 / 0.872 GB, free: 62.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001791/2.718, allocations: 43.27 kB / 0.8721 GB, free: 62.11 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.009033/2.727, allocations: 1.996 MB / 0.874 GB, free: 61.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/2.727, allocations: 11.41 kB / 0.874 GB, free: 61.19 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008844/2.728, allocations: 164.3 kB / 0.8742 GB, free: 61.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009293/2.729, allocations: 180.7 kB / 0.8744 GB, free: 61.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004313/2.734, allocations: 1.116 MB / 0.8755 GB, free: 60.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002337/2.734, allocations: 177.5 kB / 0.8756 GB, free: 60.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004498/2.734, allocations: 95.94 kB / 0.8757 GB, free: 60.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004997/2.739, allocations: 1.769 MB / 0.8775 GB, free: 60.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.884e-05/2.74, allocations: 7.406 kB / 0.8775 GB, free: 60.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002672/2.74, allocations: 49.69 kB / 0.8775 GB, free: 60.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002436/2.74, allocations: 107.8 kB / 0.8776 GB, free: 60.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005116/2.745, allocations: 1.772 MB / 0.8793 GB, free: 60.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01907/2.764, allocations: 6.403 MB / 0.8856 GB, free: 58.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/2.768, allocations: 1.171 MB / 0.8867 GB, free: 58.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009194/2.777, allocations: 4.179 MB / 0.8908 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/2.777, allocations: 50.16 kB / 0.8909 GB, free: 56.01 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001612/2.779, allocations: 213.6 kB / 0.8911 GB, free: 55.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 4.348e-06/2.779, allocations: 0 / 0.8911 GB, free: 55.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.03049/2.809, allocations: 5.369 MB / 0.8963 GB, free: 55.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/2.809, allocations: 141.3 kB / 0.8964 GB, free: 55.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002329/2.812, allocations: 1.106 MB / 0.8975 GB, free: 54.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000451/2.812, allocations: 52.08 kB / 0.8976 GB, free: 54.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004566/2.813, allocations: 0.5752 MB / 0.8981 GB, free: 54.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004985/2.813, allocations: 388.1 kB / 0.8985 GB, free: 54.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/2.813, allocations: 29.16 kB / 0.8985 GB, free: 54.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/2.814, allocations: 363.3 kB / 0.8989 GB, free: 54.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/2.815, allocations: 0.6426 MB / 0.8995 GB, free: 54.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/2.817, allocations: 0.9688 MB / 0.9005 GB, free: 53.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/2.819, allocations: 0.7601 MB / 0.9012 GB, free: 53.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/2.819, allocations: 4.781 kB / 0.9012 GB, free: 53.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00572/2.825, allocations: 2.028 MB / 0.9032 GB, free: 53.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008419/2.826, allocations: 3.496 MB / 0.9066 GB, free: 49.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/2.826, allocations: 10.72 kB / 0.9066 GB, free: 49.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/2.839, allocations: 1.225 MB / 0.9078 GB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/2.841, allocations: 294.9 kB / 0.9081 GB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00374/2.845, allocations: 1.528 MB / 0.9096 GB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002612/2.848, allocations: 84.8 kB / 0.9097 GB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002454/2.848, allocations: 72 kB / 0.9097 GB, free: 49.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.848, allocations: 4.562 kB / 0.9097 GB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00496/2.853, allocations: 1.787 MB / 0.9115 GB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/2.853, allocations: 10.94 kB / 0.9115 GB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01098/2.864, allocations: 0.9492 MB / 0.9124 GB, free: 49.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/2.867, allocations: 298.9 kB / 0.9127 GB, free: 49.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/2.869, allocations: 1.209 MB / 0.9139 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/2.871, allocations: 84.16 kB / 0.914 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001901/2.871, allocations: 68.58 kB / 0.914 GB, free: 48.82 MB / 410.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.001199/2.872, allocations: 471.5 kB / 0.9145 GB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004694/2.873, allocations: 152.8 kB / 0.9146 GB, free: 48.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006424/2.879, allocations: 2.026 MB / 0.9166 GB, free: 48.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.04e-05/2.879, allocations: 11.44 kB / 0.9166 GB, free: 48.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/2.879, allocations: 5.188 kB / 0.9166 GB, free: 48.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-05/2.879, allocations: 6.469 kB / 0.9166 GB, free: 48.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00916/2.889, allocations: 3.43 MB / 0.92 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/2.889, allocations: 0 / 0.92 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/2.89, allocations: 198.9 kB / 0.9202 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006381/2.897, allocations: 0.9585 MB / 0.9211 GB, free: 48.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003344/2.897, allocations: 35.48 kB / 0.9211 GB, free: 48.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/2.901, allocations: 1.56 MB / 0.9227 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/2.901, allocations: 0 / 0.9227 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006958/2.908, allocations: 2.753 MB / 0.9253 GB, free: 47.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/2.909, allocations: 404.8 kB / 0.9257 GB, free: 47.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003623/2.909, allocations: 24.34 kB / 0.9258 GB, free: 47.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/2.911, allocations: 85.62 kB / 0.9258 GB, free: 47.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/2.912, allocations: 105 kB / 0.9259 GB, free: 47.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/2.912, allocations: 57.77 kB / 0.926 GB, free: 47.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001721/2.914, allocations: 0.8298 MB / 0.9268 GB, free: 46.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.914, allocations: 0 / 0.9268 GB, free: 46.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005422/2.919, allocations: 1.248 MB / 0.928 GB, free: 46.73 MB / 410.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.01087/2.93, allocations: 4.258 MB / 0.9322 GB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009444/2.939, allocations: 2.556 MB / 0.9347 GB, free: 44.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/2.94, allocations: 0 / 0.9347 GB, free: 44.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003077/2.943, allocations: 0.8266 MB / 0.9355 GB, free: 44.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005131/2.948, allocations: 0.5961 MB / 0.9361 GB, free: 44.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/2.963, allocations: 10.86 MB / 0.9467 GB, free: 35.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009604/2.964, allocations: 1.315 MB / 0.948 GB, free: 35.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/2.965, allocations: 0.5695 MB / 0.9485 GB, free: 34.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/2.965, allocations: 0 / 0.9485 GB, free: 34.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.563/6.528, allocations: 41.25 MB / 0.9888 GB, free: 6.707 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat