Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.998e-05/4.023e-05, allocations: 3.25 kB / 255.3 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08144/0.0815, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4444, allocations: 103.8 MB / 403.6 MB, free: 16.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.4447, allocations: 88.73 kB / 403.7 MB, free: 16.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9336/1.378, allocations: 182.4 MB / 0.5724 GB, free: 56.42 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.526e-06/1.378, allocations: 4 kB / 0.5724 GB, free: 56.42 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000727/1.379, allocations: 186.7 kB / 0.5725 GB, free: 56.41 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.02995/1.409, allocations: 9.148 MB / 0.5815 GB, free: 53.06 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/1.409, allocations: 11.59 kB / 0.5815 GB, free: 53.06 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08651/1.496, allocations: 16.65 MB / 0.5978 GB, free: 50.19 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03828/1.534, allocations: 14.59 MB / 0.612 GB, free: 36.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00067/1.535, allocations: 0.6223 MB / 0.6126 GB, free: 36.03 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003616/1.538, allocations: 0.8566 MB / 0.6134 GB, free: 35.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04948/1.588, allocations: 19.25 MB / 0.6322 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006431/1.589, allocations: 111 kB / 0.6324 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003408/1.592, allocations: 397.9 kB / 0.6327 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00279/1.595, allocations: 1.595 MB / 0.6343 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04033/1.635, allocations: 15.35 MB / 0.6493 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3867/2.022, allocations: 80.55 MB / 0.7279 GB, free: 46.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02902/2.051, allocations: 7.837 MB / 0.7356 GB, free: 46.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006955/2.058, allocations: 4 MB / 0.7395 GB, free: 46.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02748/2.086, allocations: 14.1 MB / 0.7533 GB, free: 38.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/2.086, allocations: 67.81 kB / 0.7533 GB, free: 38.46 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 7.815e-06/2.086, allocations: 0 / 0.7533 GB, free: 38.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.1704/2.256, allocations: 38.06 MB / 0.7905 GB, free: 28.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/2.256, allocations: 403.7 kB / 0.7909 GB, free: 27.78 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0158/2.272, allocations: 6.576 MB / 0.7973 GB, free: 23.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008528/2.273, allocations: 85.7 kB / 0.7974 GB, free: 23.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004415/2.277, allocations: 5.495 MB / 0.8028 GB, free: 18.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/2.279, allocations: 1.478 MB / 0.8042 GB, free: 16.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/2.28, allocations: 187 kB / 0.8044 GB, free: 16.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008205/2.281, allocations: 0.7001 MB / 0.8051 GB, free: 16.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008302/2.289, allocations: 4.099 MB / 0.8091 GB, free: 12.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0146/2.304, allocations: 9.112 MB / 0.818 GB, free: 1.406 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2887/2.593, allocations: 6.623 MB / 0.8244 GB, free: 90.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001771/2.593, allocations: 50.31 kB / 0.8245 GB, free: 90.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04703/2.64, allocations: 16.71 MB / 0.8408 GB, free: 89.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/2.64, allocations: 81.09 kB / 0.8409 GB, free: 89.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000225/2.641, allocations: 181.6 kB / 0.8411 GB, free: 89.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01966/2.66, allocations: 4.701 MB / 0.8456 GB, free: 89.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008432/2.669, allocations: 1.96 MB / 0.8476 GB, free: 89.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05172/2.721, allocations: 25.11 MB / 0.8721 GB, free: 82.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/2.732, allocations: 0.5383 MB / 0.8726 GB, free: 82.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001971/2.734, allocations: 0.5145 MB / 0.8731 GB, free: 82.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003085/2.737, allocations: 0.8005 MB / 0.8739 GB, free: 81.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001827/2.739, allocations: 0.7169 MB / 0.8746 GB, free: 81.77 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03272/2.771, allocations: 10.85 MB / 0.8852 GB, free: 77.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.676e-05/2.772, allocations: 42.83 kB / 0.8852 GB, free: 77.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.901e-05/2.772, allocations: 22.22 kB / 0.8853 GB, free: 77.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.706e-05/2.772, allocations: 15.61 kB / 0.8853 GB, free: 77.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06574/2.837, allocations: 23.72 MB / 0.9084 GB, free: 68.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.823e-05/2.838, allocations: 8 kB / 0.9084 GB, free: 68.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00332/2.841, allocations: 0.5241 MB / 0.9089 GB, free: 67.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01758/2.859, allocations: 4.146 MB / 0.913 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009176/2.86, allocations: 80 kB / 0.9131 GB, free: 64.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04354/2.903, allocations: 21.83 MB / 0.9344 GB, free: 46.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-05/2.903, allocations: 11.94 kB / 0.9344 GB, free: 46.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03677/2.94, allocations: 17.5 MB / 0.9515 GB, free: 30.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004632/2.945, allocations: 1.368 MB / 0.9528 GB, free: 29.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002338/2.947, allocations: 78.92 kB / 0.9529 GB, free: 29.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006006/2.953, allocations: 246 kB / 0.9531 GB, free: 29.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00146/2.955, allocations: 290.2 kB / 0.9534 GB, free: 29.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005389/2.955, allocations: 108.9 kB / 0.9535 GB, free: 29.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01175/2.967, allocations: 4.734 MB / 0.9581 GB, free: 24.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.403e-06/2.967, allocations: 0 / 0.9581 GB, free: 24.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01272/2.98, allocations: 2.195 MB / 0.9603 GB, free: 22.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001278/2.981, allocations: 272 kB / 0.9605 GB, free: 22.47 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02071/3.002, allocations: 10.45 MB / 0.9707 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/3.002, allocations: 0 / 0.9707 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009032/3.011, allocations: 4.36 MB / 0.975 GB, free: 7.688 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007159/3.018, allocations: 1.048 MB / 0.976 GB, free: 6.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3224/3.34, allocations: 18.95 MB / 0.9945 GB, free: 84.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0158/3.356, allocations: 6.564 MB / 1.001 GB, free: 83.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/3.359, allocations: 492.1 kB / 1.001 GB, free: 83.42 MB / 442.7 MB Notification: Performance of SimCode: time 1.83e-06/3.359, allocations: 0 / 1.001 GB, free: 83.42 MB / 442.7 MB Notification: Performance of Templates: time 0.5149/3.874, allocations: 154.2 MB / 1.152 GB, free: 100.6 MB / 458.7 MB