Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.636/2.636, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 5.543e-05/5.555e-05, allocations: 7.938 kB / 323.5 MB, free: 4.23 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5214/0.5215, allocations: 58.83 MB / 382.3 MB, free: 10.22 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/0.7082, allocations: 84.48 MB / 466.8 MB, free: 7.938 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.7085, allocations: 63.97 kB / 466.8 MB, free: 7.875 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.008319/0.7168, allocations: 1.417 MB / 468.3 MB, free: 6.453 MB / 394.8 MB Notification: Performance of FrontEnd: time 2.835e-06/0.7169, allocations: 0 / 468.3 MB, free: 6.453 MB / 394.8 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.7169, allocations: 0 / 468.3 MB, free: 6.453 MB / 394.8 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.0004592/0.7174, allocations: 360.2 kB / 468.6 MB, free: 6.051 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.449e-05/0.7175, allocations: 12.03 kB / 468.6 MB, free: 6.039 MB / 394.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.341e-05/0.7176, allocations: 30.56 kB / 468.7 MB, free: 6 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.7176, allocations: 7.984 kB / 468.7 MB, free: 5.992 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.7178, allocations: 167 kB / 468.8 MB, free: 5.789 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.7178, allocations: 0 / 468.8 MB, free: 5.789 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.7179, allocations: 0 / 468.8 MB, free: 5.789 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.718, allocations: 29.7 kB / 468.9 MB, free: 5.754 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.718, allocations: 0 / 468.9 MB, free: 5.754 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.718, allocations: 0 / 468.9 MB, free: 5.754 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.7181, allocations: 0 / 468.9 MB, free: 5.754 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.591e-05/0.7181, allocations: 4 kB / 468.9 MB, free: 5.75 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002055/0.7183, allocations: 161.6 kB / 469 MB, free: 5.543 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 6.227e-05/0.7184, allocations: 14.58 kB / 469 MB, free: 5.52 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.831e-05/0.7185, allocations: 8.797 kB / 469 MB, free: 5.508 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.7185, allocations: 4.094 kB / 469 MB, free: 5.504 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.023e-05/0.7186, allocations: 56.27 kB / 469.1 MB, free: 5.434 MB / 394.8 MB Notification: Performance of pre-optimization done (n=1): time 2.725e-06/0.7186, allocations: 0 / 469.1 MB, free: 5.434 MB / 394.8 MB Notification: Performance of matching and sorting (n=1): time 0.0002271/0.7188, allocations: 59.41 kB / 469.2 MB, free: 5.363 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/0.719, allocations: 85.09 kB / 469.2 MB, free: 5.262 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.644e-05/0.719, allocations: 89 kB / 469.3 MB, free: 5.168 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.7191, allocations: 33.58 kB / 469.4 MB, free: 5.129 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.054e-05/0.7192, allocations: 80.14 kB / 469.4 MB, free: 5.047 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.7192, allocations: 0 / 469.4 MB, free: 5.047 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.7192, allocations: 0 / 469.4 MB, free: 5.047 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.7194, allocations: 310.8 kB / 469.7 MB, free: 4.734 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.347e-05/0.7195, allocations: 8.031 kB / 469.7 MB, free: 4.727 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.287e-05/0.7195, allocations: 0 / 469.7 MB, free: 4.727 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.285e-05/0.7196, allocations: 29.64 kB / 469.8 MB, free: 4.691 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.7196, allocations: 3.953 kB / 469.8 MB, free: 4.688 MB / 394.8 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001509/0.7198, allocations: 63.39 kB / 469.8 MB, free: 4.613 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.375e-05/0.7199, allocations: 33.7 kB / 469.9 MB, free: 4.574 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.7199, allocations: 0 / 469.9 MB, free: 4.574 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7199, allocations: 0 / 469.9 MB, free: 4.574 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.7199, allocations: 0 / 469.9 MB, free: 4.574 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.72, allocations: 4.094 kB / 469.9 MB, free: 4.57 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.054e-05/0.72, allocations: 0 / 469.9 MB, free: 4.57 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.72, allocations: 0 / 469.9 MB, free: 4.57 MB / 394.8 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.0001453/0.7202, allocations: 137.3 kB / 470 MB, free: 4.426 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.132e-05/0.7202, allocations: 3.953 kB / 470 MB, free: 4.422 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.189e-05/0.7203, allocations: 7.109 kB / 470 MB, free: 4.41 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.7203, allocations: 0 / 470 MB, free: 4.41 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.7203, allocations: 0 / 470 MB, free: 4.41 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.7203, allocations: 4 kB / 470 MB, free: 4.406 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.7205, allocations: 141.7 kB / 470.2 MB, free: 4.219 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.7205, allocations: 4 kB / 470.2 MB, free: 4.215 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.7205, allocations: 3.953 kB / 470.2 MB, free: 4.211 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.7206, allocations: 0 / 470.2 MB, free: 4.211 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.7206, allocations: 0 / 470.2 MB, free: 4.211 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.7206, allocations: 7.984 kB / 470.2 MB, free: 4.203 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.7206, allocations: 0 / 470.2 MB, free: 4.203 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.7208, allocations: 86.78 kB / 470.3 MB, free: 4.094 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.488e-05/0.7209, allocations: 85.14 kB / 470.3 MB, free: 3.992 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.721, allocations: 11.94 kB / 470.4 MB, free: 3.98 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.582e-05/0.721, allocations: 0 / 470.4 MB, free: 3.98 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.7211, allocations: 0 / 470.4 MB, free: 3.98 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.7211, allocations: 0 / 470.4 MB, free: 3.98 MB / 394.8 MB Notification: Performance of sorting global known variables: time 4.55e-05/0.7212, allocations: 79.22 kB / 470.4 MB, free: 3.902 MB / 394.8 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7212, allocations: 0 / 470.4 MB, free: 3.902 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.0004919/0.7217, allocations: 27.98 kB / 470.5 MB, free: 3.875 MB / 394.8 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.001257/0.723, allocations: 0.7296 MB / 471.2 MB, free: 3.148 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.0001652/0.7232, allocations: 55.41 kB / 471.2 MB, free: 3.082 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.7232, allocations: 0 / 471.2 MB, free: 3.082 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 5.953e-05/0.7233, allocations: 55.41 kB / 471.3 MB, free: 3.016 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.7235, allocations: 7.391 kB / 471.3 MB, free: 3.012 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004925/0.724, allocations: 103 kB / 471.4 MB, free: 2.879 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.7244, allocations: 0.677 MB / 472.1 MB, free: 2.176 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 1.121e-05/0.7244, allocations: 0 / 472.1 MB, free: 2.176 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.117e-05/0.7244, allocations: 7.438 kB / 472.1 MB, free: 2.168 MB / 394.8 MB Notification: Performance of SimCode: time 1.503e-06/0.7244, allocations: 0 / 472.1 MB, free: 2.168 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.7487, allocations: 1.132 MB / 473.2 MB, free: 1.086 MB / 394.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003367/0.7492, allocations: 179.7 kB / 473.4 MB, free: 0.8594 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.299/3.049, allocations: 3.938 kB / 473.4 MB, free: 0.8555 MB / 394.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat