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.963/1.963, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.137e-05/2.139e-05, allocations: 7.938 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.254, allocations: 44.49 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1612/0.4152, allocations: 103.1 MB / 397.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.4155, allocations: 91.89 kB / 397.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.357/1.772, allocations: 178.6 MB / 0.5625 GB, free: 30.68 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.865e-06/1.772, allocations: 0 / 0.5625 GB, free: 30.68 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0008085/1.773, allocations: 184.5 kB / 0.5626 GB, free: 30.67 MB / 378.8 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.03077/1.804, allocations: 9.154 MB / 0.5716 GB, free: 27.38 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/1.804, allocations: 12.47 kB / 0.5716 GB, free: 27.38 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08872/1.893, allocations: 16.65 MB / 0.5879 GB, free: 26.77 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03888/1.932, allocations: 14.57 MB / 0.6021 GB, free: 25.48 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004392/1.932, allocations: 278.9 kB / 0.6024 GB, free: 25.48 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003388/1.935, allocations: 0.5092 MB / 0.6029 GB, free: 25.47 MB / 378.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02562/1.961, allocations: 11.7 MB / 0.6143 GB, free: 25.43 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03847/2, allocations: 16.53 MB / 0.6304 GB, free: 21.82 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005187/2, allocations: 112 kB / 0.6305 GB, free: 21.8 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002366/2.003, allocations: 42.81 kB / 0.6306 GB, free: 21.8 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002644/2.005, allocations: 1.602 MB / 0.6321 GB, free: 21.79 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1236/2.129, allocations: 78.13 MB / 0.7084 GB, free: 2.418 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2791/2.408, allocations: 6.096 MB / 0.7144 GB, free: 71.64 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00689/2.415, allocations: 3.887 MB / 0.7182 GB, free: 71.59 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003166/2.418, allocations: 2.851 MB / 0.721 GB, free: 69.23 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.988e-05/2.418, allocations: 68.12 kB / 0.721 GB, free: 69.18 MB / 426.8 MB Notification: Performance of pre-optimization done (n=314): time 8.665e-06/2.418, allocations: 0 / 0.721 GB, free: 69.18 MB / 426.8 MB Notification: Performance of matching and sorting (n=415): time 0.1445/2.563, allocations: 40.65 MB / 0.7607 GB, free: 64.67 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/2.563, allocations: 403.5 kB / 0.7611 GB, free: 64.23 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01425/2.577, allocations: 5.919 MB / 0.7669 GB, free: 63.73 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008661/2.578, allocations: 25.7 kB / 0.7669 GB, free: 63.7 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004536/2.583, allocations: 5.554 MB / 0.7723 GB, free: 61.1 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002037/2.585, allocations: 1.454 MB / 0.7738 GB, free: 60.2 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/2.586, allocations: 0 / 0.7738 GB, free: 60.2 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0009255/2.587, allocations: 0.7126 MB / 0.7745 GB, free: 59.87 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008251/2.595, allocations: 3.977 MB / 0.7783 GB, free: 59.85 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/2.606, allocations: 9.089 MB / 0.7872 GB, free: 53.02 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/2.617, allocations: 5.969 MB / 0.793 GB, free: 50.94 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/2.618, allocations: 51.84 kB / 0.7931 GB, free: 50.94 MB / 426.8 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.0427/2.66, allocations: 15.7 MB / 0.8084 GB, free: 46.49 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/2.661, allocations: 83.22 kB / 0.8085 GB, free: 46.49 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002288/2.661, allocations: 179.4 kB / 0.8087 GB, free: 46.49 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02027/2.681, allocations: 4.555 MB / 0.8131 GB, free: 44.03 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008316/2.689, allocations: 2.027 MB / 0.8151 GB, free: 42.25 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04556/2.735, allocations: 23.43 MB / 0.838 GB, free: 22.17 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01002/2.745, allocations: 371.2 kB / 0.8383 GB, free: 21.89 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002029/2.747, allocations: 0.5249 MB / 0.8389 GB, free: 21.38 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * 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 (1092): * Single equations (assignments): 1087 * 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,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002618/2.75, allocations: 0.5846 MB / 0.8394 GB, free: 20.8 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001652/2.751, allocations: 0.6788 MB / 0.8401 GB, free: 20.11 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02823/2.78, allocations: 10.51 MB / 0.8504 GB, free: 11.86 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-05/2.78, allocations: 44 kB / 0.8504 GB, free: 11.82 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.953e-05/2.78, allocations: 20 kB / 0.8504 GB, free: 11.8 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.649e-05/2.78, allocations: 19.83 kB / 0.8504 GB, free: 11.8 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3441/3.124, allocations: 23.25 MB / 0.8731 GB, free: 74.16 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-05/3.124, allocations: 7.812 kB / 0.8731 GB, free: 74.16 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003342/3.128, allocations: 0.5316 MB / 0.8737 GB, free: 74.16 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01927/3.147, allocations: 4.045 MB / 0.8776 GB, free: 74.13 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008724/3.148, allocations: 17.98 kB / 0.8776 GB, free: 74.13 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04065/3.188, allocations: 20.28 MB / 0.8974 GB, free: 72.81 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/3.189, allocations: 14.12 kB / 0.8975 GB, free: 72.81 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03716/3.226, allocations: 17.2 MB / 0.9143 GB, free: 70.28 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004573/3.23, allocations: 1.34 MB / 0.9156 GB, free: 70.18 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002344/3.233, allocations: 16.56 kB / 0.9156 GB, free: 70.18 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005536/3.238, allocations: 187.5 kB / 0.9158 GB, free: 70.18 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001462/3.24, allocations: 290 kB / 0.916 GB, free: 70.17 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007216/3.241, allocations: 114.3 kB / 0.9161 GB, free: 70.17 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01034/3.251, allocations: 4.13 MB / 0.9202 GB, free: 69.95 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.095e-06/3.251, allocations: 2.781 kB / 0.9202 GB, free: 69.95 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.0131/3.264, allocations: 1.935 MB / 0.9221 GB, free: 69.95 MB / 442.8 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 (291): * Single equations (assignments): 287 * 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.001291/3.265, allocations: 204.8 kB / 0.9223 GB, free: 69.87 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01883/3.284, allocations: 10.04 MB / 0.9321 GB, free: 67.44 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/3.284, allocations: 3.25 kB / 0.9321 GB, free: 67.44 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008549/3.293, allocations: 4.241 MB / 0.9362 GB, free: 65.6 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006933/3.3, allocations: 0.9131 MB / 0.9371 GB, free: 65.29 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05352/3.353, allocations: 18.77 MB / 0.9554 GB, free: 58.39 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01574/3.369, allocations: 6.571 MB / 0.9619 GB, free: 56.34 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002383/3.372, allocations: 483.7 kB / 0.9623 GB, free: 56.33 MB / 442.8 MB Notification: Performance of SimCode: time 1.914e-06/3.372, allocations: 3.375 kB / 0.9623 GB, free: 56.33 MB / 442.8 MB Notification: Performance of Templates: time 0.5028/3.874, allocations: 151.2 MB / 1.11 GB, free: 58.79 MB / 442.8 MB