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.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.247e-05/4.261e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1268, allocations: 47.57 MB / 316.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.511, allocations: 96.21 MB / 413.1 MB, free: 8.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.5113, allocations: 86.19 kB / 413.2 MB, free: 8.246 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8708/1.382, allocations: 161.3 MB / 0.5611 GB, free: 82.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.301e-06/1.382, allocations: 0 / 0.5611 GB, free: 82.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008569/1.383, allocations: 159.9 kB / 0.5612 GB, free: 82.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03904/1.422, allocations: 7.898 MB / 0.5689 GB, free: 79.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/1.422, allocations: 10.56 kB / 0.569 GB, free: 79.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09792/1.52, allocations: 16.49 MB / 0.5851 GB, free: 79.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03494/1.555, allocations: 13.5 MB / 0.5982 GB, free: 73.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005488/1.556, allocations: 0.5238 MB / 0.5988 GB, free: 73.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/1.558, allocations: 0.7188 MB / 0.5995 GB, free: 72.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0364/1.595, allocations: 16.2 MB / 0.6153 GB, free: 55.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004593/1.595, allocations: 107 kB / 0.6154 GB, free: 54.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001567/1.597, allocations: 337 kB / 0.6157 GB, free: 54.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002164/1.599, allocations: 1.48 MB / 0.6171 GB, free: 53.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02996/1.629, allocations: 12.48 MB / 0.6293 GB, free: 40.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4067/2.036, allocations: 73.41 MB / 0.701 GB, free: 46.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04545/2.081, allocations: 7.426 MB / 0.7083 GB, free: 46.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01053/2.092, allocations: 3.968 MB / 0.7121 GB, free: 46.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03687/2.129, allocations: 11.58 MB / 0.7234 GB, free: 44.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8e-05/2.129, allocations: 69.64 kB / 0.7235 GB, free: 44.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 1.273e-05/2.129, allocations: 2.688 kB / 0.7235 GB, free: 44.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.177/2.306, allocations: 37.94 MB / 0.7606 GB, free: 37.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/2.306, allocations: 400.2 kB / 0.7609 GB, free: 37.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01438/2.321, allocations: 6.195 MB / 0.767 GB, free: 35.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007186/2.321, allocations: 87.98 kB / 0.7671 GB, free: 35.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004372/2.326, allocations: 5.226 MB / 0.7722 GB, free: 31.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001675/2.327, allocations: 1.25 MB / 0.7734 GB, free: 30.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008954/2.328, allocations: 170.5 kB / 0.7736 GB, free: 30.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000628/2.329, allocations: 0.6526 MB / 0.7742 GB, free: 29.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007585/2.337, allocations: 3.726 MB / 0.7778 GB, free: 28.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/2.347, allocations: 8.349 MB / 0.786 GB, free: 18.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009775/2.357, allocations: 5.489 MB / 0.7914 GB, free: 14.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001163/2.357, allocations: 44 kB / 0.7914 GB, free: 14.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.04624/2.403, allocations: 16.13 MB / 0.8071 GB, free: 1.703 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/2.403, allocations: 82.3 kB / 0.8072 GB, free: 1.625 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002366/2.403, allocations: 160 kB / 0.8074 GB, free: 1.469 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02237/2.426, allocations: 5.546 MB / 0.8128 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007977/2.434, allocations: 1.793 MB / 0.8145 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05789/2.492, allocations: 28.15 MB / 0.842 GB, free: 1.965 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009537/2.501, allocations: 0.5178 MB / 0.8425 GB, free: 1.449 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001964/2.503, allocations: 484 kB / 0.843 GB, free: 0.9766 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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.groundColor[3],world.groundColor[2],world.groundColor[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 (947): * Single equations (assignments): 941 * 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.002142/2.505, allocations: 0.7428 MB / 0.8437 GB, free: 232 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.279/2.784, allocations: 0.6557 MB / 0.8444 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03074/2.815, allocations: 10.89 MB / 0.855 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.666e-05/2.815, allocations: 36.36 kB / 0.855 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.69e-05/2.815, allocations: 18.53 kB / 0.855 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.184e-05/2.815, allocations: 16.34 kB / 0.8551 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05542/2.871, allocations: 23.94 MB / 0.8784 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.496e-05/2.871, allocations: 7.25 kB / 0.8784 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002723/2.874, allocations: 429 kB / 0.8789 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02093/2.895, allocations: 5.076 MB / 0.8838 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007256/2.895, allocations: 62.38 kB / 0.8839 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04735/2.943, allocations: 26.74 MB / 0.91 GB, free: 98.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-06/2.943, allocations: 12.31 kB / 0.91 GB, free: 98.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03623/2.979, allocations: 16.79 MB / 0.9264 GB, free: 91.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004147/2.983, allocations: 1.271 MB / 0.9276 GB, free: 90.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002174/2.986, allocations: 57.84 kB / 0.9277 GB, free: 90.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005174/2.991, allocations: 254.7 kB / 0.9279 GB, free: 90.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001236/2.992, allocations: 238.8 kB / 0.9282 GB, free: 90.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005382/2.993, allocations: 96.78 kB / 0.9283 GB, free: 90.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01063/3.003, allocations: 4.467 MB / 0.9326 GB, free: 88.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.185e-06/3.003, allocations: 0 / 0.9326 GB, free: 88.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01083/3.014, allocations: 1.967 MB / 0.9345 GB, free: 86.79 MB / 474.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.001004/3.015, allocations: 218 kB / 0.9347 GB, free: 86.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01971/3.035, allocations: 9.708 MB / 0.9442 GB, free: 78.23 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/3.035, allocations: 6.25 kB / 0.9442 GB, free: 78.23 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01486/3.05, allocations: 4.372 MB / 0.9485 GB, free: 74.37 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006455/3.056, allocations: 0.9837 MB / 0.9495 GB, free: 73.57 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03863/3.095, allocations: 15.74 MB / 0.9648 GB, free: 59.61 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.109, allocations: 5.716 MB / 0.9704 GB, free: 55.47 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01962/3.129, allocations: 2.642 MB / 0.973 GB, free: 53.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003274/3.132, allocations: 393.2 kB / 0.9734 GB, free: 53.55 MB / 474.7 MB Notification: Performance of SimCode: time 4.186e-06/3.132, allocations: 0 / 0.9734 GB, free: 53.55 MB / 474.7 MB Notification: Performance of Templates: time 0.5584/3.691, allocations: 83.08 MB / 1.054 GB, free: 100.6 MB / 474.7 MB