Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.544/2.544, allocations: 270 MB / 282.6 MB, free: 1.875 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.548e-05/3.554e-05, allocations: 4 kB / 347 MB, free: 3.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3911, allocations: 61.87 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1737/0.5648, allocations: 85.56 MB / 494.5 MB, free: 4.977 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.5651, allocations: 59.97 kB / 494.5 MB, free: 4.918 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005539/0.5707, allocations: 1.429 MB / 496 MB, free: 3.484 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5707, allocations: 0 / 496 MB, free: 3.484 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.5707, allocations: 0 / 496 MB, free: 3.484 MB / 410.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.0003119/0.571, allocations: 356.2 kB / 496.3 MB, free: 3.086 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.5711, allocations: 12.03 kB / 496.3 MB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.363e-05/0.5712, allocations: 30.56 kB / 496.4 MB, free: 3.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.364e-05/0.5712, allocations: 0 / 496.4 MB, free: 3.035 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.5713, allocations: 163.1 kB / 496.5 MB, free: 2.836 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.5713, allocations: 3.938 kB / 496.5 MB, free: 2.832 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.5713, allocations: 3.953 kB / 496.5 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.886e-05/0.5714, allocations: 29.7 kB / 496.6 MB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5715, allocations: 0 / 496.6 MB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-06/0.5715, allocations: 0 / 496.6 MB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.5715, allocations: 0 / 496.6 MB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.51e-05/0.5715, allocations: 11.92 kB / 496.6 MB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001795/0.5717, allocations: 145.7 kB / 496.7 MB, free: 2.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.102e-05/0.5718, allocations: 18.58 kB / 496.7 MB, free: 2.562 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.66e-05/0.5718, allocations: 8.953 kB / 496.7 MB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.5718, allocations: 3.938 kB / 496.7 MB, free: 2.547 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/0.5719, allocations: 60.22 kB / 496.8 MB, free: 2.473 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.613e-06/0.5719, allocations: 0 / 496.8 MB, free: 2.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001644/0.5721, allocations: 67.39 kB / 496.9 MB, free: 2.395 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.5721, allocations: 81.05 kB / 496.9 MB, free: 2.297 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.284e-05/0.5722, allocations: 92.94 kB / 497 MB, free: 2.199 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.5722, allocations: 25.7 kB / 497.1 MB, free: 2.168 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.5723, allocations: 150.6 kB / 497.2 MB, free: 2.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.5723, allocations: 4 kB / 497.2 MB, free: 2.016 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.5723, allocations: 0 / 497.2 MB, free: 2.016 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.5724, allocations: 310.8 kB / 497.5 MB, free: 1.703 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.978e-06/0.5725, allocations: 0 / 497.5 MB, free: 1.703 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.5725, allocations: 0 / 497.5 MB, free: 1.703 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.641e-05/0.5725, allocations: 33.77 kB / 497.5 MB, free: 1.664 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5725, allocations: 0 / 497.5 MB, free: 1.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.701e-05/0.5726, allocations: 67.39 kB / 497.6 MB, free: 1.586 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.5727, allocations: 29.7 kB / 497.6 MB, free: 1.551 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.5727, allocations: 0 / 497.6 MB, free: 1.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.5727, allocations: 3.953 kB / 497.6 MB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.412e-06/0.5727, allocations: 0 / 497.6 MB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.5727, allocations: 0 / 497.6 MB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.895e-05/0.5728, allocations: 0 / 497.6 MB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.5728, allocations: 4 kB / 497.6 MB, free: 1.543 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 9.269e-05/0.5729, allocations: 137.6 kB / 497.8 MB, free: 1.398 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.5729, allocations: 0 / 497.8 MB, free: 1.398 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.57e-05/0.5729, allocations: 11.06 kB / 497.8 MB, free: 1.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.5729, allocations: 7.891 kB / 497.8 MB, free: 1.375 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.573, allocations: 0 / 497.8 MB, free: 1.375 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.573, allocations: 0 / 497.8 MB, free: 1.375 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.5731, allocations: 145.7 kB / 497.9 MB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.5731, allocations: 0 / 497.9 MB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-06/0.5731, allocations: 4 kB / 497.9 MB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.5731, allocations: 8 kB / 498 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.5731, allocations: 0 / 498 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5731, allocations: 0 / 498 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5732, allocations: 3.953 kB / 498 MB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.5733, allocations: 90.83 kB / 498 MB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.5733, allocations: 81.09 kB / 498.1 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.5734, allocations: 0 / 498.1 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.5734, allocations: 0 / 498.1 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.75e-05/0.5734, allocations: 4.031 kB / 498.1 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.5734, allocations: 7.953 kB / 498.1 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.053e-05/0.5735, allocations: 79.22 kB / 498.2 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5735, allocations: 0 / 498.2 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003249/0.5738, allocations: 27.98 kB / 498.2 MB, free: 0.8398 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.0008423/0.5747, allocations: 0.7346 MB / 499 MB, free: 120 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.887e-05/0.5748, allocations: 59.41 kB / 499 MB, free: 48 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5748, allocations: 0 / 499 MB, free: 48 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.864e-05/0.5749, allocations: 63.34 kB / 499.1 MB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001038/0.575, allocations: 3.984 kB / 499.1 MB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003065/0.5753, allocations: 114.9 kB / 499.2 MB, free: 15.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.5756, allocations: 0.6731 MB / 499.9 MB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.797e-05/0.5756, allocations: 15.38 kB / 499.9 MB, free: 15.1 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/0.5756, allocations: 0 / 499.9 MB, free: 15.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.423/2.999, allocations: 0.9088 MB / 0.4891 GB, free: 14.19 MB / 426.7 MB