Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.823e-05/3.853e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3793, allocations: 54.85 MB / 364.6 MB, free: 5.578 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8315/1.211, allocations: 347.8 MB / 0.6958 GB, free: 1.789 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004299/1.211, allocations: 95.22 kB / 0.6958 GB, free: 1.738 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7606/1.972, allocations: 129.4 MB / 0.8222 GB, free: 97.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.764e-06/1.972, allocations: 0 / 0.8222 GB, free: 97.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.923e-05/1.972, allocations: 16 kB / 0.8222 GB, free: 97.5 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002357/1.974, allocations: 0.8923 MB / 0.8231 GB, free: 96.57 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/1.975, allocations: 12.03 kB / 0.8231 GB, free: 96.55 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001706/1.975, allocations: 102.7 kB / 0.8232 GB, free: 96.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004893/1.975, allocations: 83.16 kB / 0.8233 GB, free: 96.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001472/1.977, allocations: 0.552 MB / 0.8238 GB, free: 95.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/1.977, allocations: 104.4 kB / 0.8239 GB, free: 95.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/1.977, allocations: 48 kB / 0.824 GB, free: 95.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/1.979, allocations: 0.7959 MB / 0.8248 GB, free: 94.73 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/1.979, allocations: 7.938 kB / 0.8248 GB, free: 94.72 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/1.979, allocations: 31.94 kB / 0.8248 GB, free: 94.69 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.317e-05/1.979, allocations: 32.98 kB / 0.8248 GB, free: 94.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/1.98, allocations: 0.6088 MB / 0.8254 GB, free: 94.05 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005825/1.986, allocations: 4.023 MB / 0.8293 GB, free: 89.79 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/1.987, allocations: 319.5 kB / 0.8297 GB, free: 89.47 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003477/1.987, allocations: 165.4 kB / 0.8298 GB, free: 89.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002703/1.99, allocations: 1.827 MB / 0.8316 GB, free: 87.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/1.99, allocations: 38.56 kB / 0.8316 GB, free: 87.19 MB / 490.7 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/1.99, allocations: 4 kB / 0.8316 GB, free: 87.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.003889/1.994, allocations: 1.127 MB / 0.8327 GB, free: 86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/1.994, allocations: 132.5 kB / 0.8329 GB, free: 85.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009126/1.995, allocations: 0.55 MB / 0.8334 GB, free: 85.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.957e-05/1.995, allocations: 37.7 kB / 0.8334 GB, free: 85.24 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002764/1.996, allocations: 444.4 kB / 0.8339 GB, free: 84.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/1.996, allocations: 130.3 kB / 0.834 GB, free: 84.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.422e-05/1.996, allocations: 16 kB / 0.834 GB, free: 84.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.083e-05/1.996, allocations: 342.8 kB / 0.8343 GB, free: 84.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/1.996, allocations: 165.5 kB / 0.8345 GB, free: 84.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006207/1.997, allocations: 0.5711 MB / 0.835 GB, free: 83.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/1.998, allocations: 295.6 kB / 0.8353 GB, free: 83.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/1.998, allocations: 4 kB / 0.8353 GB, free: 83.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001667/1.999, allocations: 0.7235 MB / 0.836 GB, free: 82.37 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/1.999, allocations: 13.19 kB / 0.836 GB, free: 82.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/1.999, allocations: 16 kB / 0.8361 GB, free: 82.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.082e-05/1.999, allocations: 20.78 kB / 0.8361 GB, free: 82.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/2.001, allocations: 207.7 kB / 0.8363 GB, free: 82.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-05/2.001, allocations: 27.86 kB / 0.8363 GB, free: 82.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009973/2.002, allocations: 51.91 kB / 0.8364 GB, free: 82.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.628e-05/2.002, allocations: 47.95 kB / 0.8364 GB, free: 81.99 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001879/2.002, allocations: 164.6 kB / 0.8366 GB, free: 81.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/2.002, allocations: 67.16 kB / 0.8366 GB, free: 81.76 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/2.003, allocations: 410.4 kB / 0.837 GB, free: 81.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/2.003, allocations: 4.094 kB / 0.837 GB, free: 81.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/2.003, allocations: 7.969 kB / 0.837 GB, free: 81.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/2.004, allocations: 4 kB / 0.837 GB, free: 81.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/2.006, allocations: 1.206 MB / 0.8382 GB, free: 80 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/2.006, allocations: 7.938 kB / 0.8382 GB, free: 79.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/2.006, allocations: 75.89 kB / 0.8383 GB, free: 79.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002644/2.006, allocations: 32.84 kB / 0.8383 GB, free: 79.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/2.006, allocations: 16.39 kB / 0.8383 GB, free: 79.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003531/2.007, allocations: 0.5602 MB / 0.8389 GB, free: 79.28 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/2.007, allocations: 4 kB / 0.8389 GB, free: 79.28 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/2.008, allocations: 0.8208 MB / 0.8397 GB, free: 78.31 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/2.008, allocations: 180.2 kB / 0.8399 GB, free: 78.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/2.009, allocations: 12 kB / 0.8399 GB, free: 78.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006756/2.009, allocations: 35.92 kB / 0.8399 GB, free: 78.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.738e-05/2.009, allocations: 31.86 kB / 0.8399 GB, free: 78.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/2.009, allocations: 19.98 kB / 0.84 GB, free: 78.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000696/2.01, allocations: 427.1 kB / 0.8404 GB, free: 77.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.01, allocations: 4 kB / 0.8404 GB, free: 77.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001122/2.011, allocations: 212 kB / 0.8406 GB, free: 77.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002101/2.013, allocations: 2.49 MB / 0.843 GB, free: 74.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001029/2.014, allocations: 447.5 kB / 0.8434 GB, free: 74.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/2.014, allocations: 0 / 0.8434 GB, free: 74.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004765/2.015, allocations: 171.7 kB / 0.8436 GB, free: 74.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/2.017, allocations: 268.2 kB / 0.8438 GB, free: 73.93 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/2.02, allocations: 1.11 MB / 0.8449 GB, free: 72.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/2.02, allocations: 0.9414 MB / 0.8458 GB, free: 71.76 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/2.021, allocations: 243.4 kB / 0.8461 GB, free: 71.52 MB / 490.7 MB Notification: Performance of SimCode: time 9.72e-07/2.021, allocations: 0 / 0.8461 GB, free: 71.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.937/4.958, allocations: 15.36 MB / 0.8611 GB, free: 56.17 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat does not exist to compare? outputFormat=mat