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 2.188/2.188, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.126e-05/4.118e-05, allocations: 4 kB / 258.8 MB, free: 8.535 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3325, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0007205/0.3333, allocations: 204.5 kB / 303.5 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000299/0.3336, allocations: 49.92 kB / 303.5 MB, free: 12.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.54e-05/0.3337, allocations: 0 / 303.5 MB, free: 12.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.716e-05/0.3337, allocations: 0.9062 kB / 303.5 MB, free: 12.55 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.599e-05/0.3338, allocations: 11.73 kB / 303.5 MB, free: 12.55 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.334, allocations: 18.59 kB / 303.6 MB, free: 12.54 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 5.103e-05/0.3341, allocations: 11.17 kB / 303.6 MB, free: 12.53 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.3341, allocations: 1.125 kB / 303.6 MB, free: 12.53 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.844e-05/0.3342, allocations: 13.31 kB / 303.6 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.273e-05/0.3343, allocations: 14.92 kB / 303.6 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.066e-05/0.3343, allocations: 7.344 kB / 303.6 MB, free: 12.51 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.3344, allocations: 2 kB / 303.6 MB, free: 12.51 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.267e-05/0.3344, allocations: 16.12 kB / 303.6 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.618e-05/0.3344, allocations: 1.156 kB / 303.6 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.08e-05/0.3345, allocations: 13.33 kB / 303.6 MB, free: 12.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3346, allocations: 0 / 303.6 MB, free: 12.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3346, allocations: 0 / 303.6 MB, free: 12.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.3346, allocations: 0 / 303.6 MB, free: 12.5 MB / 250.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.0004291/0.335, allocations: 338.9 kB / 304 MB, free: 12.12 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.3351, allocations: 10.06 kB / 304 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.3352, allocations: 5.031 kB / 304 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.3353, allocations: 166.8 kB / 304.1 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.3354, allocations: 4.953 kB / 304.2 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.3354, allocations: 2.406 kB / 304.2 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.3356, allocations: 86.67 kB / 304.2 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3356, allocations: 5 kB / 304.2 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.3357, allocations: 0.9688 kB / 304.2 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3357, allocations: 1.062 kB / 304.2 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.971e-05/0.3358, allocations: 26.95 kB / 304.3 MB, free: 11.83 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002218/0.336, allocations: 179.3 kB / 304.4 MB, free: 11.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.3361, allocations: 103.5 kB / 304.5 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.3362, allocations: 2.094 kB / 304.5 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.3362, allocations: 35.59 kB / 304.6 MB, free: 11.45 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.863e-06/0.3362, allocations: 5.062 kB / 304.6 MB, free: 11.45 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004083/0.3366, allocations: 160.8 kB / 304.7 MB, free: 11.38 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.689e-05/0.3367, allocations: 130 kB / 304.9 MB, free: 11.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.3369, allocations: 107.1 kB / 305 MB, free: 11.12 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3369, allocations: 39.05 kB / 305 MB, free: 11.08 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.337, allocations: 151.1 kB / 305.2 MB, free: 10.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.337, allocations: 13.3 kB / 305.2 MB, free: 10.92 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-06/0.337, allocations: 5.438 kB / 305.2 MB, free: 10.92 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3372, allocations: 314.8 kB / 305.5 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.371e-05/0.3372, allocations: 25.77 kB / 305.5 MB, free: 10.6 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.865e-05/0.3373, allocations: 51.33 kB / 305.6 MB, free: 10.56 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.877e-05/0.3374, allocations: 35.8 kB / 305.6 MB, free: 10.55 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3374, allocations: 0 / 305.6 MB, free: 10.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001978/0.3376, allocations: 100.6 kB / 305.7 MB, free: 10.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3377, allocations: 6.781 kB / 305.7 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3377, allocations: 4.781 kB / 305.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.3377, allocations: 1.406 kB / 305.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.208e-05/0.3378, allocations: 6.266 kB / 305.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3378, allocations: 1.25 kB / 305.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.607e-05/0.3378, allocations: 2.25 kB / 305.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3378, allocations: 6.062 kB / 305.7 MB, free: 10.48 MB / 250.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.79e-05/0.338, allocations: 111 kB / 305.8 MB, free: 10.37 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.338, allocations: 10.12 kB / 305.8 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.162e-05/0.338, allocations: 10.25 kB / 305.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.338, allocations: 2.219 kB / 305.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.338, allocations: 0.9688 kB / 305.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3381, allocations: 1 kB / 305.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.3382, allocations: 156.3 kB / 306 MB, free: 10.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3382, allocations: 1 kB / 306 MB, free: 10.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.367e-06/0.3382, allocations: 5.312 kB / 306 MB, free: 10.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.3383, allocations: 5.922 kB / 306 MB, free: 10.15 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.3383, allocations: 14.16 kB / 306 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.3383, allocations: 4.938 kB / 306 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3383, allocations: 2.062 kB / 306 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.3386, allocations: 204 kB / 306.2 MB, free: 9.969 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.3387, allocations: 79.27 kB / 306.3 MB, free: 9.875 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.3387, allocations: 2.219 kB / 306.3 MB, free: 9.875 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.834e-05/0.3387, allocations: 1.156 kB / 306.3 MB, free: 9.875 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.751e-05/0.3388, allocations: 10.59 kB / 306.3 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.3388, allocations: 5.891 kB / 306.3 MB, free: 9.863 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.166e-05/0.3389, allocations: 87.72 kB / 306.4 MB, free: 9.785 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3389, allocations: 1.062 kB / 306.4 MB, free: 9.785 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.3392, allocations: 13.36 kB / 306.4 MB, free: 9.777 MB / 250.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.0003499/0.3395, allocations: 127.5 kB / 306.6 MB, free: 9.672 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.3397, allocations: 67.31 kB / 306.6 MB, free: 9.656 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.3397, allocations: 7.938 kB / 306.6 MB, free: 9.648 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.477e-05/0.3398, allocations: 29.2 kB / 306.7 MB, free: 9.645 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.34, allocations: 6.688 kB / 306.7 MB, free: 9.641 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003507/0.3403, allocations: 187.6 kB / 306.9 MB, free: 9.457 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.3406, allocations: 0.6811 MB / 307.5 MB, free: 8.758 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.3407, allocations: 15.7 kB / 307.6 MB, free: 8.75 MB / 250.7 MB Notification: Performance of SimCode: time 7.61e-07/0.3407, allocations: 0 / 307.6 MB, free: 8.75 MB / 250.7 MB Notification: Performance of Templates: time 0.00368/0.3444, allocations: 0.6945 MB / 308.2 MB, free: 8.238 MB / 250.7 MB