Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.827e-05/2.821e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1197, allocations: 50.41 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006629/0.1204, allocations: 200.6 kB / 345.2 MB, free: 8.766 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002497/0.1207, allocations: 55.81 kB / 345.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.515e-05/0.1207, allocations: 0 / 345.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.768e-05/0.1208, allocations: 0 / 345.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.242e-05/0.1209, allocations: 11.98 kB / 345.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.1211, allocations: 23.91 kB / 345.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.185e-05/0.1211, allocations: 3.984 kB / 345.3 MB, free: 8.672 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.1212, allocations: 4 kB / 345.3 MB, free: 8.668 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.024e-05/0.1212, allocations: 12 kB / 345.3 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.691e-05/0.1213, allocations: 19.92 kB / 345.3 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.799e-05/0.1214, allocations: 4 kB / 345.3 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.1214, allocations: 0 / 345.3 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.711e-05/0.1214, allocations: 7.984 kB / 345.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.764e-05/0.1215, allocations: 0 / 345.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.898e-05/0.1216, allocations: 23.97 kB / 345.3 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1216, allocations: 0 / 345.3 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1216, allocations: 0 / 345.3 MB, free: 8.602 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1216, allocations: 0 / 345.3 MB, free: 8.602 MB / 282.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.0003815/0.122, allocations: 353.1 kB / 345.7 MB, free: 8.203 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.122, allocations: 8.031 kB / 345.7 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.1221, allocations: 7.859 kB / 345.7 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.1223, allocations: 179.2 kB / 345.9 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.1223, allocations: 0 / 345.9 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.1223, allocations: 4 kB / 345.9 MB, free: 7.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001511/0.1225, allocations: 57.67 kB / 345.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1225, allocations: 0 / 345.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.1225, allocations: 0 / 345.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1225, allocations: 0 / 345.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.436e-05/0.1226, allocations: 35.94 kB / 346 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001842/0.1228, allocations: 153.7 kB / 346.1 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.718e-05/0.1229, allocations: 50.5 kB / 346.2 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.1229, allocations: 0 / 346.2 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.77e-05/0.123, allocations: 64.23 kB / 346.2 MB, free: 7.535 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.513e-06/0.123, allocations: 0 / 346.2 MB, free: 7.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004665/0.1235, allocations: 260.6 kB / 346.5 MB, free: 7.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.1236, allocations: 81.11 kB / 346.5 MB, free: 7.152 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.1237, allocations: 105.2 kB / 346.7 MB, free: 7.043 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1237, allocations: 25.7 kB / 346.7 MB, free: 7.012 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.317e-05/0.1238, allocations: 154.6 kB / 346.8 MB, free: 6.859 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.1238, allocations: 7.906 kB / 346.8 MB, free: 6.852 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.1239, allocations: 0 / 346.8 MB, free: 6.852 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.124, allocations: 318.8 kB / 347.1 MB, free: 6.531 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.014e-05/0.1241, allocations: 27.94 kB / 347.2 MB, free: 6.504 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.044e-05/0.1241, allocations: 35.97 kB / 347.2 MB, free: 6.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.75e-05/0.1242, allocations: 53.69 kB / 347.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1242, allocations: 0 / 347.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002359/0.1245, allocations: 151.4 kB / 347.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.1245, allocations: 33.69 kB / 347.4 MB, free: 6.211 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1246, allocations: 4.062 kB / 347.4 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.1246, allocations: 4 kB / 347.4 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.472e-06/0.1246, allocations: 0 / 347.4 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.1246, allocations: 0 / 347.4 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.688e-05/0.1247, allocations: 0 / 347.4 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1247, allocations: 8.062 kB / 347.5 MB, free: 6.195 MB / 282.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.0001293/0.1248, allocations: 147.5 kB / 347.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.1248, allocations: 7.906 kB / 347.6 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/0.1249, allocations: 7.906 kB / 347.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1249, allocations: 0 / 347.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1249, allocations: 0 / 347.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.845e-05/0.1249, allocations: 3.938 kB / 347.6 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.1251, allocations: 161.6 kB / 347.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1251, allocations: 0 / 347.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-07/0.1251, allocations: 0 / 347.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1252, allocations: 7.938 kB / 347.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1252, allocations: 8 kB / 347.8 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1252, allocations: 0 / 347.8 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1252, allocations: 0 / 347.8 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.1255, allocations: 194.7 kB / 348 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.1256, allocations: 81.05 kB / 348.1 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.1256, allocations: 4 kB / 348.1 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.06e-05/0.1257, allocations: 0 / 348.1 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.1257, allocations: 4.031 kB / 348.1 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.1257, allocations: 7.984 kB / 348.1 MB, free: 5.461 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.788e-05/0.1258, allocations: 91.27 kB / 348.2 MB, free: 5.371 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1258, allocations: 0 / 348.2 MB, free: 5.371 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002443/0.1261, allocations: 8 kB / 348.2 MB, free: 5.363 MB / 282.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.0003641/0.1264, allocations: 141.2 kB / 348.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002324/0.1267, allocations: 123.4 kB / 348.4 MB, free: 5.098 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1267, allocations: 0 / 348.4 MB, free: 5.098 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.1268, allocations: 95.39 kB / 348.5 MB, free: 4.992 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001148/0.127, allocations: 3.953 kB / 348.5 MB, free: 4.988 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003415/0.1273, allocations: 168.4 kB / 348.7 MB, free: 4.789 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.1276, allocations: 0.685 MB / 349.4 MB, free: 4.078 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.372e-05/0.1277, allocations: 7.438 kB / 349.4 MB, free: 4.07 MB / 282.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1277, allocations: 0 / 349.4 MB, free: 4.07 MB / 282.7 MB Notification: Performance of Templates: time 0.002814/0.1305, allocations: 0.676 MB / 350.1 MB, free: 3.398 MB / 282.7 MB