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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.84/1.84, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.697e-05, allocations: 4 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07888, allocations: 44.51 MB / 299.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3541/0.433, allocations: 90.64 MB / 390.5 MB, free: 19.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4333, allocations: 83.84 kB / 390.6 MB, free: 19.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8215/1.255, allocations: 160 MB / 0.5376 GB, free: 51.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.286e-06/1.255, allocations: 0 / 0.5376 GB, free: 51.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006093/1.256, allocations: 160.6 kB / 0.5378 GB, free: 51.18 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.0255/1.281, allocations: 7.876 MB / 0.5455 GB, free: 48.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/1.281, allocations: 10.62 kB / 0.5455 GB, free: 48.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0825/1.364, allocations: 16.48 MB / 0.5616 GB, free: 47.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04259/1.406, allocations: 13.49 MB / 0.5748 GB, free: 46.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006313/1.407, allocations: 0.5223 MB / 0.5753 GB, free: 46.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003189/1.41, allocations: 0.7232 MB / 0.576 GB, free: 46.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04175/1.452, allocations: 16.26 MB / 0.5919 GB, free: 41.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005808/1.453, allocations: 113.4 kB / 0.592 GB, free: 41.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002656/1.455, allocations: 332.7 kB / 0.5923 GB, free: 41.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002606/1.458, allocations: 1.479 MB / 0.5937 GB, free: 41.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03226/1.49, allocations: 12.72 MB / 0.6061 GB, free: 32.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.381/1.871, allocations: 73.31 MB / 0.6777 GB, free: 35.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02594/1.897, allocations: 7.458 MB / 0.685 GB, free: 34.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006263/1.904, allocations: 3.971 MB / 0.6889 GB, free: 34.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02389/1.927, allocations: 11.58 MB / 0.7002 GB, free: 32.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/1.928, allocations: 61.12 kB / 0.7003 GB, free: 32.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.832e-06/1.928, allocations: 3.062 kB / 0.7003 GB, free: 32.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2286/2.156, allocations: 37.92 MB / 0.7373 GB, free: 28.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/2.156, allocations: 398.9 kB / 0.7377 GB, free: 27.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01261/2.169, allocations: 6.169 MB / 0.7437 GB, free: 27.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006834/2.17, allocations: 81.22 kB / 0.7438 GB, free: 27.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00369/2.173, allocations: 4.876 MB / 0.7485 GB, free: 24.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001474/2.175, allocations: 1.247 MB / 0.7498 GB, free: 23.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007477/2.176, allocations: 163.1 kB / 0.7499 GB, free: 23.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005854/2.176, allocations: 0.6599 MB / 0.7506 GB, free: 23.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008747/2.185, allocations: 3.725 MB / 0.7542 GB, free: 21.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01171/2.197, allocations: 8.373 MB / 0.7624 GB, free: 14.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009738/2.207, allocations: 5.48 MB / 0.7677 GB, free: 12.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001194/2.207, allocations: 46.53 kB / 0.7678 GB, free: 12.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.0481/2.255, allocations: 16.22 MB / 0.7836 GB, free: 15.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/2.255, allocations: 72.97 kB / 0.7837 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/2.255, allocations: 160 kB / 0.7838 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02189/2.277, allocations: 5.507 MB / 0.7892 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007995/2.285, allocations: 1.793 MB / 0.791 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09049/2.376, allocations: 28.46 MB / 0.8188 GB, free: 3.203 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0412/2.417, allocations: 0.523 MB / 0.8193 GB, free: 2.773 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003704/2.421, allocations: 483.5 kB / 0.8197 GB, free: 2.309 MB / 458.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.005745/2.427, allocations: 0.7325 MB / 0.8205 GB, free: 1.574 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004047/2.431, allocations: 0.6556 MB / 0.8211 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03539/2.466, allocations: 10.88 MB / 0.8317 GB, free: 6.066 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.577e-05/2.466, allocations: 39.95 kB / 0.8318 GB, free: 6.027 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-05/2.466, allocations: 20 kB / 0.8318 GB, free: 6.008 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.508e-05/2.466, allocations: 19.88 kB / 0.8318 GB, free: 5.988 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3245/2.791, allocations: 23.91 MB / 0.8551 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.636e-05/2.791, allocations: 10.94 kB / 0.8552 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002487/2.793, allocations: 427.8 kB / 0.8556 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01913/2.813, allocations: 5.081 MB / 0.8605 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007537/2.813, allocations: 64.78 kB / 0.8606 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04597/2.859, allocations: 26.73 MB / 0.8867 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/2.859, allocations: 8.25 kB / 0.8867 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03503/2.895, allocations: 16.75 MB / 0.9031 GB, free: 99.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004011/2.899, allocations: 1.266 MB / 0.9043 GB, free: 99.28 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001825/2.9, allocations: 64.38 kB / 0.9044 GB, free: 99.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00506/2.906, allocations: 256.6 kB / 0.9046 GB, free: 99.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001265/2.907, allocations: 240.8 kB / 0.9048 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004157/2.907, allocations: 93 kB / 0.9049 GB, free: 99.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01086/2.918, allocations: 4.453 MB / 0.9093 GB, free: 97.65 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.105e-06/2.918, allocations: 2.594 kB / 0.9093 GB, free: 97.65 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01106/2.929, allocations: 1.962 MB / 0.9112 GB, free: 97.46 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.001008/2.93, allocations: 218.9 kB / 0.9114 GB, free: 97.33 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01976/2.95, allocations: 9.984 MB / 0.9211 GB, free: 93.86 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/2.95, allocations: 6.656 kB / 0.9212 GB, free: 93.86 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009464/2.96, allocations: 4.43 MB / 0.9255 GB, free: 91.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006498/2.966, allocations: 0.9736 MB / 0.9264 GB, free: 91.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04358/3.01, allocations: 16.6 MB / 0.9426 GB, free: 80.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01328/3.023, allocations: 5.715 MB / 0.9482 GB, free: 76.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001971/3.025, allocations: 449.7 kB / 0.9487 GB, free: 75.74 MB / 474.7 MB Notification: Performance of SimCode: time 1.926e-06/3.025, allocations: 3.562 kB / 0.9487 GB, free: 75.74 MB / 474.7 MB Notification: Performance of Templates: time 0.5557/3.581, allocations: 195.7 MB / 1.14 GB, free: 37.9 MB / 474.7 MB