Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.144e-05/3.136e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.0829, allocations: 38.78 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4447/0.5277, allocations: 133.9 MB / 400.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004449/0.5322, allocations: 2.223 MB / 403.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000356/0.5326, allocations: 4 kB / 403.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006934/0.5333, allocations: 167.2 kB / 403.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006494/0.534, allocations: 211.3 kB / 403.5 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.5355, allocations: 379 kB / 403.8 MB, free: 9.793 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008697/0.5364, allocations: 440 kB / 404.3 MB, free: 9.359 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000349/0.5368, allocations: 168.6 kB / 404.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.5391, allocations: 0.7601 MB / 405.2 MB, free: 8.43 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004899/0.5396, allocations: 227.4 kB / 405.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.541, allocations: 379.6 kB / 405.8 MB, free: 7.836 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.5413, allocations: 32 kB / 405.8 MB, free: 7.805 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004656/0.5418, allocations: 363.2 kB / 406.2 MB, free: 7.449 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003791/0.5422, allocations: 104 kB / 406.3 MB, free: 7.348 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002001/0.5442, allocations: 1.206 MB / 407.5 MB, free: 6.145 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.5442, allocations: 0 / 407.5 MB, free: 6.145 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5442, allocations: 0 / 407.5 MB, free: 6.145 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.983e-05/0.5442, allocations: 0 / 407.5 MB, free: 6.145 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002092/0.5463, allocations: 0.8579 MB / 408.3 MB, free: 5.238 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.5464, allocations: 8.031 kB / 408.3 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/0.5476, allocations: 175 kB / 408.5 MB, free: 5.059 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.5488, allocations: 469 kB / 409 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.5489, allocations: 54.12 kB / 409 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.549, allocations: 64 kB / 409.1 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002546/0.5516, allocations: 0.9435 MB / 410 MB, free: 3.492 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.151e-05/0.5517, allocations: 7.844 kB / 410 MB, free: 3.484 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.5519, allocations: 31.98 kB / 410.1 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.159e-05/0.552, allocations: 45.98 kB / 410.1 MB, free: 3.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.5556, allocations: 0.8706 MB / 411 MB, free: 2.535 MB / 330.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.008435/0.5641, allocations: 3.039 MB / 414 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.5657, allocations: 0.6468 MB / 414.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.412e-05/0.5658, allocations: 16.56 kB / 414.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.434e-05/0.5658, allocations: 51.8 kB / 414.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.928e-06/0.5658, allocations: 0 / 414.7 MB, free: 14.57 MB / 346.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.02699/0.5928, allocations: 6.145 MB / 420.9 MB, free: 8.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.5929, allocations: 60.06 kB / 420.9 MB, free: 7.961 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.594, allocations: 0.497 MB / 421.4 MB, free: 7.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.5942, allocations: 45.7 kB / 421.5 MB, free: 7.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.5945, allocations: 315.1 kB / 421.8 MB, free: 7.098 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003176/0.5948, allocations: 252.4 kB / 422 MB, free: 6.848 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.136e-05/0.5949, allocations: 12 kB / 422 MB, free: 6.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.5951, allocations: 342.8 kB / 422.4 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.5963, allocations: 441.7 kB / 422.8 MB, free: 6.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.5975, allocations: 0.5154 MB / 423.3 MB, free: 5.527 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.5988, allocations: 0.4949 MB / 423.8 MB, free: 5.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5989, allocations: 4 kB / 423.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00354/0.6024, allocations: 1.308 MB / 425.1 MB, free: 3.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.6025, allocations: 8.141 kB / 425.1 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.6025, allocations: 4 kB / 425.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001047/0.6036, allocations: 338.6 kB / 425.5 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/0.6055, allocations: 179.8 kB / 425.6 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/0.6176, allocations: 10.29 MB / 435.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.619, allocations: 75.91 kB / 436 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.6192, allocations: 43.98 kB / 436.1 MB, free: 7.785 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000767/0.62, allocations: 281.6 kB / 436.3 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002779/0.6203, allocations: 63.3 kB / 436.4 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003848/0.6242, allocations: 1.283 MB / 437.7 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.6242, allocations: 8 kB / 437.7 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.6243, allocations: 4 kB / 437.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003293/0.6276, allocations: 1.602 MB / 439.3 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00608/0.6337, allocations: 2.275 MB / 441.6 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.6338, allocations: 4 kB / 441.6 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/0.6362, allocations: 219.8 kB / 441.8 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003574/0.6366, allocations: 64.78 kB / 441.8 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001903/0.6368, allocations: 39.97 kB / 441.9 MB, free: 1.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.6387, allocations: 1.455 MB / 443.3 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.6387, allocations: 4.031 kB / 443.3 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2742/0.9129, allocations: 1.617 MB / 445 MB, free: 139.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003591/0.9133, allocations: 149.8 kB / 445.1 MB, free: 139.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.9136, allocations: 27.78 kB / 445.1 MB, free: 139.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.9151, allocations: 73.62 kB / 445.2 MB, free: 139.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.9153, allocations: 62.98 kB / 445.3 MB, free: 139.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/0.9155, allocations: 59.12 kB / 445.3 MB, free: 139.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007684/0.9163, allocations: 403.3 kB / 445.7 MB, free: 139.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.9163, allocations: 2.516 kB / 445.7 MB, free: 139.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001807/0.9181, allocations: 343.3 kB / 446.1 MB, free: 139.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00248/0.9206, allocations: 443.5 kB / 446.5 MB, free: 139.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004219/0.9249, allocations: 1.863 MB / 448.3 MB, free: 138.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.9249, allocations: 1.188 kB / 448.4 MB, free: 138.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001745/0.9267, allocations: 0.6858 MB / 449 MB, free: 138.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00454/0.9313, allocations: 479.6 kB / 449.5 MB, free: 138.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007048/0.9384, allocations: 2.592 MB / 452.1 MB, free: 136.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008219/0.9393, allocations: 0.9914 MB / 453.1 MB, free: 136.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006888/0.94, allocations: 91.17 kB / 453.2 MB, free: 136.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.173e-06/0.94, allocations: 1.219 kB / 453.2 MB, free: 136.1 MB / 362.7 MB Notification: Performance of Templates: time 0.04738/0.9874, allocations: 25.85 MB / 479 MB, free: 115.6 MB / 362.7 MB