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.LinearFluid.LinearColdWater.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.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.008/2.008, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006072/0.0006073, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3827, allocations: 48.7 MB / 331.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.143/1.526, allocations: 408.5 MB / 0.7225 GB, free: 79.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003455/1.526, allocations: 98.36 kB / 0.7226 GB, free: 79.52 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7057/2.232, allocations: 118 MB / 0.8379 GB, free: 122.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.066e-06/2.232, allocations: 3.969 kB / 0.8379 GB, free: 122.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.207e-05/2.232, allocations: 17.77 kB / 0.8379 GB, free: 122.7 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.00304/2.235, allocations: 1.058 MB / 0.8389 GB, free: 122.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/2.235, allocations: 10.03 kB / 0.8389 GB, free: 122.1 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002109/2.236, allocations: 96.27 kB / 0.839 GB, free: 122.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004485/2.236, allocations: 97.84 kB / 0.8391 GB, free: 122 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/2.238, allocations: 0.5486 MB / 0.8397 GB, free: 121.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/2.238, allocations: 99.03 kB / 0.8398 GB, free: 121.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/2.238, allocations: 53.59 kB / 0.8398 GB, free: 121.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/2.24, allocations: 0.8036 MB / 0.8406 GB, free: 121.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/2.24, allocations: 3.469 kB / 0.8406 GB, free: 121.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/2.24, allocations: 26.06 kB / 0.8406 GB, free: 121.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.868e-05/2.24, allocations: 46.19 kB / 0.8407 GB, free: 121.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/2.241, allocations: 0.6269 MB / 0.8413 GB, free: 121.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006359/2.248, allocations: 3.908 MB / 0.8451 GB, free: 119 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/2.249, allocations: 388.5 kB / 0.8455 GB, free: 119 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000559/2.25, allocations: 0.4955 MB / 0.8459 GB, free: 118.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/2.25, allocations: 40.58 kB / 0.846 GB, free: 118.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 5.1e-06/2.25, allocations: 3.625 kB / 0.846 GB, free: 118.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.006213/2.256, allocations: 1.486 MB / 0.8474 GB, free: 118 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/2.256, allocations: 132.5 kB / 0.8476 GB, free: 117.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008237/2.257, allocations: 494.5 kB / 0.848 GB, free: 117.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.685e-05/2.257, allocations: 37.02 kB / 0.8481 GB, free: 117.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/2.257, allocations: 405.1 kB / 0.8485 GB, free: 117.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/2.258, allocations: 162.1 kB / 0.8486 GB, free: 117.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/2.258, allocations: 14.72 kB / 0.8486 GB, free: 117.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/2.258, allocations: 342.1 kB / 0.849 GB, free: 117 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/2.258, allocations: 216.2 kB / 0.8492 GB, free: 116.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007393/2.259, allocations: 0.5354 MB / 0.8497 GB, free: 116.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007269/2.26, allocations: 321.2 kB / 0.85 GB, free: 116.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/2.26, allocations: 0 / 0.85 GB, free: 116.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002746/2.263, allocations: 0.9351 MB / 0.8509 GB, free: 115.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/2.263, allocations: 8.812 kB / 0.8509 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/2.263, allocations: 11.28 kB / 0.8509 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/2.264, allocations: 257 kB / 0.8512 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008347/2.265, allocations: 136.5 kB / 0.8513 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/2.267, allocations: 0.8562 MB / 0.8521 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/2.268, allocations: 48.62 kB / 0.8522 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.028e-05/2.268, allocations: 37.97 kB / 0.8522 GB, free: 115.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005023/2.268, allocations: 247.9 kB / 0.8524 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/2.268, allocations: 63.34 kB / 0.8525 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/2.27, allocations: 0.7011 MB / 0.8532 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/2.27, allocations: 10.75 kB / 0.8532 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/2.27, allocations: 3.875 kB / 0.8532 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/2.27, allocations: 3.938 kB / 0.8532 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/2.273, allocations: 1.375 MB / 0.8546 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/2.274, allocations: 3.031 kB / 0.8546 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/2.275, allocations: 189.7 kB / 0.8547 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004718/2.276, allocations: 65.72 kB / 0.8548 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.774e-05/2.276, allocations: 14.62 kB / 0.8548 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/2.279, allocations: 2.799 MB / 0.8575 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/2.279, allocations: 3.219 kB / 0.8576 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/2.281, allocations: 1.046 MB / 0.8586 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/2.282, allocations: 200.7 kB / 0.8588 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/2.282, allocations: 11.03 kB / 0.8588 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007313/2.282, allocations: 37.25 kB / 0.8588 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/2.283, allocations: 44.06 kB / 0.8589 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.185e-05/2.283, allocations: 22.97 kB / 0.8589 GB, free: 110.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006688/2.283, allocations: 379.2 kB / 0.8592 GB, free: 110.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.7e-07/2.283, allocations: 0 / 0.8592 GB, free: 110.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001329/2.285, allocations: 223.4 kB / 0.8594 GB, free: 110.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003209/2.288, allocations: 2.242 MB / 0.8616 GB, free: 108.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001748/2.29, allocations: 0.5917 MB / 0.8622 GB, free: 108.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/2.29, allocations: 3.812 kB / 0.8622 GB, free: 108.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/2.291, allocations: 457.6 kB / 0.8627 GB, free: 108 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/2.294, allocations: 307 kB / 0.8629 GB, free: 107.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/2.305, allocations: 11.1 MB / 0.8738 GB, free: 98.69 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/2.305, allocations: 0.9491 MB / 0.8747 GB, free: 97.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005058/2.306, allocations: 232.3 kB / 0.8749 GB, free: 97.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/2.306, allocations: 0 / 0.8749 GB, free: 97.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.341/5.647, allocations: 17.69 MB / 0.8922 GB, free: 91.61 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat