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.IdealGases.SimpleNaturalGas.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.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004568/0.0004568, allocations: 15.98 kB / 314.5 MB, free: 9.434 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3591, allocations: 54.85 MB / 369.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.46/2.819, allocations: 0.8214 GB / 1.182 GB, free: 20.52 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003441/2.819, allocations: 98.25 kB / 1.182 GB, free: 20.47 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.902/6.721, allocations: 0.7106 GB / 1.893 GB, free: 53.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.606e-06/6.721, allocations: 0 / 1.893 GB, free: 53.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.536e-05/6.722, allocations: 31.98 kB / 1.893 GB, free: 53.27 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.007084/6.729, allocations: 1.655 MB / 1.894 GB, free: 51.56 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/6.729, allocations: 8.031 kB / 1.894 GB, free: 51.55 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007683/6.729, allocations: 176.9 kB / 1.895 GB, free: 51.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002653/6.732, allocations: 309.5 kB / 1.895 GB, free: 51.07 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/6.735, allocations: 0.8295 MB / 1.896 GB, free: 50.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/6.736, allocations: 141.4 kB / 1.896 GB, free: 50.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005856/6.736, allocations: 111.8 kB / 1.896 GB, free: 49.94 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005489/6.742, allocations: 1.776 MB / 1.898 GB, free: 48.09 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-05/6.742, allocations: 0 / 1.898 GB, free: 48.09 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003334/6.742, allocations: 51.98 kB / 1.898 GB, free: 48.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001403/6.742, allocations: 73.97 kB / 1.898 GB, free: 47.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005076/6.747, allocations: 1.624 MB / 1.899 GB, free: 46.34 MB / 490.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.01516/6.763, allocations: 6.684 MB / 1.906 GB, free: 39.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/6.765, allocations: 0.6411 MB / 1.907 GB, free: 38.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00038/6.765, allocations: 249.3 kB / 1.907 GB, free: 38.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/6.765, allocations: 43 kB / 1.907 GB, free: 38.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=53): time 3.667e-06/6.765, allocations: 0 / 1.907 GB, free: 38.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=65): time 0.01657/6.782, allocations: 3.773 MB / 1.911 GB, free: 34.36 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/6.782, allocations: 111.4 kB / 1.911 GB, free: 34.23 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/6.783, allocations: 0.8597 MB / 1.911 GB, free: 33.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/6.784, allocations: 49.7 kB / 1.912 GB, free: 33.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004067/6.784, allocations: 0.5737 MB / 1.912 GB, free: 32.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002869/6.784, allocations: 244.6 kB / 1.912 GB, free: 32.49 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/6.785, allocations: 20 kB / 1.912 GB, free: 32.47 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/6.785, allocations: 358.8 kB / 1.913 GB, free: 32.11 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/6.786, allocations: 0.5296 MB / 1.913 GB, free: 31.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/6.788, allocations: 0.9132 MB / 1.914 GB, free: 30.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/6.789, allocations: 0.6512 MB / 1.915 GB, free: 29.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/6.789, allocations: 4 kB / 1.915 GB, free: 29.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004637/6.794, allocations: 1.856 MB / 1.917 GB, free: 27.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/6.794, allocations: 8 kB / 1.917 GB, free: 27.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/6.794, allocations: 12 kB / 1.917 GB, free: 27.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008034/6.802, allocations: 1.292 MB / 1.918 GB, free: 26.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/6.803, allocations: 187.7 kB / 1.918 GB, free: 26.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003877/6.807, allocations: 1.728 MB / 1.92 GB, free: 24.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/6.81, allocations: 119.7 kB / 1.92 GB, free: 24.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002618/6.81, allocations: 99.97 kB / 1.92 GB, free: 24.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (98): * 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): 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 {9 28} Notification: Performance of prepare postOptimizeDAE: time 0.00116/6.811, allocations: 397.4 kB / 1.92 GB, free: 24.11 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003719/6.811, allocations: 98.88 kB / 1.92 GB, free: 24.01 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003524/6.815, allocations: 1.253 MB / 1.922 GB, free: 22.74 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/6.815, allocations: 8 kB / 1.922 GB, free: 22.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/6.815, allocations: 7.891 kB / 1.922 GB, free: 22.73 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/6.815, allocations: 3.984 kB / 1.922 GB, free: 22.72 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006239/6.821, allocations: 2.484 MB / 1.924 GB, free: 20.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/6.821, allocations: 4 kB / 1.924 GB, free: 20.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003271/6.825, allocations: 315.6 kB / 1.924 GB, free: 19.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000316/6.825, allocations: 68.73 kB / 1.924 GB, free: 19.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/6.825, allocations: 39.97 kB / 1.924 GB, free: 19.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00269/6.828, allocations: 2.843 MB / 1.927 GB, free: 16.64 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/6.828, allocations: 0 / 1.927 GB, free: 16.64 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004033/6.832, allocations: 1.699 MB / 1.929 GB, free: 14.92 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/6.833, allocations: 307.8 kB / 1.929 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003116/6.833, allocations: 27.98 kB / 1.929 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/6.835, allocations: 75.78 kB / 1.929 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002643/6.835, allocations: 56.53 kB / 1.929 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002074/6.836, allocations: 55.95 kB / 1.929 GB, free: 14.39 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001476/6.837, allocations: 0.6747 MB / 1.93 GB, free: 13.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.82e-07/6.837, allocations: 0 / 1.93 GB, free: 13.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003648/6.841, allocations: 0.5935 MB / 1.931 GB, free: 13.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],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 (71): * Single equations (assignments): 69 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009009/6.85, allocations: 3.695 MB / 1.934 GB, free: 9.438 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003976/6.854, allocations: 1.397 MB / 1.936 GB, free: 8.043 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/6.854, allocations: 0.75 kB / 1.936 GB, free: 8.043 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002342/6.856, allocations: 0.7724 MB / 1.936 GB, free: 7.262 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005033/6.861, allocations: 0.6008 MB / 1.937 GB, free: 6.664 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02484/6.886, allocations: 16.51 MB / 1.953 GB, free: 5.738 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/6.888, allocations: 1.191 MB / 1.954 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001582/6.889, allocations: 471.3 kB / 1.955 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of SimCode: time 1.112e-06/6.889, allocations: 0 / 1.955 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.276/11.17, allocations: 40.18 MB / 1.994 GB, free: 81.25 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat