Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.517e-05, allocations: 7.938 kB / 225 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2149, allocations: 38.76 MB / 263.8 MB, free: 9.73 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.3438, allocations: 84.91 MB / 348.7 MB, free: 4.684 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.3441, allocations: 83.95 kB / 348.8 MB, free: 4.602 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9798/1.324, allocations: 160 MB / 0.4968 GB, free: 36.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.627e-06/1.324, allocations: 7.125 kB / 0.4968 GB, free: 36.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006191/1.325, allocations: 157.1 kB / 0.497 GB, free: 36.09 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.02571/1.35, allocations: 7.882 MB / 0.5046 GB, free: 34.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/1.35, allocations: 11.38 kB / 0.5047 GB, free: 34.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08291/1.433, allocations: 16.49 MB / 0.5208 GB, free: 33.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03573/1.469, allocations: 13.47 MB / 0.5339 GB, free: 32.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005706/1.47, allocations: 0.5288 MB / 0.5344 GB, free: 32.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002709/1.472, allocations: 0.7272 MB / 0.5351 GB, free: 32.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04092/1.513, allocations: 16.17 MB / 0.5509 GB, free: 28.9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005155/1.514, allocations: 110.4 kB / 0.551 GB, free: 28.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002444/1.516, allocations: 336.9 kB / 0.5514 GB, free: 28.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002724/1.519, allocations: 1.484 MB / 0.5528 GB, free: 28.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03372/1.553, allocations: 12.47 MB / 0.565 GB, free: 27.33 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1062/1.659, allocations: 73.3 MB / 0.6366 GB, free: 7.777 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02681/1.686, allocations: 7.428 MB / 0.6438 GB, free: 1.543 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3037/1.99, allocations: 4.679 MB / 0.6484 GB, free: 78.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07391/2.064, allocations: 11.57 MB / 0.6597 GB, free: 76.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.842e-05/2.064, allocations: 69.97 kB / 0.6598 GB, free: 76.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 1.336e-05/2.064, allocations: 0 / 0.6598 GB, free: 76.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=339): time 0.1894/2.253, allocations: 37.92 MB / 0.6968 GB, free: 72.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/2.253, allocations: 398.5 kB / 0.6972 GB, free: 71.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01244/2.266, allocations: 6.176 MB / 0.7032 GB, free: 71.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006784/2.267, allocations: 79.98 kB / 0.7033 GB, free: 71.37 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00362/2.27, allocations: 4.876 MB / 0.708 GB, free: 69.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/2.272, allocations: 1.24 MB / 0.7093 GB, free: 68.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007387/2.273, allocations: 167.8 kB / 0.7094 GB, free: 68.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004548/2.273, allocations: 0.6583 MB / 0.7101 GB, free: 68.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007311/2.28, allocations: 3.722 MB / 0.7137 GB, free: 68.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00986/2.29, allocations: 8.327 MB / 0.7218 GB, free: 61.03 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/2.301, allocations: 5.48 MB / 0.7272 GB, free: 59.26 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001193/2.301, allocations: 48.22 kB / 0.7272 GB, free: 59.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.04247/2.343, allocations: 15.76 MB / 0.7426 GB, free: 50.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000125/2.343, allocations: 76 kB / 0.7427 GB, free: 50.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/2.344, allocations: 160 kB / 0.7428 GB, free: 49.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02107/2.365, allocations: 5.498 MB / 0.7482 GB, free: 46.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007815/2.373, allocations: 1.783 MB / 0.75 GB, free: 44.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04907/2.422, allocations: 28.01 MB / 0.7773 GB, free: 20.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009663/2.431, allocations: 0.5211 MB / 0.7778 GB, free: 19.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001825/2.433, allocations: 478.8 kB / 0.7783 GB, free: 19.28 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001841/2.435, allocations: 0.7356 MB / 0.779 GB, free: 18.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/2.437, allocations: 0.6595 MB / 0.7796 GB, free: 17.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2649/2.702, allocations: 11.24 MB / 0.7906 GB, free: 66.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.858e-05/2.702, allocations: 41.22 kB / 0.7906 GB, free: 66.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.966e-05/2.702, allocations: 18.44 kB / 0.7907 GB, free: 66.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.068e-05/2.702, allocations: 18.75 kB / 0.7907 GB, free: 66.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05517/2.757, allocations: 23.91 MB / 0.814 GB, free: 63.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.885e-05/2.757, allocations: 10.75 kB / 0.814 GB, free: 63.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/2.76, allocations: 431.1 kB / 0.8145 GB, free: 63.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02086/2.781, allocations: 5.081 MB / 0.8194 GB, free: 63.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007044/2.782, allocations: 61.19 kB / 0.8195 GB, free: 63.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04844/2.83, allocations: 26.72 MB / 0.8456 GB, free: 57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.078e-06/2.83, allocations: 10.75 kB / 0.8456 GB, free: 57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03735/2.868, allocations: 16.76 MB / 0.8619 GB, free: 50.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004139/2.872, allocations: 1.266 MB / 0.8632 GB, free: 49.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001948/2.874, allocations: 67.14 kB / 0.8632 GB, free: 49.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005135/2.879, allocations: 254.3 kB / 0.8635 GB, free: 49.76 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001155/2.88, allocations: 240.5 kB / 0.8637 GB, free: 49.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000404/2.881, allocations: 93.22 kB / 0.8638 GB, free: 49.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01053/2.891, allocations: 4.455 MB / 0.8682 GB, free: 48.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.415e-06/2.891, allocations: 0 / 0.8682 GB, free: 48.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01116/2.902, allocations: 1.965 MB / 0.8701 GB, free: 48.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001002/2.903, allocations: 219.5 kB / 0.8703 GB, free: 47.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02003/2.923, allocations: 9.702 MB / 0.8798 GB, free: 42.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/2.923, allocations: 0 / 0.8798 GB, free: 42.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009221/2.933, allocations: 4.339 MB / 0.884 GB, free: 38.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00636/2.939, allocations: 0.9853 MB / 0.885 GB, free: 37.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03979/2.979, allocations: 16.59 MB / 0.9012 GB, free: 23.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01179/2.991, allocations: 5.707 MB / 0.9067 GB, free: 19.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002017/2.993, allocations: 452.5 kB / 0.9072 GB, free: 18.69 MB / 394.7 MB Notification: Performance of SimCode: time 1.774e-06/2.993, allocations: 0 / 0.9072 GB, free: 18.69 MB / 394.7 MB Notification: Performance of Templates: time 0.7489/3.742, allocations: 194.2 MB / 1.097 GB, free: 88.81 MB / 426.7 MB