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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 2.08/2.08, allocations: 224.7 MB / 241.1 MB, free: 1.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.453e-05/2.448e-05, allocations: 0 / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 50.42 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.4708/0.5805, allocations: 94.12 MB / 439.1 MB, free: 2.059 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05975/0.6403, allocations: 20.27 MB / 459.4 MB, free: 4.648 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02613/0.6665, allocations: 0.5064 MB / 459.9 MB, free: 4.371 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0188/0.6854, allocations: 4.891 MB / 464.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05744/0.7429, allocations: 13.33 MB / 478.1 MB, free: 2.086 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009727/0.7527, allocations: 1.63 MB / 479.7 MB, free: 464 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.6994/1.452, allocations: 139.5 MB / 0.6047 GB, free: 83.54 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02151/1.474, allocations: 11.7 MB / 0.6161 GB, free: 75.13 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005369/1.479, allocations: 2.141 MB / 0.6182 GB, free: 73.72 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006728/1.486, allocations: 3.283 MB / 0.6214 GB, free: 71.23 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004863/1.491, allocations: 1.218 MB / 0.6226 GB, free: 70.24 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002624/1.493, allocations: 272 kB / 0.6229 GB, free: 69.97 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005722/1.499, allocations: 3.757 MB / 0.6265 GB, free: 67.14 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003936/1.503, allocations: 0.6328 MB / 0.6272 GB, free: 66.51 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/1.521, allocations: 14.28 MB / 0.6411 GB, free: 54.08 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/1.521, allocations: 0 / 0.6411 GB, free: 54.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.527e-06/1.521, allocations: 0 / 0.6411 GB, free: 54.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005496/1.522, allocations: 0 / 0.6411 GB, free: 54.08 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02915/1.551, allocations: 8.852 MB / 0.6498 GB, free: 45.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.551, allocations: 12.03 kB / 0.6498 GB, free: 45.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6947/2.246, allocations: 42.01 MB / 0.6908 GB, free: 5.723 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03073/2.277, allocations: 9.224 MB / 0.6998 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007532/2.278, allocations: 0.5243 MB / 0.7003 GB, free: 14.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004556/2.282, allocations: 0.7286 MB / 0.701 GB, free: 14.02 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06739/2.35, allocations: 19.42 MB / 0.72 GB, free: 9.824 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004487/2.35, allocations: 96.86 kB / 0.7201 GB, free: 9.758 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001887/2.352, allocations: 325.6 kB / 0.7204 GB, free: 9.488 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007558/2.36, allocations: 2.817 MB / 0.7231 GB, free: 6.711 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05638/2.416, allocations: 15.81 MB / 0.7386 GB, free: 7.148 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8876/3.304, allocations: 72.93 MB / 0.8098 GB, free: 76.32 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03788/3.342, allocations: 8.12 MB / 0.8177 GB, free: 75.55 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03429/3.376, allocations: 14.35 MB / 0.8318 GB, free: 70.06 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.782e-05/3.376, allocations: 67.86 kB / 0.8318 GB, free: 70.01 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=310): time 8.055e-06/3.376, allocations: 0 / 0.8318 GB, free: 70.01 MB / 0.4949 GB Notification: Performance of matching and sorting (n=416): time 0.3254/3.702, allocations: 49.07 MB / 0.8797 GB, free: 24 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/3.702, allocations: 417.2 kB / 0.8801 GB, free: 23.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01707/3.719, allocations: 7.445 MB / 0.8874 GB, free: 16.06 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/3.72, allocations: 92.59 kB / 0.8875 GB, free: 15.97 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004871/3.725, allocations: 5.419 MB / 0.8928 GB, free: 10.54 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002391/3.727, allocations: 1.507 MB / 0.8943 GB, free: 9.051 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/3.729, allocations: 188.5 kB / 0.8944 GB, free: 8.867 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008189/3.73, allocations: 0.6954 MB / 0.8951 GB, free: 8.16 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0155/3.745, allocations: 4.414 MB / 0.8994 GB, free: 3.738 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05024/3.795, allocations: 9.329 MB / 0.9085 GB, free: 8.078 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02425/3.82, allocations: 6.309 MB / 0.9147 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001559/3.82, allocations: 48.56 kB / 0.9147 GB, free: 1.867 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.06607/3.886, allocations: 17.65 MB / 0.932 GB, free: 1.27 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001588/3.886, allocations: 79.94 kB / 0.9321 GB, free: 1.191 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003158/3.887, allocations: 168.1 kB / 0.9322 GB, free: 1.027 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03138/3.918, allocations: 5.247 MB / 0.9373 GB, free: 11.77 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/3.931, allocations: 1.943 MB / 0.9392 GB, free: 9.996 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4193/4.351, allocations: 29.31 MB / 0.9679 GB, free: 212.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01209/4.363, allocations: 0.5629 MB / 0.9684 GB, free: 212.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002381/4.365, allocations: 0.5005 MB / 0.9689 GB, free: 212.6 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * Number of states: 0 () * Number of discrete variables: 73 (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],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1042 * 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%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01265/4.378, allocations: 4.033 MB / 0.9728 GB, free: 211 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00257/4.38, allocations: 0.709 MB / 0.9735 GB, free: 211 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04449/4.425, allocations: 11.88 MB / 0.9851 GB, free: 206.7 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.75e-05/4.425, allocations: 42.88 kB / 0.9852 GB, free: 206.7 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.313e-05/4.425, allocations: 23.59 kB / 0.9852 GB, free: 206.7 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.862e-05/4.425, allocations: 23.03 kB / 0.9852 GB, free: 206.7 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08533/4.511, allocations: 25.7 MB / 1.01 GB, free: 195.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-05/4.511, allocations: 8 kB / 1.01 GB, free: 195.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005263/4.516, allocations: 0.5772 MB / 1.011 GB, free: 195.2 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0277/4.544, allocations: 4.827 MB / 1.016 GB, free: 190.4 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009898/4.545, allocations: 72.94 kB / 1.016 GB, free: 190.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06223/4.607, allocations: 26.08 MB / 1.041 GB, free: 164.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/4.607, allocations: 11.38 kB / 1.041 GB, free: 164.3 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05352/4.661, allocations: 19.2 MB / 1.06 GB, free: 145.1 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005125/4.666, allocations: 1.494 MB / 1.061 GB, free: 143.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002504/4.668, allocations: 72.94 kB / 1.061 GB, free: 143.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007061/4.675, allocations: 279.5 kB / 1.062 GB, free: 143.2 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00157/4.677, allocations: 290.6 kB / 1.062 GB, free: 142.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004885/4.678, allocations: 116.6 kB / 1.062 GB, free: 142.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01145/4.689, allocations: 5.427 MB / 1.067 GB, free: 137.4 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.766e-06/4.689, allocations: 0 / 1.067 GB, free: 137.4 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01217/4.701, allocations: 2.261 MB / 1.07 GB, free: 135.2 MB / 0.5418 GB 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 (287): * Single equations (assignments): 283 * 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%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001666/4.703, allocations: 286.1 kB / 1.07 GB, free: 134.9 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0273/4.73, allocations: 11.14 MB / 1.081 GB, free: 124.2 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.319e-05/4.73, allocations: 4 kB / 1.081 GB, free: 124.2 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01834/4.749, allocations: 4.807 MB / 1.085 GB, free: 119.4 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0127/4.762, allocations: 1.051 MB / 1.086 GB, free: 118.4 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06931/4.831, allocations: 25.9 MB / 1.112 GB, free: 92.59 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01963/4.851, allocations: 6.568 MB / 1.118 GB, free: 85.99 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004323/4.855, allocations: 0.4974 MB / 1.119 GB, free: 85.49 MB / 0.5418 GB Notification: Performance of SimCode: time 1.483e-06/4.855, allocations: 0 / 1.119 GB, free: 85.49 MB / 0.5418 GB Notification: Performance of Templates: time 0.6522/5.507, allocations: 156.4 MB / 1.271 GB, free: 144.1 MB / 0.5418 GB