Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.898e-05, allocations: 0 / 292.1 MB, free: 8.863 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 50.41 MB / 342.5 MB, free: 6.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4025/0.518, allocations: 75.17 MB / 417.7 MB, free: 2.922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.5182, allocations: 63.41 kB / 417.8 MB, free: 2.887 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002514/0.5207, allocations: 0.8246 MB / 418.6 MB, free: 2.141 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.02e-06/0.5208, allocations: 0 / 418.6 MB, free: 2.141 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.031e-06/0.5208, allocations: 0 / 418.6 MB, free: 2.141 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.0003623/0.5212, allocations: 351.1 kB / 418.9 MB, free: 1.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.5212, allocations: 8.031 kB / 418.9 MB, free: 1.742 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.5213, allocations: 16.17 kB / 419 MB, free: 1.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.5214, allocations: 167 kB / 419.1 MB, free: 1.527 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.5215, allocations: 8 kB / 419.1 MB, free: 1.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.5215, allocations: 6.781 kB / 419.1 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.5217, allocations: 73.66 kB / 419.2 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.416e-06/0.5217, allocations: 0 / 419.2 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.5217, allocations: 0 / 419.2 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.872e-06/0.5217, allocations: 0 / 419.2 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.806e-05/0.5218, allocations: 43.67 kB / 419.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001865/0.522, allocations: 161.3 kB / 419.4 MB, free: 1.195 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.5222, allocations: 49.75 kB / 419.4 MB, free: 1.141 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.102e-05/0.5223, allocations: 48.91 kB / 419.5 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.01e-06/0.5223, allocations: 0 / 419.5 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.637e-05/0.5224, allocations: 71.62 kB / 419.6 MB, free: 1.008 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.036e-06/0.5224, allocations: 0 / 419.6 MB, free: 1.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.000426/0.5228, allocations: 187.1 kB / 419.8 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.5229, allocations: 77.11 kB / 419.8 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.523, allocations: 104.6 kB / 419.9 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.5231, allocations: 36.86 kB / 420 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.365e-05/0.5232, allocations: 150.6 kB / 420.1 MB, free: 440 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.5232, allocations: 3.906 kB / 420.1 MB, free: 436 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.5232, allocations: 4 kB / 420.1 MB, free: 432 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.5234, allocations: 318.1 kB / 420.4 MB, free: 108 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.152e-05/0.5235, allocations: 35.97 kB / 420.5 MB, free: 72 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.5236, allocations: 35.97 kB / 420.5 MB, free: 36 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.5237, allocations: 68.67 kB / 420.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.239e-06/0.5237, allocations: 0 / 420.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003641/0.5241, allocations: 194.6 kB / 420.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.5242, allocations: 33.64 kB / 420.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.028e-06/0.5242, allocations: 4.812 kB / 420.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.5242, allocations: 4 kB / 420.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.75e-06/0.5242, allocations: 0 / 420.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.998e-06/0.5242, allocations: 0 / 420.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.086e-05/0.5243, allocations: 0 / 420.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.5243, allocations: 15.23 kB / 420.8 MB, free: 15.71 MB / 346.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 0.0001183/0.5244, allocations: 134.9 kB / 420.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.236e-05/0.5245, allocations: 4 kB / 420.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.193e-05/0.5245, allocations: 8.109 kB / 421 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.89e-06/0.5245, allocations: 11.98 kB / 421 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.003e-06/0.5246, allocations: 0 / 421 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.5246, allocations: 3.984 kB / 421 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.5247, allocations: 161 kB / 421.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-06/0.5248, allocations: 0 / 421.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-06/0.5248, allocations: 0 / 421.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.403e-06/0.5248, allocations: 3.984 kB / 421.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.5248, allocations: 7.375 kB / 421.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.951e-06/0.5248, allocations: 0 / 421.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5248, allocations: 0 / 421.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.5253, allocations: 240.5 kB / 421.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.5254, allocations: 77.11 kB / 421.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.5254, allocations: 4 kB / 421.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.648e-05/0.5254, allocations: 4 kB / 421.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.651e-05/0.5255, allocations: 0 / 421.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.5255, allocations: 7.984 kB / 421.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.416e-05/0.5256, allocations: 90.53 kB / 421.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.5256, allocations: 4.031 kB / 421.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002634/0.5259, allocations: 8 kB / 421.6 MB, free: 14.87 MB / 346.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.0003587/0.5263, allocations: 133.5 kB / 421.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000201/0.5265, allocations: 121.2 kB / 421.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.943e-06/0.5265, allocations: 4.062 kB / 421.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.5266, allocations: 100.3 kB / 421.9 MB, free: 14.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001126/0.5267, allocations: 3.953 kB / 421.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002737/0.527, allocations: 141 kB / 422.1 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.5274, allocations: 0.6809 MB / 422.7 MB, free: 13.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.096e-05/0.5274, allocations: 11.38 kB / 422.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.798e-06/0.5275, allocations: 0 / 422.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of Templates: time 0.002388/0.5298, allocations: 0.6736 MB / 423.4 MB, free: 12.96 MB / 346.7 MB