Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.425/2.425, allocations: 235.1 MB / 242.3 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.177e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3588, allocations: 54.86 MB / 354.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.5/2.859, allocations: 0.8206 GB / 1.167 GB, free: 41.46 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/2.86, allocations: 92.25 kB / 1.167 GB, free: 41.41 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.173/7.033, allocations: 0.7011 GB / 1.868 GB, free: 75.47 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.324e-06/7.033, allocations: 0 / 1.868 GB, free: 75.47 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001039/7.033, allocations: 30.62 kB / 1.868 GB, free: 75.46 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.007167/7.04, allocations: 1.558 MB / 1.87 GB, free: 74.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/7.04, allocations: 11.59 kB / 1.87 GB, free: 74.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002988/7.043, allocations: 308.3 kB / 1.87 GB, free: 74.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003221/7.046, allocations: 0.833 MB / 1.871 GB, free: 74.33 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/7.047, allocations: 106.3 kB / 1.871 GB, free: 74.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003993/7.047, allocations: 62.22 kB / 1.871 GB, free: 74.26 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004116/7.051, allocations: 1.439 MB / 1.872 GB, free: 74.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004112/7.055, allocations: 1.604 MB / 1.874 GB, free: 74.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.129e-05/7.055, allocations: 7.031 kB / 1.874 GB, free: 74.03 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/7.056, allocations: 2.656 kB / 1.874 GB, free: 74.03 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/7.056, allocations: 77.41 kB / 1.874 GB, free: 74.03 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.01519/7.071, allocations: 6.568 MB / 1.88 GB, free: 70.56 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/7.073, allocations: 0.6188 MB / 1.881 GB, free: 70.53 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007579/7.074, allocations: 365.6 kB / 1.881 GB, free: 70.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003999/7.074, allocations: 249.2 kB / 1.881 GB, free: 70.32 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/7.074, allocations: 51.55 kB / 1.882 GB, free: 70.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=53): time 3.636e-06/7.074, allocations: 0 / 1.882 GB, free: 70.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=65): time 0.01654/7.091, allocations: 3.28 MB / 1.885 GB, free: 69.42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/7.091, allocations: 112.2 kB / 1.885 GB, free: 69.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/7.092, allocations: 0.5916 MB / 1.885 GB, free: 69.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/7.092, allocations: 27.61 kB / 1.885 GB, free: 69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004213/7.093, allocations: 0.5799 MB / 1.886 GB, free: 68.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003072/7.093, allocations: 237.9 kB / 1.886 GB, free: 68.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/7.093, allocations: 6.25 kB / 1.886 GB, free: 68.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/7.093, allocations: 382.8 kB / 1.887 GB, free: 68.02 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/7.095, allocations: 0.5178 MB / 1.887 GB, free: 67.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/7.096, allocations: 0.8827 MB / 1.888 GB, free: 67.16 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/7.098, allocations: 0.649 MB / 1.889 GB, free: 66.93 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-05/7.098, allocations: 3.562 kB / 1.889 GB, free: 66.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005168/7.103, allocations: 1.775 MB / 1.89 GB, free: 66.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/7.103, allocations: 11.44 kB / 1.89 GB, free: 66.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/7.103, allocations: 17.27 kB / 1.89 GB, free: 66.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00806/7.111, allocations: 1.174 MB / 1.892 GB, free: 66.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/7.113, allocations: 189.8 kB / 1.892 GB, free: 66.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003783/7.117, allocations: 1.77 MB / 1.893 GB, free: 64.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/7.119, allocations: 92.33 kB / 1.893 GB, free: 64.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002494/7.119, allocations: 91.88 kB / 1.894 GB, free: 64.61 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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 {10 27} Notification: Performance of prepare postOptimizeDAE: time 0.0004673/7.12, allocations: 144.5 kB / 1.894 GB, free: 64.46 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002774/7.123, allocations: 1.058 MB / 1.895 GB, free: 63.53 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/7.123, allocations: 83.06 kB / 1.895 GB, free: 63.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00339/7.126, allocations: 1.213 MB / 1.896 GB, free: 62.42 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/7.126, allocations: 7.953 kB / 1.896 GB, free: 62.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/7.126, allocations: 4 kB / 1.896 GB, free: 62.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/7.127, allocations: 3 kB / 1.896 GB, free: 62.41 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006271/7.133, allocations: 2.343 MB / 1.898 GB, free: 60.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/7.133, allocations: 0 / 1.898 GB, free: 60.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003964/7.137, allocations: 319.4 kB / 1.899 GB, free: 60.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003211/7.137, allocations: 78.36 kB / 1.899 GB, free: 60.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/7.137, allocations: 23.17 kB / 1.899 GB, free: 60.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/7.14, allocations: 2.768 MB / 1.901 GB, free: 57.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/7.14, allocations: 0 / 1.901 GB, free: 57.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003868/7.144, allocations: 1.652 MB / 1.903 GB, free: 55.75 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/7.145, allocations: 283 kB / 1.903 GB, free: 55.49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003485/7.146, allocations: 15.8 kB / 1.903 GB, free: 55.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/7.147, allocations: 61.64 kB / 1.903 GB, free: 55.44 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/7.148, allocations: 57.23 kB / 1.903 GB, free: 55.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/7.148, allocations: 57 kB / 1.903 GB, free: 55.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008577/7.149, allocations: 451.7 kB / 1.904 GB, free: 54.96 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.91e-07/7.149, allocations: 0 / 1.904 GB, free: 54.96 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003172/7.152, allocations: 0.5392 MB / 1.904 GB, free: 54.44 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.009128/7.161, allocations: 3.84 MB / 1.908 GB, free: 51.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003823/7.165, allocations: 1.346 MB / 1.91 GB, free: 50.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/7.165, allocations: 3.906 kB / 1.91 GB, free: 50.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002612/7.168, allocations: 0.7768 MB / 1.91 GB, free: 49.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003947/7.172, allocations: 386.7 kB / 1.911 GB, free: 49.09 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008709/7.18, allocations: 2.535 MB / 1.913 GB, free: 47.12 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/7.182, allocations: 1.197 MB / 1.914 GB, free: 46.08 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003128/7.185, allocations: 425.7 kB / 1.915 GB, free: 45.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/7.186, allocations: 435 kB / 1.915 GB, free: 45.37 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/7.186, allocations: 0 / 1.915 GB, free: 45.37 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1243/7.31, allocations: 40.83 MB / 1.955 GB, free: 4.934 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002459/7.311, allocations: 218.6 kB / 1.955 GB, free: 4.645 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.687/12, allocations: 0 / 1.955 GB, free: 4.645 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat