Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.468/2.468, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.082e-05/5.092e-05, allocations: 5.828 kB / 348.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1422, allocations: 61.89 MB / 410.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4929/0.6351, allocations: 85.56 MB / 495.9 MB, free: 2.574 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.6354, allocations: 59.97 kB / 496 MB, free: 2.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005573/0.641, allocations: 1.437 MB / 497.4 MB, free: 1.086 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.6411, allocations: 0 / 497.4 MB, free: 1.086 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.6411, allocations: 0 / 497.4 MB, free: 1.086 MB / 394.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.0003503/0.6415, allocations: 344.3 kB / 497.8 MB, free: 0.6992 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.6415, allocations: 8.031 kB / 497.8 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.6416, allocations: 30.56 kB / 497.8 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.6416, allocations: 0 / 497.8 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.6417, allocations: 167.1 kB / 498 MB, free: 460 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.6417, allocations: 4 kB / 498 MB, free: 456 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.6418, allocations: 7.953 kB / 498 MB, free: 448 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.921e-05/0.6419, allocations: 29.64 kB / 498 MB, free: 412 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.6419, allocations: 0 / 498 MB, free: 412 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-06/0.6419, allocations: 0 / 498 MB, free: 412 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.6419, allocations: 4 kB / 498 MB, free: 408 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.973e-05/0.6419, allocations: 0 / 498 MB, free: 408 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.6421, allocations: 145.7 kB / 498.1 MB, free: 212 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.48e-05/0.6422, allocations: 22.61 kB / 498.2 MB, free: 180 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.6422, allocations: 4.859 kB / 498.2 MB, free: 172 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.6422, allocations: 4 kB / 498.2 MB, free: 168 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/0.6423, allocations: 68.16 kB / 498.2 MB, free: 84 kB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.703e-06/0.6423, allocations: 0 / 498.2 MB, free: 84 kB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001655/0.6425, allocations: 59.47 kB / 498.3 MB, free: 12 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.6425, allocations: 81.09 kB / 498.4 MB, free: 15.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.07e-05/0.6426, allocations: 92.94 kB / 498.5 MB, free: 15.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.6426, allocations: 32.48 kB / 498.5 MB, free: 15.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.406e-05/0.6427, allocations: 84.14 kB / 498.6 MB, free: 15.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.6427, allocations: 0 / 498.6 MB, free: 15.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.6427, allocations: 0 / 498.6 MB, free: 15.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.6428, allocations: 314.8 kB / 498.9 MB, free: 15.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.6429, allocations: 0 / 498.9 MB, free: 15.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.307e-06/0.6429, allocations: 4 kB / 498.9 MB, free: 15.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.344e-05/0.6429, allocations: 29.77 kB / 498.9 MB, free: 15.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.6429, allocations: 0 / 498.9 MB, free: 15.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.507e-05/0.643, allocations: 67.33 kB / 499 MB, free: 15.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.6431, allocations: 29.7 kB / 499 MB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.6431, allocations: 0 / 499 MB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.6431, allocations: 3.953 kB / 499 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.502e-06/0.6431, allocations: 0 / 499 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.6432, allocations: 0 / 499 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.746e-05/0.6432, allocations: 4 kB / 499 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-06/0.6432, allocations: 0 / 499 MB, free: 15.22 MB / 410.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 8.549e-05/0.6433, allocations: 131.7 kB / 499.2 MB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.225e-05/0.6433, allocations: 4 kB / 499.2 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.842e-05/0.6433, allocations: 11.06 kB / 499.2 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.6434, allocations: 3.953 kB / 499.2 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6434, allocations: 0 / 499.2 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.6434, allocations: 0 / 499.2 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.6435, allocations: 149.7 kB / 499.3 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.6435, allocations: 4 kB / 499.3 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.885e-06/0.6435, allocations: 0 / 499.3 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.6435, allocations: 3.938 kB / 499.3 MB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.6436, allocations: 4 kB / 499.3 MB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.6436, allocations: 0 / 499.3 MB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/0.6436, allocations: 11.92 kB / 499.3 MB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.6437, allocations: 90.78 kB / 499.4 MB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.269e-05/0.6438, allocations: 77.11 kB / 499.5 MB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.6438, allocations: 3.984 kB / 499.5 MB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.177e-05/0.6438, allocations: 0 / 499.5 MB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.6439, allocations: 8.031 kB / 499.5 MB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.6439, allocations: 3.953 kB / 499.5 MB, free: 14.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.441e-05/0.6439, allocations: 75.28 kB / 499.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6439, allocations: 0 / 499.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000331/0.6443, allocations: 20 kB / 499.6 MB, free: 14.52 MB / 410.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.0008652/0.6451, allocations: 0.7478 MB / 0.4886 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.6453, allocations: 55.41 kB / 0.4887 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.6453, allocations: 0 / 0.4887 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.416e-05/0.6453, allocations: 55.41 kB / 0.4887 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.851e-05/0.6454, allocations: 0 / 0.4887 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003011/0.6458, allocations: 97.5 kB / 0.4888 GB, free: 13.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.646, allocations: 0.6692 MB / 0.4895 GB, free: 12.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.166e-06/0.646, allocations: 7.984 kB / 0.4895 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.727e-05/0.6461, allocations: 7.438 kB / 0.4895 GB, free: 12.8 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/0.6461, allocations: 0 / 0.4895 GB, free: 12.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.6691, allocations: 1.15 MB / 0.4906 GB, free: 11.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004971/0.6697, allocations: 187.7 kB / 0.4908 GB, free: 11.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/3.028, allocations: 0 / 0.4908 GB, free: 11.5 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat