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/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.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.312/2.312, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000429/0.0004291, allocations: 8 kB / 314.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3528, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.244/1.597, allocations: 414.9 MB / 0.7659 GB, free: 69.01 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/1.598, allocations: 98.58 kB / 0.766 GB, free: 68.95 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7595/2.357, allocations: 118 MB / 0.8812 GB, free: 147.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.615e-06/2.357, allocations: 0 / 0.8812 GB, free: 147.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.513e-05/2.357, allocations: 15.5 kB / 0.8813 GB, free: 147.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.00335/2.361, allocations: 1.053 MB / 0.8823 GB, free: 146.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/2.361, allocations: 10.62 kB / 0.8823 GB, free: 146.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002966/2.361, allocations: 99.69 kB / 0.8824 GB, free: 146.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/2.361, allocations: 93.45 kB / 0.8825 GB, free: 146.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/2.363, allocations: 0.5446 MB / 0.883 GB, free: 146.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/2.363, allocations: 94.34 kB / 0.8831 GB, free: 146.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/2.363, allocations: 53.83 kB / 0.8832 GB, free: 146.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/2.365, allocations: 0.8054 MB / 0.8839 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/2.365, allocations: 3.938 kB / 0.8839 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/2.365, allocations: 26.91 kB / 0.884 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-05/2.366, allocations: 51.44 kB / 0.884 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/2.367, allocations: 0.6314 MB / 0.8846 GB, free: 145.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006442/2.374, allocations: 3.904 MB / 0.8884 GB, free: 142.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/2.375, allocations: 386.4 kB / 0.8888 GB, free: 142.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005346/2.375, allocations: 0.4999 MB / 0.8893 GB, free: 141.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/2.376, allocations: 50.47 kB / 0.8894 GB, free: 141.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 3.466e-06/2.376, allocations: 0 / 0.8894 GB, free: 141.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.004813/2.38, allocations: 1.484 MB / 0.8908 GB, free: 140.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/2.38, allocations: 132 kB / 0.8909 GB, free: 140.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008586/2.381, allocations: 497.8 kB / 0.8914 GB, free: 140.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/2.381, allocations: 37.67 kB / 0.8914 GB, free: 140.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/2.382, allocations: 395.8 kB / 0.8918 GB, free: 140.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/2.382, allocations: 165.6 kB / 0.892 GB, free: 140.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/2.382, allocations: 16 kB / 0.892 GB, free: 140 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.325e-05/2.382, allocations: 346.4 kB / 0.8923 GB, free: 139.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000593/2.383, allocations: 221 kB / 0.8925 GB, free: 139.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007207/2.383, allocations: 0.5332 MB / 0.8931 GB, free: 139.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/2.384, allocations: 322.2 kB / 0.8934 GB, free: 139 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/2.384, allocations: 3.844 kB / 0.8934 GB, free: 139 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002736/2.387, allocations: 0.9246 MB / 0.8943 GB, free: 138.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/2.387, allocations: 13.84 kB / 0.8943 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/2.387, allocations: 7.875 kB / 0.8943 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/2.389, allocations: 266.2 kB / 0.8945 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008317/2.39, allocations: 137 kB / 0.8947 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/2.391, allocations: 0.852 MB / 0.8955 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/2.392, allocations: 46.95 kB / 0.8955 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.176e-05/2.392, allocations: 38.62 kB / 0.8956 GB, free: 137.9 MB / 490.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.0005283/2.393, allocations: 252 kB / 0.8958 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/2.393, allocations: 69.98 kB / 0.8959 GB, free: 137.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/2.395, allocations: 0.6939 MB / 0.8966 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/2.395, allocations: 3.938 kB / 0.8966 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/2.395, allocations: 3.844 kB / 0.8966 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/2.395, allocations: 3.891 kB / 0.8966 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/2.398, allocations: 1.372 MB / 0.8979 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/2.398, allocations: 0 / 0.8979 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/2.4, allocations: 197.6 kB / 0.8981 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004878/2.401, allocations: 63.5 kB / 0.8982 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.818e-05/2.401, allocations: 15.75 kB / 0.8982 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/2.403, allocations: 2.802 MB / 0.9009 GB, free: 133.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/2.403, allocations: 3.812 kB / 0.9009 GB, free: 133.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/2.406, allocations: 1.052 MB / 0.902 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004648/2.406, allocations: 195.1 kB / 0.9021 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/2.407, allocations: 16 kB / 0.9022 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007572/2.407, allocations: 31.41 kB / 0.9022 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/2.407, allocations: 43.72 kB / 0.9022 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-05/2.408, allocations: 23.89 kB / 0.9022 GB, free: 132.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006478/2.408, allocations: 376.2 kB / 0.9026 GB, free: 132.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.408, allocations: 0 / 0.9026 GB, free: 132.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001376/2.41, allocations: 219.8 kB / 0.9028 GB, free: 132.1 MB / 490.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.003232/2.413, allocations: 2.247 MB / 0.905 GB, free: 129.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00179/2.415, allocations: 0.5941 MB / 0.9056 GB, free: 129.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/2.415, allocations: 4 kB / 0.9056 GB, free: 129.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/2.416, allocations: 460.6 kB / 0.906 GB, free: 129 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/2.419, allocations: 307 kB / 0.9063 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/2.43, allocations: 11.11 MB / 0.9172 GB, free: 117.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/2.43, allocations: 0.9392 MB / 0.9181 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005472/2.431, allocations: 243.4 kB / 0.9183 GB, free: 116.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.994e-06/2.431, allocations: 0 / 0.9183 GB, free: 116.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.252/5.683, allocations: 17.68 MB / 0.9356 GB, free: 99.11 MB / 490.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