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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.184e-05/3.202e-05, allocations: 4 kB / 225 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.218, allocations: 38.77 MB / 263.8 MB, free: 9.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1618/0.3799, allocations: 98.08 MB / 361.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.3802, allocations: 87.95 kB / 361.9 MB, free: 7.527 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036/1.416, allocations: 182.4 MB / 0.5316 GB, free: 32.87 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.509e-06/1.416, allocations: 0 / 0.5316 GB, free: 32.87 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006791/1.417, allocations: 183 kB / 0.5318 GB, free: 32.86 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.02942/1.446, allocations: 9.155 MB / 0.5407 GB, free: 29.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/1.446, allocations: 7.594 kB / 0.5407 GB, free: 29.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0856/1.532, allocations: 16.65 MB / 0.557 GB, free: 28.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04196/1.574, allocations: 14.59 MB / 0.5712 GB, free: 27.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006975/1.575, allocations: 0.631 MB / 0.5719 GB, free: 27.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003627/1.578, allocations: 0.86 MB / 0.5727 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05164/1.63, allocations: 19.15 MB / 0.5914 GB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006647/1.631, allocations: 108 kB / 0.5915 GB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00321/1.634, allocations: 392.1 kB / 0.5919 GB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002794/1.637, allocations: 1.597 MB / 0.5934 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04216/1.679, allocations: 15.21 MB / 0.6083 GB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3716/2.051, allocations: 80.54 MB / 0.6869 GB, free: 39.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02812/2.079, allocations: 7.813 MB / 0.6946 GB, free: 39.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006968/2.086, allocations: 3.996 MB / 0.6985 GB, free: 39.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02771/2.114, allocations: 14.11 MB / 0.7122 GB, free: 35.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/2.114, allocations: 78 kB / 0.7123 GB, free: 35.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 8.21e-06/2.114, allocations: 0 / 0.7123 GB, free: 35.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=408): time 0.1742/2.288, allocations: 38.04 MB / 0.7495 GB, free: 28.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/2.288, allocations: 403 kB / 0.7499 GB, free: 28.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01654/2.305, allocations: 6.579 MB / 0.7563 GB, free: 26.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008763/2.305, allocations: 94.73 kB / 0.7564 GB, free: 26.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004569/2.31, allocations: 5.481 MB / 0.7617 GB, free: 22.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002003/2.312, allocations: 1.488 MB / 0.7632 GB, free: 20.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/2.314, allocations: 188.3 kB / 0.7634 GB, free: 20.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008796/2.314, allocations: 0.7028 MB / 0.764 GB, free: 20.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008919/2.323, allocations: 4.099 MB / 0.768 GB, free: 18.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01335/2.337, allocations: 9.058 MB / 0.7769 GB, free: 8.832 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/2.35, allocations: 6.061 MB / 0.7828 GB, free: 3.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001911/2.35, allocations: 48 kB / 0.7829 GB, free: 3.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.3002/2.651, allocations: 16.5 MB / 0.799 GB, free: 80.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001607/2.651, allocations: 78.41 kB / 0.799 GB, free: 80.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002406/2.651, allocations: 175.3 kB / 0.7992 GB, free: 80.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01929/2.67, allocations: 4.701 MB / 0.8038 GB, free: 80.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00884/2.679, allocations: 1.967 MB / 0.8057 GB, free: 80.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05235/2.732, allocations: 25.12 MB / 0.8303 GB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01067/2.742, allocations: 0.5346 MB / 0.8308 GB, free: 78.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002225/2.745, allocations: 0.5125 MB / 0.8313 GB, free: 78.14 MB / 410.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.003457/2.748, allocations: 0.8035 MB / 0.8321 GB, free: 77.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001948/2.75, allocations: 0.7097 MB / 0.8328 GB, free: 77.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03154/2.782, allocations: 10.86 MB / 0.8434 GB, free: 73.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.31e-05/2.782, allocations: 43.45 kB / 0.8434 GB, free: 73.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-05/2.782, allocations: 23.5 kB / 0.8434 GB, free: 73.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.776e-05/2.782, allocations: 16.73 kB / 0.8435 GB, free: 73.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06602/2.848, allocations: 23.69 MB / 0.8666 GB, free: 64.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.789e-05/2.848, allocations: 9.062 kB / 0.8666 GB, free: 64.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003614/2.852, allocations: 0.5225 MB / 0.8671 GB, free: 64.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01877/2.87, allocations: 4.141 MB / 0.8711 GB, free: 64.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009052/2.871, allocations: 78.08 kB / 0.8712 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04342/2.915, allocations: 21.85 MB / 0.8926 GB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/2.915, allocations: 11.94 kB / 0.8926 GB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0373/2.952, allocations: 17.5 MB / 0.9097 GB, free: 30.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004706/2.957, allocations: 1.371 MB / 0.911 GB, free: 28.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002496/2.96, allocations: 84.84 kB / 0.9111 GB, free: 28.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005915/2.965, allocations: 243.6 kB / 0.9113 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001485/2.967, allocations: 278.3 kB / 0.9116 GB, free: 28.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008051/2.968, allocations: 119.6 kB / 0.9117 GB, free: 28.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01207/2.98, allocations: 4.742 MB / 0.9163 GB, free: 24.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.328e-06/2.98, allocations: 0 / 0.9163 GB, free: 24.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01346/2.993, allocations: 2.196 MB / 0.9185 GB, free: 21.96 MB / 410.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.001342/2.995, allocations: 273.1 kB / 0.9187 GB, free: 21.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02016/3.015, allocations: 10.14 MB / 0.9286 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/3.015, allocations: 1.969 kB / 0.9286 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2523/3.267, allocations: 4.28 MB / 0.9328 GB, free: 82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007319/3.275, allocations: 1.05 MB / 0.9338 GB, free: 81.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0552/3.33, allocations: 18.93 MB / 0.9523 GB, free: 78.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01561/3.346, allocations: 6.569 MB / 0.9587 GB, free: 77.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00255/3.348, allocations: 0.4902 MB / 0.9592 GB, free: 77.8 MB / 410.7 MB Notification: Performance of SimCode: time 3.158e-06/3.348, allocations: 0 / 0.9592 GB, free: 77.8 MB / 410.7 MB Notification: Performance of Templates: time 0.5118/3.86, allocations: 152.5 MB / 1.108 GB, free: 78.66 MB / 410.7 MB