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.885/1.885, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.439e-05/2.456e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2519, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.3908, allocations: 89.98 MB / 384.1 MB, free: 7.996 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.3911, allocations: 91.88 kB / 384.2 MB, free: 7.906 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7484/1.14, allocations: 156.9 MB / 0.5284 GB, free: 8.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/1.14, allocations: 4 kB / 0.5284 GB, free: 8.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005962/1.14, allocations: 156 kB / 0.5285 GB, free: 8.008 MB / 362.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.02408/1.164, allocations: 7.877 MB / 0.5362 GB, free: 52 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/1.164, allocations: 12.03 kB / 0.5362 GB, free: 40 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08661/1.251, allocations: 16.49 MB / 0.5523 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0412/1.292, allocations: 13.46 MB / 0.5655 GB, free: 1.953 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005027/1.293, allocations: 228 kB / 0.5657 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003023/1.296, allocations: 447.7 kB / 0.5661 GB, free: 1.293 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2928/1.589, allocations: 9.466 MB / 0.5753 GB, free: 61.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03204/1.621, allocations: 14.25 MB / 0.5893 GB, free: 57.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005295/1.621, allocations: 115.1 kB / 0.5894 GB, free: 57.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002267/1.624, allocations: 39.75 kB / 0.5894 GB, free: 57.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002677/1.626, allocations: 1.484 MB / 0.5909 GB, free: 57.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09456/1.721, allocations: 71.23 MB / 0.6604 GB, free: 12.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007889/1.729, allocations: 5.316 MB / 0.6656 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00579/1.735, allocations: 3.866 MB / 0.6694 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/1.736, allocations: 0.8291 MB / 0.6702 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.784e-05/1.736, allocations: 66.38 kB / 0.6703 GB, free: 7.812 MB / 394.7 MB Notification: Performance of pre-optimization done (n=287): time 7.726e-06/1.736, allocations: 0 / 0.6703 GB, free: 7.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=347): time 0.1435/1.879, allocations: 40.83 MB / 0.7101 GB, free: 13.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002787/1.88, allocations: 401.3 kB / 0.7105 GB, free: 12.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01378/1.894, allocations: 5.449 MB / 0.7158 GB, free: 8.168 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007412/1.894, allocations: 25.7 kB / 0.7159 GB, free: 8.137 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005633/1.9, allocations: 4.955 MB / 0.7207 GB, free: 3.609 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002068/1.902, allocations: 1.233 MB / 0.7219 GB, free: 2.492 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007912/1.903, allocations: 0 / 0.7219 GB, free: 2.492 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000748/1.904, allocations: 0.6739 MB / 0.7226 GB, free: 1.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0175/1.921, allocations: 4.168 MB / 0.7266 GB, free: 0 / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2599/2.181, allocations: 8.382 MB / 0.7348 GB, free: 81.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01065/2.192, allocations: 5.408 MB / 0.7401 GB, free: 81.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002707/2.192, allocations: 49.16 kB / 0.7402 GB, free: 81.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.04271/2.235, allocations: 15.31 MB / 0.7551 GB, free: 81.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/2.235, allocations: 82.66 kB / 0.7552 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002461/2.235, allocations: 167.5 kB / 0.7553 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02096/2.256, allocations: 5.373 MB / 0.7606 GB, free: 80.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009713/2.266, allocations: 1.851 MB / 0.7624 GB, free: 80.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06218/2.328, allocations: 25.95 MB / 0.7877 GB, free: 73.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009205/2.338, allocations: 370.7 kB / 0.7881 GB, free: 73.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001978/2.34, allocations: 493.5 kB / 0.7886 GB, free: 73.6 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * 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 (976): * Single equations (assignments): 970 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002906/2.343, allocations: 0.543 MB / 0.7891 GB, free: 73.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/2.344, allocations: 0.6264 MB / 0.7897 GB, free: 73.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02862/2.373, allocations: 10.59 MB / 0.8 GB, free: 69.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.131e-05/2.373, allocations: 39.64 kB / 0.8001 GB, free: 69.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.392e-05/2.373, allocations: 16.41 kB / 0.8001 GB, free: 69.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.557e-05/2.373, allocations: 20 kB / 0.8001 GB, free: 69.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05283/2.426, allocations: 22.8 MB / 0.8224 GB, free: 56.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-05/2.426, allocations: 8 kB / 0.8224 GB, free: 56.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/2.428, allocations: 449.5 kB / 0.8228 GB, free: 56.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0189/2.447, allocations: 5.015 MB / 0.8277 GB, free: 53.26 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000739/2.448, allocations: 21.58 kB / 0.8277 GB, free: 53.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04132/2.49, allocations: 24.69 MB / 0.8518 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.334e-05/2.49, allocations: 7.938 kB / 0.8519 GB, free: 32.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03406/2.524, allocations: 16.52 MB / 0.868 GB, free: 16.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003809/2.528, allocations: 1.232 MB / 0.8692 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001615/2.529, allocations: 8 kB / 0.8692 GB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004628/2.534, allocations: 203.6 kB / 0.8694 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001216/2.535, allocations: 250.2 kB / 0.8696 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000398/2.535, allocations: 93.03 kB / 0.8697 GB, free: 15.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00871/2.544, allocations: 3.809 MB / 0.8734 GB, free: 11.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.198e-06/2.544, allocations: 4 kB / 0.8734 GB, free: 11.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01125/2.556, allocations: 1.736 MB / 0.8751 GB, free: 9.555 MB / 426.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 (222): * Single equations (assignments): 216 * 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.001023/2.557, allocations: 164.8 kB / 0.8753 GB, free: 9.398 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2747/2.831, allocations: 9.599 MB / 0.8847 GB, free: 81.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/2.831, allocations: 2.719 kB / 0.8847 GB, free: 81.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009984/2.841, allocations: 4.339 MB / 0.8889 GB, free: 81.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006109/2.848, allocations: 0.8503 MB / 0.8897 GB, free: 81.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.043/2.891, allocations: 16.47 MB / 0.9058 GB, free: 78.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01267/2.903, allocations: 5.715 MB / 0.9114 GB, free: 77.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001889/2.905, allocations: 431.8 kB / 0.9118 GB, free: 77.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.957e-06/2.905, allocations: 3.375 kB / 0.9118 GB, free: 77.51 MB / 426.7 MB Notification: Performance of Templates: time 0.5702/3.475, allocations: 192.5 MB / 1.1 GB, free: 83.82 MB / 442.7 MB