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.872/1.872, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.644e-05/1.67e-05, allocations: 0 / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2481, allocations: 44.49 MB / 294.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.3864, allocations: 69.05 MB / 363.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001926/0.3867, allocations: 55.97 kB / 363.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002472/0.3892, allocations: 0.8262 MB / 364 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3892, allocations: 3.938 kB / 364 MB, free: 12.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.3892, allocations: 0 / 364 MB, free: 12.06 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.0003441/0.3896, allocations: 322.5 kB / 364.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3896, allocations: 12.03 kB / 364.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.3897, allocations: 3.906 kB / 364.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.3898, allocations: 171 kB / 364.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.3899, allocations: 3.984 kB / 364.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.3899, allocations: 7.984 kB / 364.5 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.963e-05/0.39, allocations: 35.97 kB / 364.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.3902, allocations: 101 kB / 364.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.265e-06/0.3902, allocations: 0 / 364.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.3902, allocations: 4 kB / 364.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.661e-06/0.3903, allocations: 4 kB / 364.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/0.3905, allocations: 148.9 kB / 364.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.3906, allocations: 110.4 kB / 364.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.727e-05/0.3908, allocations: 59.47 kB / 365 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.3908, allocations: 3.938 kB / 365 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.3908, allocations: 42.55 kB / 365 MB, free: 10.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.214e-06/0.3908, allocations: 0 / 365 MB, free: 10.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003959/0.3912, allocations: 165.4 kB / 365.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/0.3913, allocations: 132.5 kB / 365.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.3915, allocations: 105.2 kB / 365.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.3915, allocations: 29.69 kB / 365.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.3916, allocations: 154.6 kB / 365.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.3916, allocations: 3.906 kB / 365.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-06/0.3917, allocations: 0 / 365.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3918, allocations: 319 kB / 365.9 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.501e-05/0.3919, allocations: 39.91 kB / 366 MB, free: 9.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.392, allocations: 59.41 kB / 366 MB, free: 9.789 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.815e-05/0.3921, allocations: 35.97 kB / 366.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.597e-06/0.3921, allocations: 0 / 366.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002535/0.3924, allocations: 125.5 kB / 366.2 MB, free: 9.625 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.3924, allocations: 11.95 kB / 366.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.045e-06/0.3925, allocations: 64 / 366.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3925, allocations: 4 kB / 366.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.767e-05/0.3925, allocations: 7.984 kB / 366.2 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.776e-06/0.3925, allocations: 0 / 366.2 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.723e-05/0.3926, allocations: 4 kB / 366.2 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.3926, allocations: 4 kB / 366.2 MB, free: 9.594 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 9.299e-05/0.3927, allocations: 115.8 kB / 366.3 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.3928, allocations: 12 kB / 366.3 MB, free: 9.465 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.318e-05/0.3928, allocations: 12.62 kB / 366.3 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.414e-06/0.3928, allocations: 7.938 kB / 366.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.21e-06/0.3928, allocations: 0 / 366.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.617e-06/0.3929, allocations: 0 / 366.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.393, allocations: 134.2 kB / 366.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.393, allocations: 0 / 366.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.668e-06/0.393, allocations: 4 kB / 366.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.393, allocations: 0 / 366.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.3931, allocations: 7.984 kB / 366.5 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.64e-06/0.3931, allocations: 4 kB / 366.5 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.3931, allocations: 3.953 kB / 366.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.3935, allocations: 248.6 kB / 366.7 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.508e-05/0.3935, allocations: 77.11 kB / 366.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.3936, allocations: 4 kB / 366.8 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.407e-05/0.3936, allocations: 3.984 kB / 366.8 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.3937, allocations: 4 kB / 366.8 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.3937, allocations: 4.141 kB / 366.8 MB, free: 8.863 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.739e-05/0.3938, allocations: 91.27 kB / 366.9 MB, free: 8.773 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.3938, allocations: 0 / 366.9 MB, free: 8.773 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000272/0.3941, allocations: 12 kB / 366.9 MB, free: 8.762 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.0003332/0.3944, allocations: 133.3 kB / 367.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001488/0.3946, allocations: 63.91 kB / 367.1 MB, free: 8.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.772e-06/0.3946, allocations: 0 / 367.1 MB, free: 8.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.85e-05/0.3947, allocations: 40.17 kB / 367.2 MB, free: 8.531 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.3948, allocations: 3.953 kB / 367.2 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002754/0.3951, allocations: 141.7 kB / 367.3 MB, free: 8.352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.3955, allocations: 0.6884 MB / 368 MB, free: 7.637 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.3955, allocations: 15.44 kB / 368 MB, free: 7.625 MB / 314.7 MB Notification: Performance of SimCode: time 1.339e-06/0.3955, allocations: 0 / 368 MB, free: 7.625 MB / 314.7 MB Notification: Performance of Templates: time 0.002358/0.3979, allocations: 0.6999 MB / 368.7 MB, free: 6.922 MB / 314.7 MB