Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 225.8 MB / 239.4 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.93e-05, allocations: 7.984 kB / 292.6 MB, free: 11.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09156, allocations: 50.41 MB / 343.1 MB, free: 9.098 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3875/0.4791, allocations: 74.85 MB / 417.9 MB, free: 8.215 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.4793, allocations: 59.97 kB / 418 MB, free: 8.215 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002131/0.4815, allocations: 0.8309 MB / 418.8 MB, free: 7.887 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.017e-06/0.4815, allocations: 3.844 kB / 418.8 MB, free: 7.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.4815, allocations: 0 / 418.8 MB, free: 7.887 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002047/0.4817, allocations: 354 kB / 419.1 MB, free: 7.504 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.4818, allocations: 7.594 kB / 419.2 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.4818, allocations: 11.83 kB / 419.2 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.339e-05/0.4819, allocations: 167 kB / 419.3 MB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.482, allocations: 3.812 kB / 419.3 MB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.482, allocations: 0 / 419.3 MB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.4821, allocations: 79.66 kB / 419.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.447e-06/0.4822, allocations: 0 / 419.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.4822, allocations: 0 / 419.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.85e-06/0.4822, allocations: 3.844 kB / 419.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.903e-05/0.4823, allocations: 39.47 kB / 419.5 MB, free: 7.262 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.4824, allocations: 158.2 kB / 419.6 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.209e-05/0.4825, allocations: 65.09 kB / 419.7 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.97e-05/0.4826, allocations: 41.23 kB / 419.7 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.445e-06/0.4826, allocations: 7.781 kB / 419.7 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.4827, allocations: 57.02 kB / 419.8 MB, free: 6.961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.187e-06/0.4827, allocations: 0 / 419.8 MB, free: 6.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.000346/0.483, allocations: 190.2 kB / 420 MB, free: 6.895 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.4831, allocations: 88.02 kB / 420 MB, free: 6.797 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.564e-05/0.4832, allocations: 100.7 kB / 420.1 MB, free: 6.707 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.4832, allocations: 32.27 kB / 420.2 MB, free: 6.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.4832, allocations: 83.98 kB / 420.3 MB, free: 6.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.4833, allocations: 7.344 kB / 420.3 MB, free: 6.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.058e-06/0.4833, allocations: 3.844 kB / 420.3 MB, free: 6.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.077e-05/0.4833, allocations: 318.3 kB / 420.6 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.594e-05/0.4834, allocations: 35.36 kB / 420.6 MB, free: 6.273 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.752e-05/0.4835, allocations: 38.98 kB / 420.7 MB, free: 6.273 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.38e-05/0.4836, allocations: 71.86 kB / 420.7 MB, free: 6.238 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.345e-06/0.4836, allocations: 0 / 420.7 MB, free: 6.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000289/0.4839, allocations: 186.6 kB / 420.9 MB, free: 6.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.484, allocations: 39.09 kB / 420.9 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.369e-06/0.484, allocations: 0 / 420.9 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.484, allocations: 3.938 kB / 420.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.484, allocations: 0 / 420.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.484, allocations: 0 / 420.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.903e-05/0.4841, allocations: 3.844 kB / 420.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.4841, allocations: 6.531 kB / 421 MB, free: 6.137 MB / 330.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: 4 (success1,success2,success3,success4) * 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 6.73e-05/0.4842, allocations: 149.4 kB / 421.1 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.064e-05/0.4842, allocations: 7.781 kB / 421.1 MB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.97e-05/0.4842, allocations: 7.141 kB / 421.1 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-06/0.4842, allocations: 3.984 kB / 421.1 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.512e-06/0.4843, allocations: 0 / 421.1 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-06/0.4843, allocations: 0 / 421.1 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.971e-05/0.4844, allocations: 164.8 kB / 421.3 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-06/0.4844, allocations: 0 / 421.3 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.163e-06/0.4844, allocations: 0 / 421.3 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.547e-06/0.4844, allocations: 0 / 421.3 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.4844, allocations: 7.844 kB / 421.3 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4844, allocations: 0 / 421.3 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.11e-06/0.4844, allocations: 6.328 kB / 421.3 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003167/0.4848, allocations: 232.7 kB / 421.5 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.979e-05/0.4848, allocations: 81.02 kB / 421.6 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.4848, allocations: 3.969 kB / 421.6 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.185e-05/0.4849, allocations: 0 / 421.6 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.208e-05/0.4849, allocations: 3.938 kB / 421.6 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.4849, allocations: 17.14 kB / 421.6 MB, free: 5.574 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.485, allocations: 86.5 kB / 421.7 MB, free: 5.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.485, allocations: 0 / 421.7 MB, free: 5.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002557/0.4852, allocations: 14.45 kB / 421.7 MB, free: 5.5 MB / 330.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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0002919/0.4855, allocations: 138.2 kB / 421.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001453/0.4857, allocations: 124.4 kB / 422 MB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.4857, allocations: 0 / 422 MB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.605e-05/0.4858, allocations: 99.7 kB / 422.1 MB, free: 5.262 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001062/0.4859, allocations: 3.953 kB / 422.1 MB, free: 5.258 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001982/0.4861, allocations: 111.2 kB / 422.2 MB, free: 5.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.4865, allocations: 0.6823 MB / 422.9 MB, free: 20.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.567e-06/0.4866, allocations: 0 / 422.9 MB, free: 20.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.868e-06/0.4866, allocations: 7.562 kB / 422.9 MB, free: 20.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.336e-06/0.4866, allocations: 4 kB / 422.9 MB, free: 20.47 MB / 346.7 MB Notification: Performance of Templates: time 0.002821/0.4894, allocations: 0.6203 MB / 423.5 MB, free: 20.39 MB / 346.7 MB