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.256/2.256, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.639e-05/3.65e-05, allocations: 7.984 kB / 309.8 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.395, allocations: 54.84 MB / 364.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.358/2.753, allocations: 0.8213 GB / 1.177 GB, free: 90.23 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/2.754, allocations: 96.69 kB / 1.177 GB, free: 90.18 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.78/6.534, allocations: 0.711 GB / 1.888 GB, free: 65.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.983e-06/6.534, allocations: 0 / 1.888 GB, free: 65.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001096/6.534, allocations: 31.39 kB / 1.889 GB, free: 65.71 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.006756/6.54, allocations: 1.563 MB / 1.89 GB, free: 65.03 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/6.541, allocations: 7.469 kB / 1.89 GB, free: 65.03 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006633/6.541, allocations: 174.5 kB / 1.89 GB, free: 64.99 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002486/6.544, allocations: 308 kB / 1.891 GB, free: 64.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003023/6.547, allocations: 0.8221 MB / 1.891 GB, free: 64.69 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/6.547, allocations: 140.5 kB / 1.891 GB, free: 64.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000514/6.548, allocations: 112 kB / 1.892 GB, free: 64.62 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004805/6.552, allocations: 1.741 MB / 1.893 GB, free: 64.41 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.298e-05/6.552, allocations: 12.28 kB / 1.893 GB, free: 64.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003144/6.553, allocations: 49.67 kB / 1.893 GB, free: 64.41 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/6.553, allocations: 77.47 kB / 1.893 GB, free: 64.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004387/6.557, allocations: 1.593 MB / 1.895 GB, free: 64.4 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01505/6.572, allocations: 6.678 MB / 1.901 GB, free: 60.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/6.575, allocations: 0.6235 MB / 1.902 GB, free: 60.95 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/6.576, allocations: 365.9 kB / 1.902 GB, free: 60.94 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004558/6.576, allocations: 243.7 kB / 1.903 GB, free: 60.74 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/6.576, allocations: 44.45 kB / 1.903 GB, free: 60.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=53): time 4.328e-06/6.576, allocations: 3.969 kB / 1.903 GB, free: 60.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=65): time 0.02102/6.597, allocations: 3.482 MB / 1.906 GB, free: 59.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/6.597, allocations: 110.9 kB / 1.906 GB, free: 59.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/6.6, allocations: 0.8596 MB / 1.907 GB, free: 59.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002703/6.6, allocations: 43.17 kB / 1.907 GB, free: 59.69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005368/6.601, allocations: 0.5762 MB / 1.908 GB, free: 59.36 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/6.601, allocations: 246.3 kB / 1.908 GB, free: 59.21 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/6.601, allocations: 19.88 kB / 1.908 GB, free: 59.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/6.601, allocations: 361.5 kB / 1.908 GB, free: 58.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/6.603, allocations: 0.5149 MB / 1.909 GB, free: 58.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/6.605, allocations: 0.8993 MB / 1.91 GB, free: 58.44 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002217/6.608, allocations: 0.6497 MB / 1.91 GB, free: 58.43 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/6.608, allocations: 3.125 kB / 1.91 GB, free: 58.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.006712/6.614, allocations: 1.829 MB / 1.912 GB, free: 58.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/6.614, allocations: 12.94 kB / 1.912 GB, free: 58.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.478e-05/6.615, allocations: 10.88 kB / 1.912 GB, free: 58.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/6.625, allocations: 1.294 MB / 1.913 GB, free: 58.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/6.627, allocations: 183.9 kB / 1.914 GB, free: 58.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004973/6.632, allocations: 1.713 MB / 1.915 GB, free: 57.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/6.635, allocations: 119.6 kB / 1.915 GB, free: 57.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/6.635, allocations: 91.02 kB / 1.915 GB, free: 57.73 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 () * 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.0005045/6.636, allocations: 174.6 kB / 1.916 GB, free: 57.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004115/6.636, allocations: 103.8 kB / 1.916 GB, free: 57.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004601/6.641, allocations: 1.237 MB / 1.917 GB, free: 57.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/6.641, allocations: 7.594 kB / 1.917 GB, free: 57.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/6.641, allocations: 7.328 kB / 1.917 GB, free: 57.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/6.641, allocations: 9.312 kB / 1.917 GB, free: 57.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007384/6.648, allocations: 2.474 MB / 1.919 GB, free: 57.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/6.648, allocations: 3.844 kB / 1.919 GB, free: 57.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003375/6.652, allocations: 307.8 kB / 1.92 GB, free: 57.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002731/6.652, allocations: 73.98 kB / 1.92 GB, free: 57.07 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/6.652, allocations: 39.19 kB / 1.92 GB, free: 57.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/6.655, allocations: 2.832 MB / 1.922 GB, free: 54.49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/6.655, allocations: 0 / 1.922 GB, free: 54.49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003695/6.658, allocations: 1.666 MB / 1.924 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009422/6.659, allocations: 310 kB / 1.924 GB, free: 54.11 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002869/6.66, allocations: 25.97 kB / 1.924 GB, free: 54.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/6.661, allocations: 72.25 kB / 1.924 GB, free: 54.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/6.662, allocations: 55.69 kB / 1.925 GB, free: 54.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/6.662, allocations: 59.25 kB / 1.925 GB, free: 54.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001264/6.663, allocations: 0.6611 MB / 1.925 GB, free: 54 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.71e-07/6.663, allocations: 0 / 1.925 GB, free: 54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002822/6.666, allocations: 0.6025 MB / 1.926 GB, free: 53.95 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 () * 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.008124/6.674, allocations: 3.684 MB / 1.929 GB, free: 52.91 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003715/6.678, allocations: 1.378 MB / 1.931 GB, free: 52.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/6.678, allocations: 4.469 kB / 1.931 GB, free: 52.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002177/6.68, allocations: 0.7566 MB / 1.932 GB, free: 52.72 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/6.685, allocations: 0.593 MB / 1.932 GB, free: 52.69 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007853/6.693, allocations: 2.741 MB / 1.935 GB, free: 51.94 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009158/6.694, allocations: 1.192 MB / 1.936 GB, free: 51.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/6.695, allocations: 470.6 kB / 1.936 GB, free: 50.88 MB / 490.7 MB Notification: Performance of SimCode: time 1.983e-06/6.695, allocations: 3.875 kB / 1.936 GB, free: 50.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.63/10.33, allocations: 40.04 MB / 1.976 GB, free: 29.49 MB / 490.7 MB 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