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.IdealGases.SimpleNaturalGas.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.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.06/2.06, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004513, allocations: 8 kB / 282.7 MB, free: 9.539 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3592, allocations: 48.71 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.209/2.568, allocations: 0.8071 GB / 1.131 GB, free: 9.617 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/2.568, allocations: 100.8 kB / 1.131 GB, free: 9.559 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.004/6.572, allocations: 0.7071 GB / 1.838 GB, free: 58.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.113e-06/6.572, allocations: 0 / 1.838 GB, free: 58.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.84e-05/6.572, allocations: 25.7 kB / 1.838 GB, free: 58.04 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.007496/6.58, allocations: 1.667 MB / 1.84 GB, free: 57.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/6.58, allocations: 11.31 kB / 1.84 GB, free: 57.56 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007722/6.581, allocations: 181.5 kB / 1.84 GB, free: 57.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00257/6.583, allocations: 298 kB / 1.84 GB, free: 57.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003062/6.586, allocations: 0.8213 MB / 1.841 GB, free: 57.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/6.587, allocations: 148 kB / 1.841 GB, free: 57.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005409/6.587, allocations: 108.9 kB / 1.841 GB, free: 57.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005108/6.592, allocations: 1.772 MB / 1.843 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.294e-05/6.592, allocations: 7.625 kB / 1.843 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003287/6.593, allocations: 46.25 kB / 1.843 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001821/6.593, allocations: 80.61 kB / 1.843 GB, free: 56.94 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004746/6.598, allocations: 1.624 MB / 1.844 GB, free: 56.94 MB / 442.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.01387/6.612, allocations: 5.894 MB / 1.85 GB, free: 54.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/6.613, allocations: 0.6377 MB / 1.851 GB, free: 54.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000148/6.614, allocations: 27.14 kB / 1.851 GB, free: 54.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/6.614, allocations: 38.56 kB / 1.851 GB, free: 54.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=53): time 3.907e-06/6.614, allocations: 0 / 1.851 GB, free: 54.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.01687/6.631, allocations: 3.722 MB / 1.855 GB, free: 53.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/6.631, allocations: 107.2 kB / 1.855 GB, free: 53.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/6.632, allocations: 0.8566 MB / 1.856 GB, free: 53.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003031/6.633, allocations: 42.39 kB / 1.856 GB, free: 53.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004635/6.633, allocations: 0.5767 MB / 1.856 GB, free: 53.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/6.634, allocations: 241.6 kB / 1.856 GB, free: 52.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/6.634, allocations: 22.44 kB / 1.856 GB, free: 52.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/6.634, allocations: 358 kB / 1.857 GB, free: 52.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/6.635, allocations: 0.5189 MB / 1.857 GB, free: 52.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/6.637, allocations: 0.8989 MB / 1.858 GB, free: 52.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/6.639, allocations: 0.6547 MB / 1.859 GB, free: 52.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.747e-05/6.639, allocations: 3.938 kB / 1.859 GB, free: 52.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00507/6.644, allocations: 1.826 MB / 1.861 GB, free: 52.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/6.644, allocations: 14.05 kB / 1.861 GB, free: 52.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/6.644, allocations: 13.69 kB / 1.861 GB, free: 52.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008084/6.652, allocations: 1.291 MB / 1.862 GB, free: 52.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/6.653, allocations: 172.5 kB / 1.862 GB, free: 52.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003848/6.657, allocations: 1.723 MB / 1.864 GB, free: 51.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/6.659, allocations: 114.1 kB / 1.864 GB, free: 51.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/6.66, allocations: 74.8 kB / 1.864 GB, free: 51.48 MB / 442.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.001051/6.661, allocations: 408.3 kB / 1.864 GB, free: 51.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003629/6.661, allocations: 99.91 kB / 1.864 GB, free: 51.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003488/6.665, allocations: 1.249 MB / 1.866 GB, free: 51.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/6.665, allocations: 12.86 kB / 1.866 GB, free: 51.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/6.665, allocations: 0 / 1.866 GB, free: 51.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/6.665, allocations: 3.844 kB / 1.866 GB, free: 51.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006207/6.671, allocations: 2.478 MB / 1.868 GB, free: 50.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/6.671, allocations: 3.625 kB / 1.868 GB, free: 50.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/6.674, allocations: 315.2 kB / 1.868 GB, free: 50.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002975/6.675, allocations: 67.67 kB / 1.868 GB, free: 50.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001819/6.675, allocations: 38.03 kB / 1.868 GB, free: 50.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002709/6.677, allocations: 2.85 MB / 1.871 GB, free: 48.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/6.678, allocations: 0 / 1.871 GB, free: 48.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004024/6.682, allocations: 1.692 MB / 1.873 GB, free: 48.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009851/6.683, allocations: 301 kB / 1.873 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003617/6.683, allocations: 27.47 kB / 1.873 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/6.685, allocations: 76.33 kB / 1.873 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/6.685, allocations: 52.8 kB / 1.873 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/6.685, allocations: 56.83 kB / 1.873 GB, free: 47.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001379/6.687, allocations: 0.6708 MB / 1.874 GB, free: 47.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.52e-07/6.687, allocations: 0 / 1.874 GB, free: 47.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003165/6.69, allocations: 0.601 MB / 1.875 GB, free: 47.79 MB / 442.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.009024/6.699, allocations: 3.728 MB / 1.878 GB, free: 46.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003993/6.703, allocations: 1.373 MB / 1.88 GB, free: 46.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/6.703, allocations: 3.781 kB / 1.88 GB, free: 46.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/6.706, allocations: 0.7697 MB / 1.88 GB, free: 46.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005151/6.711, allocations: 0.5861 MB / 1.881 GB, free: 46.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02355/6.734, allocations: 16.56 MB / 1.897 GB, free: 36.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009398/6.735, allocations: 1.193 MB / 1.898 GB, free: 35.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/6.737, allocations: 438 kB / 1.899 GB, free: 35.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.113e-06/6.737, allocations: 0 / 1.899 GB, free: 35.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.894/10.63, allocations: 39.79 MB / 1.937 GB, free: 33.82 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat