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.LinearFluid.LinearColdWater.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.226/2.226, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.82e-05/1.819e-05, allocations: 3.984 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.337, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.259/1.596, allocations: 414.2 MB / 0.7542 GB, free: 50 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/1.597, allocations: 86.83 kB / 0.7543 GB, free: 49.95 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6759/2.273, allocations: 116.6 MB / 0.8682 GB, free: 128.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.773e-06/2.273, allocations: 0 / 0.8682 GB, free: 128.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.727e-05/2.273, allocations: 23.44 kB / 0.8682 GB, free: 128.1 MB / 474.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.002738/2.275, allocations: 0.972 MB / 0.8692 GB, free: 127.1 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/2.276, allocations: 8.031 kB / 0.8692 GB, free: 127.1 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/2.276, allocations: 87.14 kB / 0.8692 GB, free: 127 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/2.277, allocations: 0.5458 MB / 0.8698 GB, free: 126.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/2.278, allocations: 84.7 kB / 0.8699 GB, free: 126.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/2.278, allocations: 28 kB / 0.8699 GB, free: 126.3 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001294/2.279, allocations: 0.5492 MB / 0.8704 GB, free: 125.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/2.28, allocations: 0.7284 MB / 0.8711 GB, free: 124.9 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.024e-05/2.28, allocations: 3.953 kB / 0.8711 GB, free: 124.9 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.973e-05/2.281, allocations: 8 kB / 0.8711 GB, free: 124.9 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.783e-05/2.281, allocations: 37.3 kB / 0.8712 GB, free: 124.9 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005949/2.287, allocations: 3.971 MB / 0.8751 GB, free: 120.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008237/2.287, allocations: 306.4 kB / 0.8753 GB, free: 120.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/2.288, allocations: 153.4 kB / 0.8755 GB, free: 120.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003944/2.288, allocations: 348.7 kB / 0.8758 GB, free: 119.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/2.288, allocations: 46.77 kB / 0.8759 GB, free: 119.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 3.116e-06/2.288, allocations: 0 / 0.8759 GB, free: 119.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=39): time 0.004578/2.293, allocations: 1.259 MB / 0.8771 GB, free: 118.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/2.293, allocations: 136.5 kB / 0.8772 GB, free: 118.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000699/2.294, allocations: 462 kB / 0.8777 GB, free: 117.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/2.294, allocations: 25.7 kB / 0.8777 GB, free: 117.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/2.294, allocations: 421.4 kB / 0.8781 GB, free: 117.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/2.294, allocations: 142 kB / 0.8782 GB, free: 117.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/2.294, allocations: 0 / 0.8782 GB, free: 117.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.797e-05/2.294, allocations: 338.8 kB / 0.8786 GB, free: 116.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/2.295, allocations: 197.5 kB / 0.8787 GB, free: 116.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/2.295, allocations: 0.5101 MB / 0.8792 GB, free: 116 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/2.296, allocations: 344.4 kB / 0.8796 GB, free: 115.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/2.296, allocations: 4 kB / 0.8796 GB, free: 115.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002659/2.299, allocations: 0.8716 MB / 0.8804 GB, free: 114.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/2.299, allocations: 8 kB / 0.8804 GB, free: 114.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/2.299, allocations: 12 kB / 0.8804 GB, free: 114.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/2.3, allocations: 224.8 kB / 0.8807 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007783/2.301, allocations: 131.8 kB / 0.8808 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/2.302, allocations: 0.8529 MB / 0.8816 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009775/2.303, allocations: 43.88 kB / 0.8817 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.418e-05/2.303, allocations: 40 kB / 0.8817 GB, free: 113.5 MB / 474.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 () * 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.0001949/2.304, allocations: 136.6 kB / 0.8818 GB, free: 113.3 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001457/2.305, allocations: 489.7 kB / 0.8823 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/2.305, allocations: 63.25 kB / 0.8824 GB, free: 112.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/2.307, allocations: 0.5764 MB / 0.8829 GB, free: 112.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/2.307, allocations: 4 kB / 0.8829 GB, free: 112.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/2.307, allocations: 0 / 0.8829 GB, free: 112.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/2.307, allocations: 3.984 kB / 0.8829 GB, free: 112.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/2.31, allocations: 1.47 MB / 0.8844 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/2.31, allocations: 4 kB / 0.8844 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/2.312, allocations: 188 kB / 0.8845 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003423/2.312, allocations: 56.7 kB / 0.8846 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.371e-05/2.312, allocations: 11.94 kB / 0.8846 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/2.315, allocations: 2.68 MB / 0.8872 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/2.315, allocations: 3.938 kB / 0.8872 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/2.317, allocations: 0.9531 MB / 0.8882 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/2.317, allocations: 196.2 kB / 0.8884 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/2.317, allocations: 4 kB / 0.8884 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006534/2.318, allocations: 15.98 kB / 0.8884 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/2.318, allocations: 39.95 kB / 0.8884 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.768e-05/2.318, allocations: 19.98 kB / 0.8884 GB, free: 106.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005235/2.319, allocations: 330.9 kB / 0.8887 GB, free: 105.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/2.319, allocations: 0 / 0.8887 GB, free: 105.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001231/2.32, allocations: 203.9 kB / 0.8889 GB, free: 105.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * 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.002805/2.323, allocations: 2.067 MB / 0.891 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001417/2.324, allocations: 0.5206 MB / 0.8915 GB, free: 103 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/2.324, allocations: 4.25 kB / 0.8915 GB, free: 103 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001501/2.326, allocations: 413.2 kB / 0.8919 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/2.328, allocations: 286 kB / 0.8921 GB, free: 102.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/2.331, allocations: 1.133 MB / 0.8932 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/2.331, allocations: 0.9459 MB / 0.8942 GB, free: 100.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004572/2.332, allocations: 239.3 kB / 0.8944 GB, free: 99.88 MB / 474.7 MB Notification: Performance of SimCode: time 9.52e-07/2.332, allocations: 3.938 kB / 0.8944 GB, free: 99.87 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.025/5.357, allocations: 17.18 MB / 0.9112 GB, free: 82.69 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat