Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.928/1.928, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005594/0.0005595, allocations: 12 kB / 282.7 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3636, allocations: 48.7 MB / 331.4 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.383/7.747, allocations: 2.516 GB / 2.84 GB, free: 3.316 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/7.747, allocations: 93.69 kB / 2.84 GB, free: 3.262 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.627/10.37, allocations: 491.3 MB / 3.32 GB, free: 36.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.723e-06/10.37, allocations: 0 / 3.32 GB, free: 36.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.83e-05/10.37, allocations: 19.03 kB / 3.32 GB, free: 36.66 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007641/10.38, allocations: 1.756 MB / 3.321 GB, free: 35.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/10.38, allocations: 10.22 kB / 3.321 GB, free: 35.49 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003097/10.38, allocations: 118 kB / 3.321 GB, free: 35.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003175/10.39, allocations: 326 kB / 3.322 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/10.39, allocations: 0.5948 MB / 3.322 GB, free: 34.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/10.39, allocations: 115.5 kB / 3.322 GB, free: 34.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/10.39, allocations: 60 kB / 3.323 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003412/10.39, allocations: 1.152 MB / 3.324 GB, free: 33.08 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.787e-05/10.39, allocations: 14.58 kB / 3.324 GB, free: 33.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/10.39, allocations: 30.81 kB / 3.324 GB, free: 33.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-05/10.39, allocations: 45.25 kB / 3.324 GB, free: 33 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002455/10.39, allocations: 0.8347 MB / 3.325 GB, free: 32.16 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008096/10.4, allocations: 5.46 MB / 3.33 GB, free: 26.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/10.4, allocations: 0.5719 MB / 3.33 GB, free: 25.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5015/10.91, allocations: 48.9 MB / 3.378 GB, free: 57.13 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.952e-05/10.91, allocations: 38.31 kB / 3.378 GB, free: 57.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=42): time 3.687e-06/10.91, allocations: 0 / 3.378 GB, free: 57.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.007793/10.91, allocations: 1.932 MB / 3.38 GB, free: 56.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/10.91, allocations: 165.5 kB / 3.38 GB, free: 56.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009483/10.91, allocations: 0.5343 MB / 3.381 GB, free: 56.38 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.538e-05/10.91, allocations: 35.05 kB / 3.381 GB, free: 56.35 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/10.91, allocations: 438 kB / 3.381 GB, free: 56.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/10.91, allocations: 168.9 kB / 3.381 GB, free: 56.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/10.91, allocations: 15.12 kB / 3.381 GB, free: 56.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.894e-05/10.91, allocations: 347.1 kB / 3.382 GB, free: 55.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/10.92, allocations: 224.6 kB / 3.382 GB, free: 55.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008438/10.92, allocations: 0.588 MB / 3.383 GB, free: 55.24 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007969/10.92, allocations: 337.5 kB / 3.383 GB, free: 55.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/10.92, allocations: 3.219 kB / 3.383 GB, free: 55.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002268/10.92, allocations: 0.8542 MB / 3.384 GB, free: 55.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/10.92, allocations: 11.66 kB / 3.384 GB, free: 55.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.42e-05/10.92, allocations: 11.03 kB / 3.384 GB, free: 55.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004827/10.92, allocations: 68.64 kB / 3.384 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002312/10.92, allocations: 294.8 kB / 3.384 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/10.92, allocations: 1.975 MB / 3.386 GB, free: 53.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/10.93, allocations: 63.52 kB / 3.386 GB, free: 53.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/10.93, allocations: 43.59 kB / 3.386 GB, free: 53.33 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006487/10.93, allocations: 282.2 kB / 3.386 GB, free: 53.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/10.93, allocations: 71.53 kB / 3.386 GB, free: 53.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00377/10.93, allocations: 2.221 MB / 3.389 GB, free: 52.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/10.93, allocations: 27.89 kB / 3.389 GB, free: 52.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.882e-06/10.93, allocations: 1.938 kB / 3.389 GB, free: 52.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/10.93, allocations: 5.719 kB / 3.389 GB, free: 52.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00549/10.94, allocations: 3.281 MB / 3.392 GB, free: 52.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/10.94, allocations: 0 / 3.392 GB, free: 52.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/10.94, allocations: 190.4 kB / 3.392 GB, free: 52.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005943/10.94, allocations: 86.78 kB / 3.392 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.074e-05/10.94, allocations: 15.62 kB / 3.392 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/10.94, allocations: 2.003 MB / 3.394 GB, free: 50.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/10.94, allocations: 0 / 3.394 GB, free: 50.62 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003162/10.94, allocations: 1.991 MB / 3.396 GB, free: 50.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007541/10.94, allocations: 282.4 kB / 3.396 GB, free: 50.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/10.94, allocations: 11.31 kB / 3.396 GB, free: 50.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009995/10.95, allocations: 64.08 kB / 3.396 GB, free: 50.11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/10.95, allocations: 31.88 kB / 3.396 GB, free: 50.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-05/10.95, allocations: 26.48 kB / 3.396 GB, free: 50.11 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009928/10.95, allocations: 0.4977 MB / 3.397 GB, free: 50.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/10.95, allocations: 0 / 3.397 GB, free: 50.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006233/10.95, allocations: 1.125 MB / 3.398 GB, free: 50.02 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01351/10.97, allocations: 4.046 MB / 3.402 GB, free: 49.04 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002851/10.97, allocations: 0.9167 MB / 3.403 GB, free: 49.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/10.97, allocations: 0 / 3.403 GB, free: 49.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/10.97, allocations: 0.6558 MB / 3.403 GB, free: 49.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/10.97, allocations: 357.1 kB / 3.404 GB, free: 49.01 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01747/10.99, allocations: 13.86 MB / 3.417 GB, free: 38.92 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007304/10.99, allocations: 1.133 MB / 3.418 GB, free: 38.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000723/10.99, allocations: 397.6 kB / 3.419 GB, free: 38.21 MB / 458.7 MB Notification: Performance of SimCode: time 1.533e-06/10.99, allocations: 1.406 kB / 3.419 GB, free: 38.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.976/14.97, allocations: 44.25 MB / 3.462 GB, free: 35.45 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat