Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.376/2.376, allocations: 235.1 MB / 242.2 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.581e-05, allocations: 0 / 299.5 MB, free: 6.363 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4035/0.4036, allocations: 54.86 MB / 354.3 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1593/0.563, allocations: 78.89 MB / 433.2 MB, free: 1.027 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.5633, allocations: 59.97 kB / 433.3 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005451/0.5687, allocations: 1.421 MB / 434.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5688, allocations: 0 / 434.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.5688, allocations: 0 / 434.7 MB, free: 15.54 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.0003369/0.5692, allocations: 353.8 kB / 435.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.5692, allocations: 8.031 kB / 435.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.5693, allocations: 11.95 kB / 435.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.5694, allocations: 159.1 kB / 435.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.5694, allocations: 0 / 435.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.5694, allocations: 7.875 kB / 435.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.062e-05/0.5695, allocations: 4 kB / 435.2 MB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.909e-05/0.5696, allocations: 33.69 kB / 435.3 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.5696, allocations: 0 / 435.3 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.5696, allocations: 0 / 435.3 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.5696, allocations: 3.953 kB / 435.3 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001312/0.5698, allocations: 122.2 kB / 435.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.953e-05/0.5698, allocations: 18.61 kB / 435.4 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.499e-05/0.5698, allocations: 4.859 kB / 435.4 MB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.876e-06/0.5699, allocations: 8 kB / 435.4 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.5699, allocations: 60.2 kB / 435.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.774e-06/0.5699, allocations: 0 / 435.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002245/0.5702, allocations: 37.75 kB / 435.5 MB, free: 14.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.5702, allocations: 77.11 kB / 435.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.616e-05/0.5703, allocations: 88.91 kB / 435.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.5703, allocations: 25.7 kB / 435.7 MB, free: 14.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.198e-05/0.5704, allocations: 84.17 kB / 435.8 MB, free: 14.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.5704, allocations: 4 kB / 435.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-06/0.5704, allocations: 0 / 435.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.5706, allocations: 318.8 kB / 436.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.017e-06/0.5706, allocations: 0 / 436.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.172e-06/0.5706, allocations: 0 / 436.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.924e-05/0.5706, allocations: 7.984 kB / 436.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5707, allocations: 0 / 436.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001056/0.5708, allocations: 37.64 kB / 436.2 MB, free: 13.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.5708, allocations: 41.72 kB / 436.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.5708, allocations: 0 / 436.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.5709, allocations: 0 / 436.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.5709, allocations: 0 / 436.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.5709, allocations: 0 / 436.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.739e-05/0.5709, allocations: 4 kB / 436.2 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.5709, allocations: 0 / 436.2 MB, free: 13.83 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.0001039/0.5711, allocations: 130.6 kB / 436.3 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001009/0.5712, allocations: 45.69 kB / 436.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-06/0.5712, allocations: 4.031 kB / 436.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.566e-05/0.5712, allocations: 11.69 kB / 436.4 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.5712, allocations: 0 / 436.4 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.5712, allocations: 0 / 436.4 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.5713, allocations: 0 / 436.4 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.5714, allocations: 134.2 kB / 436.5 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.5714, allocations: 0 / 436.5 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-06/0.5714, allocations: 0 / 436.5 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.5714, allocations: 7.875 kB / 436.5 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.5714, allocations: 0 / 436.5 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.5714, allocations: 0 / 436.5 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.5714, allocations: 8 kB / 436.5 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.5716, allocations: 69.06 kB / 436.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.5716, allocations: 77.11 kB / 436.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.5717, allocations: 8 kB / 436.7 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.5717, allocations: 0 / 436.7 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.812e-05/0.5717, allocations: 0 / 436.7 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.5717, allocations: 0 / 436.7 MB, free: 13.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.781e-05/0.5718, allocations: 79.31 kB / 436.8 MB, free: 13.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5718, allocations: 0 / 436.8 MB, free: 13.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003256/0.5721, allocations: 19.98 kB / 436.8 MB, free: 13.16 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.0008922/0.573, allocations: 0.698 MB / 437.5 MB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.5732, allocations: 59.41 kB / 437.5 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5732, allocations: 0 / 437.5 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.245e-05/0.5732, allocations: 55.41 kB / 437.6 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001078/0.5733, allocations: 3.125 kB / 437.6 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003067/0.5737, allocations: 96.27 kB / 437.7 MB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.574, allocations: 0.669 MB / 438.4 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.935e-06/0.574, allocations: 4.125 kB / 438.4 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.412e-05/0.574, allocations: 11.44 kB / 438.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.574, allocations: 0 / 438.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03666/0.6107, allocations: 0.8846 MB / 439.3 MB, free: 10.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002356/0.611, allocations: 151.3 kB / 439.4 MB, free: 10.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.847, allocations: 0 / 439.4 MB, free: 10.4 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat