Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 1.825/1.825, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.086e-05/5.111e-05, allocations: 2.906 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 44.5 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.2068, allocations: 69.71 MB / 369.6 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.207, allocations: 59.97 kB / 369.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1948/0.4018, allocations: 0.8285 MB / 370.4 MB, free: 71.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.078e-06/0.4019, allocations: 0 / 370.4 MB, free: 71.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.4019, allocations: 0 / 370.4 MB, free: 71.46 MB / 314.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.000299/0.4022, allocations: 319.4 kB / 370.8 MB, free: 71.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.4023, allocations: 10.72 kB / 370.8 MB, free: 71.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.4023, allocations: 7.516 kB / 370.8 MB, free: 71.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.946e-05/0.4024, allocations: 170 kB / 370.9 MB, free: 70.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.4025, allocations: 4.125 kB / 370.9 MB, free: 70.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.4025, allocations: 3.844 kB / 371 MB, free: 70.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.4027, allocations: 101.6 kB / 371 MB, free: 70.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.598e-06/0.4027, allocations: 1.875 kB / 371.1 MB, free: 70.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.4027, allocations: 2.141 kB / 371.1 MB, free: 70.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.245e-06/0.4027, allocations: 1.375 kB / 371.1 MB, free: 70.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.637e-05/0.4028, allocations: 40.61 kB / 371.1 MB, free: 70.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.403, allocations: 184.4 kB / 371.3 MB, free: 70.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.4031, allocations: 105.5 kB / 371.4 MB, free: 70.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.788e-05/0.4032, allocations: 60.31 kB / 371.4 MB, free: 70.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.975e-06/0.4033, allocations: 6.5 kB / 371.4 MB, free: 70.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.4033, allocations: 39.33 kB / 371.5 MB, free: 70.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.773e-06/0.4033, allocations: 1.172 kB / 371.5 MB, free: 70.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003707/0.4037, allocations: 165.5 kB / 371.6 MB, free: 70.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.4037, allocations: 130.7 kB / 371.8 MB, free: 70.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.434e-05/0.4038, allocations: 103 kB / 371.9 MB, free: 70.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.4039, allocations: 37.33 kB / 371.9 MB, free: 70.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.85e-05/0.4039, allocations: 154.9 kB / 372.1 MB, free: 70 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.4039, allocations: 6.594 kB / 372.1 MB, free: 69.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.339e-06/0.4039, allocations: 1.25 kB / 372.1 MB, free: 69.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.069e-05/0.404, allocations: 316.8 kB / 372.4 MB, free: 69.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.3e-05/0.4041, allocations: 34.16 kB / 372.4 MB, free: 69.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.237e-05/0.4042, allocations: 58.11 kB / 372.5 MB, free: 69.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.25e-05/0.4043, allocations: 48.72 kB / 372.5 MB, free: 69.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.4043, allocations: 0.625 kB / 372.5 MB, free: 69.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000264/0.4046, allocations: 128.4 kB / 372.6 MB, free: 69.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.4046, allocations: 7.656 kB / 372.6 MB, free: 69.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.778e-06/0.4046, allocations: 1 kB / 372.6 MB, free: 69.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4047, allocations: 5.688 kB / 372.7 MB, free: 69.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.516e-05/0.4047, allocations: 4.453 kB / 372.7 MB, free: 69.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.4047, allocations: 5.562 kB / 372.7 MB, free: 69.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.583e-05/0.4048, allocations: 1.688 kB / 372.7 MB, free: 69.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.4048, allocations: 8.203 kB / 372.7 MB, free: 69.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 5.341e-05/0.4049, allocations: 105.8 kB / 372.8 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.4049, allocations: 7.953 kB / 372.8 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.161e-05/0.4049, allocations: 8.531 kB / 372.8 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.415e-06/0.405, allocations: 4.969 kB / 372.8 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.405, allocations: 2.812 kB / 372.8 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.284e-06/0.405, allocations: 5.375 kB / 372.8 MB, free: 69.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.902e-05/0.4051, allocations: 164.2 kB / 373 MB, free: 69.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.83e-06/0.4051, allocations: 1.094 kB / 373 MB, free: 69.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.911e-06/0.4051, allocations: 1.031 kB / 373 MB, free: 69.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.224e-06/0.4051, allocations: 5.453 kB / 373 MB, free: 69.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.4052, allocations: 4.312 kB / 373 MB, free: 69.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.68e-06/0.4052, allocations: 1.938 kB / 373 MB, free: 69.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.607e-06/0.4052, allocations: 0.625 kB / 373 MB, free: 69.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003738/0.4056, allocations: 242.2 kB / 373.2 MB, free: 69.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.4056, allocations: 88.09 kB / 373.3 MB, free: 69.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.4056, allocations: 2.281 kB / 373.3 MB, free: 69.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.36e-05/0.4057, allocations: 7.859 kB / 373.3 MB, free: 69.03 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.959e-05/0.4057, allocations: 4.016 kB / 373.3 MB, free: 69.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.4058, allocations: 8.625 kB / 373.3 MB, free: 69.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.64e-05/0.4058, allocations: 90.11 kB / 373.4 MB, free: 68.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.98e-07/0.4058, allocations: 0 / 373.4 MB, free: 68.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002754/0.4061, allocations: 11.89 kB / 373.4 MB, free: 68.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002997/0.4064, allocations: 129.6 kB / 373.6 MB, free: 68.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.4066, allocations: 59.75 kB / 373.6 MB, free: 68.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.63e-06/0.4066, allocations: 0.6875 kB / 373.6 MB, free: 68.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.171e-05/0.4067, allocations: 34.33 kB / 373.6 MB, free: 68.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.4068, allocations: 9.438 kB / 373.7 MB, free: 68.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002305/0.4071, allocations: 142.8 kB / 373.8 MB, free: 68.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.4072, allocations: 0.684 MB / 374.5 MB, free: 68.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.798e-05/0.4073, allocations: 13.75 kB / 374.5 MB, free: 68.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.421e-06/0.4073, allocations: 0 / 374.5 MB, free: 68.02 MB / 314.7 MB Notification: Performance of Templates: time 0.00236/0.4097, allocations: 0.7077 MB / 375.2 MB, free: 67.98 MB / 314.7 MB