Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadModel(ModelicaTest): time 2.278/2.278, allocations: 270 MB / 282.7 MB, free: 1.922 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.036e-05, allocations: 4 kB / 347 MB, free: 3.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3145, allocations: 61.87 MB / 408.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.4438, allocations: 85.56 MB / 494.4 MB, free: 5.113 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.4441, allocations: 67.97 kB / 494.5 MB, free: 5.047 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005156/0.4492, allocations: 1.417 MB / 495.9 MB, free: 3.625 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.251e-06/0.4493, allocations: 0 / 495.9 MB, free: 3.625 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.406e-06/0.4493, allocations: 0 / 495.9 MB, free: 3.625 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.000317/0.4496, allocations: 348.2 kB / 496.2 MB, free: 3.234 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4497, allocations: 8.031 kB / 496.2 MB, free: 3.227 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.4497, allocations: 8 kB / 496.2 MB, free: 3.219 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.4498, allocations: 159.1 kB / 496.4 MB, free: 3.023 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.4499, allocations: 4 kB / 496.4 MB, free: 3.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.4499, allocations: 3.984 kB / 496.4 MB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.42e-05/0.45, allocations: 37.59 kB / 496.4 MB, free: 2.973 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.45, allocations: 0 / 496.4 MB, free: 2.973 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-06/0.45, allocations: 7.875 kB / 496.4 MB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.873e-06/0.45, allocations: 0 / 496.4 MB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.4501, allocations: 0 / 496.4 MB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.4502, allocations: 153.7 kB / 496.6 MB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.998e-05/0.4503, allocations: 14.58 kB / 496.6 MB, free: 2.742 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.4503, allocations: 4.859 kB / 496.6 MB, free: 2.734 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.4503, allocations: 3.984 kB / 496.6 MB, free: 2.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.827e-05/0.4504, allocations: 64.28 kB / 496.7 MB, free: 2.652 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.965e-06/0.4504, allocations: 0 / 496.7 MB, free: 2.652 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001597/0.4506, allocations: 63.34 kB / 496.7 MB, free: 2.578 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.4507, allocations: 85.14 kB / 496.8 MB, free: 2.477 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.051e-05/0.4507, allocations: 85 kB / 496.9 MB, free: 2.387 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.4508, allocations: 25.7 kB / 496.9 MB, free: 2.355 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.4508, allocations: 150.6 kB / 497.1 MB, free: 2.207 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.4509, allocations: 3.906 kB / 497.1 MB, free: 2.203 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-06/0.4509, allocations: 0 / 497.1 MB, free: 2.203 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.451, allocations: 314.8 kB / 497.4 MB, free: 1.887 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.4511, allocations: 4 kB / 497.4 MB, free: 1.883 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.483e-06/0.4511, allocations: 4 kB / 497.4 MB, free: 1.879 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.744e-05/0.4511, allocations: 25.7 kB / 497.4 MB, free: 1.848 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.149e-06/0.4512, allocations: 0 / 497.4 MB, free: 1.848 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001021/0.4513, allocations: 63.41 kB / 497.5 MB, free: 1.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.4513, allocations: 29.7 kB / 497.5 MB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.302e-06/0.4513, allocations: 3.984 kB / 497.5 MB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.4514, allocations: 7.953 kB / 497.5 MB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.757e-06/0.4514, allocations: 0 / 497.5 MB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.473e-06/0.4514, allocations: 7.922 kB / 497.5 MB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.4514, allocations: 4.094 kB / 497.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.4514, allocations: 0 / 497.5 MB, free: 1.715 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 0.0001024/0.4515, allocations: 130.7 kB / 497.7 MB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.4516, allocations: 3.984 kB / 497.7 MB, free: 1.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.522e-05/0.4516, allocations: 3.125 kB / 497.7 MB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-06/0.4516, allocations: 0 / 497.7 MB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.063e-06/0.4516, allocations: 3.953 kB / 497.7 MB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.863e-06/0.4516, allocations: 3.938 kB / 497.7 MB, free: 1.555 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.4518, allocations: 149.7 kB / 497.8 MB, free: 1.359 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4518, allocations: 4 kB / 497.8 MB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.169e-06/0.4518, allocations: 0 / 497.8 MB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.403e-06/0.4518, allocations: 0 / 497.8 MB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.931e-06/0.4518, allocations: 0 / 497.8 MB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.855e-06/0.4518, allocations: 0 / 497.8 MB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.095e-06/0.4518, allocations: 4 kB / 497.8 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001297/0.452, allocations: 94.72 kB / 497.9 MB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.614e-05/0.452, allocations: 77.11 kB / 498 MB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.4521, allocations: 8.031 kB / 498 MB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/0.4521, allocations: 0 / 498 MB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.002e-05/0.4521, allocations: 3.938 kB / 498 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.879e-06/0.4521, allocations: 4 kB / 498 MB, free: 1.125 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.257e-05/0.4522, allocations: 79.23 kB / 498.1 MB, free: 1.047 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.05e-07/0.4522, allocations: 0 / 498.1 MB, free: 1.047 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002854/0.4525, allocations: 35.97 kB / 498.1 MB, free: 1.012 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.0005056/0.453, allocations: 207.7 kB / 498.3 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.71e-05/0.4531, allocations: 55.41 kB / 498.4 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.754e-06/0.4531, allocations: 4 kB / 498.4 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.4532, allocations: 51.41 kB / 498.4 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.57e-05/0.4533, allocations: 8 kB / 498.4 MB, free: 0.707 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001533/0.4535, allocations: 70.95 kB / 498.5 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.4538, allocations: 0.6828 MB / 499.2 MB, free: 15.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.053e-05/0.4539, allocations: 7.438 kB / 499.2 MB, free: 15.89 MB / 426.7 MB Notification: Performance of SimCode: time 4.25e-06/0.4539, allocations: 0 / 499.2 MB, free: 15.89 MB / 426.7 MB Notification: Performance of Templates: time 0.002406/0.4563, allocations: 0.7694 MB / 500 MB, free: 15.12 MB / 426.7 MB