Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.402/2.402, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.569e-05/4.575e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1434, allocations: 61.88 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.694/1.837, allocations: 462.4 MB / 0.8523 GB, free: 155.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/1.838, allocations: 75 kB / 0.8524 GB, free: 155.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.1024/1.94, allocations: 30.41 MB / 0.8821 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.394e-06/1.94, allocations: 0 / 0.8821 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.44e-05/1.94, allocations: 0 / 0.8821 GB, free: 139.9 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004788/1.941, allocations: 402 kB / 0.8824 GB, free: 139.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/1.941, allocations: 12.03 kB / 0.8825 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.36e-05/1.941, allocations: 37.73 kB / 0.8825 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002734/1.944, allocations: 185.9 kB / 0.8827 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/1.944, allocations: 203.5 kB / 0.8829 GB, free: 139 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/1.944, allocations: 4 kB / 0.8829 GB, free: 139 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/1.944, allocations: 7 kB / 0.8829 GB, free: 139 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/1.944, allocations: 211.8 kB / 0.8831 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/1.944, allocations: 0 / 0.8831 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/1.945, allocations: 0 / 0.8831 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/1.945, allocations: 4 kB / 0.8831 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/1.945, allocations: 154 kB / 0.8832 GB, free: 138.7 MB / 0.5261 GB 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.001239/1.946, allocations: 0.573 MB / 0.8838 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/1.947, allocations: 123.4 kB / 0.8839 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/1.947, allocations: 64.53 kB / 0.884 GB, free: 138 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/1.947, allocations: 8.25 kB / 0.884 GB, free: 138 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/1.947, allocations: 33.88 kB / 0.884 GB, free: 138 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=14): time 3.226e-06/1.947, allocations: 3.984 kB / 0.884 GB, free: 138 MB / 0.5261 GB 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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.007527/1.954, allocations: 1.093 MB / 0.8851 GB, free: 137 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.661e-05/1.954, allocations: 59.36 kB / 0.8851 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.963e-05/1.955, allocations: 103.4 kB / 0.8852 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/1.955, allocations: 37.33 kB / 0.8853 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.628e-05/1.955, allocations: 86.11 kB / 0.8854 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.795e-05/1.955, allocations: 68.25 kB / 0.8854 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/1.955, allocations: 8.375 kB / 0.8854 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.308e-05/1.955, allocations: 319.8 kB / 0.8857 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/1.955, allocations: 61.25 kB / 0.8858 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/1.955, allocations: 102.5 kB / 0.8859 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/1.955, allocations: 76.59 kB / 0.886 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/1.955, allocations: 4 kB / 0.886 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005891/1.956, allocations: 242.9 kB / 0.8862 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/1.956, allocations: 4 kB / 0.8862 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.956, allocations: 3.938 kB / 0.8862 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000226/1.956, allocations: 52.05 kB / 0.8863 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005342/1.957, allocations: 58.27 kB / 0.8863 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003931/1.957, allocations: 0.5693 MB / 0.8869 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/1.958, allocations: 14.2 kB / 0.8869 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.676e-05/1.958, allocations: 22.31 kB / 0.8869 GB, free: 135.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.958, allocations: 116.5 kB / 0.887 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.759e-05/1.958, allocations: 15.86 kB / 0.887 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/1.959, allocations: 331.8 kB / 0.8873 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/1.959, allocations: 4 kB / 0.8873 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/1.959, allocations: 0 / 0.8873 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/1.959, allocations: 11.86 kB / 0.8874 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/1.96, allocations: 0.6099 MB / 0.888 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/1.96, allocations: 0 / 0.888 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/1.961, allocations: 55.95 kB / 0.888 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.494e-05/1.961, allocations: 25.27 kB / 0.888 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/1.961, allocations: 14.36 kB / 0.888 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008025/1.962, allocations: 1.266 MB / 0.8893 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.962, allocations: 0 / 0.8893 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007981/1.963, allocations: 457.5 kB / 0.8897 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/1.963, allocations: 85.05 kB / 0.8898 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.867e-05/1.963, allocations: 8.188 kB / 0.8898 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/1.963, allocations: 10.36 kB / 0.8898 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/1.963, allocations: 22.8 kB / 0.8898 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.765e-05/1.963, allocations: 27.23 kB / 0.8899 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.38e-05/1.963, allocations: 90.89 kB / 0.8899 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/1.963, allocations: 0 / 0.8899 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0007085/1.964, allocations: 119.9 kB / 0.8901 GB, free: 132 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.001876/1.966, allocations: 1.623 MB / 0.8916 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000574/1.966, allocations: 189.3 kB / 0.8918 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/1.966, allocations: 0 / 0.8918 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003615/1.967, allocations: 210.6 kB / 0.892 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005419/1.967, allocations: 43.53 kB / 0.8921 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/1.968, allocations: 389.3 kB / 0.8924 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/1.969, allocations: 0.7165 MB / 0.8931 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006958/1.969, allocations: 77.41 kB / 0.8932 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003518/1.97, allocations: 63.97 kB / 0.8933 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of SimCode: time 8.51e-07/1.97, allocations: 0 / 0.8933 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04094/2.011, allocations: 15.75 MB / 0.9087 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002534/2.011, allocations: 175.7 kB / 0.9088 GB, free: 113 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/5.115, allocations: 3.938 kB / 0.9088 GB, free: 113 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat does not exist to compare? outputFormat=mat