Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.621/2.621, allocations: 235.1 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.533e-05/2.534e-05, allocations: 0 / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4252/0.4253, allocations: 54.85 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1592/0.5845, allocations: 78.9 MB / 433.3 MB, free: 204 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.5848, allocations: 59.98 kB / 433.4 MB, free: 144 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008374/0.5932, allocations: 1.429 MB / 434.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.991e-06/0.5933, allocations: 0 / 434.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.5933, allocations: 3.938 kB / 434.8 MB, free: 14.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004682/0.5938, allocations: 344.9 kB / 435.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.739e-05/0.5939, allocations: 8.031 kB / 435.2 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.78e-05/0.594, allocations: 7.938 kB / 435.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.5942, allocations: 163.1 kB / 435.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.5942, allocations: 0 / 435.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.5943, allocations: 0 / 435.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.032e-05/0.5943, allocations: 4 kB / 435.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.745e-05/0.5944, allocations: 25.7 kB / 435.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.5945, allocations: 3.938 kB / 435.4 MB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.5945, allocations: 0 / 435.4 MB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.5946, allocations: 7.953 kB / 435.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002293/0.5948, allocations: 130.2 kB / 435.5 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.108e-05/0.5949, allocations: 18.58 kB / 435.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.043e-05/0.595, allocations: 4.859 kB / 435.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.595, allocations: 4.094 kB / 435.5 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.208e-05/0.5951, allocations: 56.27 kB / 435.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.044e-06/0.5951, allocations: 3.938 kB / 435.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002221/0.5953, allocations: 37.69 kB / 435.6 MB, free: 13.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.5954, allocations: 89.08 kB / 435.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.758e-05/0.5955, allocations: 88.91 kB / 435.8 MB, free: 13.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.5955, allocations: 25.7 kB / 435.8 MB, free: 13.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.789e-05/0.5955, allocations: 80.14 kB / 435.9 MB, free: 13.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.5956, allocations: 0 / 435.9 MB, free: 13.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-06/0.5956, allocations: 0 / 435.9 MB, free: 13.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.5957, allocations: 314.8 kB / 436.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.286e-05/0.5958, allocations: 4 kB / 436.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.5958, allocations: 0 / 436.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.189e-05/0.5959, allocations: 4.062 kB / 436.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5959, allocations: 0 / 436.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001133/0.596, allocations: 37.69 kB / 436.2 MB, free: 13.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.5961, allocations: 33.7 kB / 436.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.5961, allocations: 0 / 436.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.5961, allocations: 0 / 436.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.5961, allocations: 0 / 436.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.5961, allocations: 3.984 kB / 436.3 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.985e-05/0.5962, allocations: 0 / 436.3 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.5962, allocations: 0 / 436.3 MB, free: 13.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.5963, allocations: 142.7 kB / 436.4 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001145/0.5964, allocations: 41.62 kB / 436.5 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.5964, allocations: 4 kB / 436.5 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.44e-05/0.5965, allocations: 7.703 kB / 436.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.5965, allocations: 0 / 436.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5965, allocations: 3.938 kB / 436.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5965, allocations: 4 kB / 436.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.5966, allocations: 126.2 kB / 436.6 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.5967, allocations: 0 / 436.6 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-06/0.5967, allocations: 8.031 kB / 436.6 MB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.5967, allocations: 3.984 kB / 436.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.5967, allocations: 3.984 kB / 436.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.5967, allocations: 0 / 436.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5967, allocations: 0 / 436.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.5969, allocations: 73.02 kB / 436.7 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.597, allocations: 81.05 kB / 436.8 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.597, allocations: 4.031 kB / 436.8 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.706e-05/0.597, allocations: 3.984 kB / 436.8 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.814e-05/0.5971, allocations: 0 / 436.8 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.5971, allocations: 4 kB / 436.8 MB, free: 12.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.771e-05/0.5971, allocations: 75.28 kB / 436.9 MB, free: 12.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5971, allocations: 0 / 436.9 MB, free: 12.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000356/0.5975, allocations: 24 kB / 436.9 MB, free: 12.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009633/0.5985, allocations: 0.7124 MB / 437.6 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.992e-05/0.5986, allocations: 59.34 kB / 437.7 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5986, allocations: 0 / 437.7 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.133e-05/0.5987, allocations: 59.39 kB / 437.7 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.5988, allocations: 128 / 437.7 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003562/0.5992, allocations: 92.41 kB / 437.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.5995, allocations: 0.6729 MB / 438.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.432e-06/0.5995, allocations: 0 / 438.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.5995, allocations: 11.44 kB / 438.5 MB, free: 10.65 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5996, allocations: 0 / 438.5 MB, free: 10.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03799/0.6376, allocations: 0.8741 MB / 439.4 MB, free: 9.777 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004405/0.6381, allocations: 163.7 kB / 439.5 MB, free: 9.586 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.734/3.372, allocations: 7.938 kB / 439.5 MB, free: 9.578 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat