Running command: translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadModel(Modelica): time 2.12/2.12, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.674e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003047/0.1173, allocations: 1.768 MB / 346.7 MB, free: 7.164 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005209/0.1179, allocations: 191.3 kB / 346.9 MB, free: 6.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.92e-05/0.118, allocations: 8 kB / 346.9 MB, free: 6.969 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.951e-05/0.1181, allocations: 27.83 kB / 347 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.1183, allocations: 59.8 kB / 347 MB, free: 6.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.1184, allocations: 47.88 kB / 347.1 MB, free: 6.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.1187, allocations: 115.7 kB / 347.2 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.1189, allocations: 69.39 kB / 347.2 MB, free: 6.652 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.119, allocations: 59.91 kB / 347.3 MB, free: 6.594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1192, allocations: 75.69 kB / 347.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.835e-05/0.1193, allocations: 8 kB / 347.4 MB, free: 6.512 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.1193, allocations: 8 kB / 347.4 MB, free: 6.504 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.681e-05/0.1194, allocations: 35.84 kB / 347.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.852e-05/0.1195, allocations: 20 kB / 347.4 MB, free: 6.449 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.1198, allocations: 191.7 kB / 347.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1198, allocations: 0 / 347.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1198, allocations: 0 / 347.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1198, allocations: 0 / 347.6 MB, free: 6.262 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008879/0.1207, allocations: 478.4 kB / 348.1 MB, free: 5.746 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1208, allocations: 11.97 kB / 348.1 MB, free: 5.734 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.446e-05/0.1209, allocations: 27.67 kB / 348.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1212, allocations: 221.6 kB / 348.4 MB, free: 5.453 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.1212, allocations: 16.56 kB / 348.4 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.367e-05/0.1213, allocations: 28 kB / 348.4 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.1219, allocations: 220.3 kB / 348.6 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.1219, allocations: 0 / 348.6 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.671e-05/0.1219, allocations: 12 kB / 348.6 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.122, allocations: 4 kB / 348.6 MB, free: 5.164 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.1224, allocations: 139.8 kB / 348.8 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.124, allocations: 0.8599 MB / 349.6 MB, free: 4.105 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003558/0.1244, allocations: 155.7 kB / 349.8 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.1244, allocations: 0 / 349.8 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.1245, allocations: 42.56 kB / 349.8 MB, free: 3.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 3.697e-06/0.1245, allocations: 3.984 kB / 349.8 MB, free: 3.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005599/0.1251, allocations: 165.6 kB / 350 MB, free: 3.703 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8e-05/0.1252, allocations: 106.8 kB / 350.1 MB, free: 3.574 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.1254, allocations: 181.3 kB / 350.3 MB, free: 3.391 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.1255, allocations: 29.7 kB / 350.3 MB, free: 3.355 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.1256, allocations: 222.2 kB / 350.5 MB, free: 3.137 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.517e-05/0.1257, allocations: 71.05 kB / 350.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.645e-05/0.1258, allocations: 4 kB / 350.6 MB, free: 3.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1259, allocations: 330.8 kB / 350.9 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.1261, allocations: 44.53 kB / 351 MB, free: 2.684 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.1263, allocations: 154.7 kB / 351.1 MB, free: 2.484 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.1265, allocations: 71.94 kB / 351.2 MB, free: 2.414 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1266, allocations: 4 kB / 351.2 MB, free: 2.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005848/0.1272, allocations: 238 kB / 351.4 MB, free: 2.172 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.1272, allocations: 8 kB / 351.4 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1272, allocations: 0 / 351.4 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.1273, allocations: 8 kB / 351.4 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.1277, allocations: 59.91 kB / 351.5 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/0.1277, allocations: 12.08 kB / 351.5 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.128, allocations: 27.69 kB / 351.5 MB, free: 2.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.128, allocations: 16 kB / 351.5 MB, free: 2.043 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 0.0001737/0.1282, allocations: 138 kB / 351.7 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.1283, allocations: 19.81 kB / 351.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.651e-05/0.1284, allocations: 25.39 kB / 351.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1284, allocations: 0 / 351.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.1284, allocations: 4 kB / 351.7 MB, free: 1.852 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1284, allocations: 0 / 351.7 MB, free: 1.852 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007821/0.1292, allocations: 432.8 kB / 352.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1292, allocations: 0 / 352.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/0.1296, allocations: 39.92 kB / 352.2 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.1296, allocations: 4 kB / 352.2 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1297, allocations: 4 kB / 352.2 MB, free: 1.316 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.1297, allocations: 4 kB / 352.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1297, allocations: 0 / 352.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006165/0.1303, allocations: 428.3 kB / 352.6 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.607e-05/0.1304, allocations: 92.92 kB / 352.7 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.839e-05/0.1305, allocations: 4 kB / 352.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1307, allocations: 8 kB / 352.7 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.1307, allocations: 11.98 kB / 352.7 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.1308, allocations: 4 kB / 352.7 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000173/0.131, allocations: 144.3 kB / 352.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.816e-06/0.131, allocations: 0 / 352.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004936/0.1315, allocations: 59.78 kB / 352.9 MB, free: 0.5039 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001821/0.1317, allocations: 103.2 kB / 353 MB, free: 404 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.1321, allocations: 143.8 kB / 353.2 MB, free: 260 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1321, allocations: 0 / 353.2 MB, free: 260 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.1323, allocations: 51.92 kB / 353.2 MB, free: 208 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.1327, allocations: 33.12 kB / 353.3 MB, free: 176 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.1343, allocations: 0.7427 MB / 354 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.1348, allocations: 0.7401 MB / 354.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.1349, allocations: 19.44 kB / 354.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1349, allocations: 0 / 354.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of Templates: time 0.006011/0.1409, allocations: 2.219 MB / 357 MB, free: 12.37 MB / 298.7 MB