Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 2.216/2.216, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.169e-05, allocations: 7.984 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1088, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.4443/0.5531, allocations: 91.79 MB / 436.8 MB, free: 2.289 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06118/0.6144, allocations: 19.39 MB / 456.2 MB, free: 7.09 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02562/0.64, allocations: 0.4993 MB / 456.7 MB, free: 7.008 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01846/0.6586, allocations: 4.811 MB / 461.5 MB, free: 2.754 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05536/0.714, allocations: 13.18 MB / 474.6 MB, free: 5.543 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009223/0.7233, allocations: 1.44 MB / 476.1 MB, free: 4.102 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.7158/1.439, allocations: 139.3 MB / 0.6009 GB, free: 89.01 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0216/1.461, allocations: 8.425 MB / 0.6092 GB, free: 82.98 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006654/1.468, allocations: 2.083 MB / 0.6112 GB, free: 81.61 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008317/1.476, allocations: 3.044 MB / 0.6142 GB, free: 79.31 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005004/1.481, allocations: 1.057 MB / 0.6152 GB, free: 78.44 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00255/1.484, allocations: 248 kB / 0.6154 GB, free: 78.2 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005424/1.489, allocations: 3.417 MB / 0.6188 GB, free: 75.62 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003573/1.493, allocations: 0.5774 MB / 0.6193 GB, free: 75.05 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01557/1.508, allocations: 11.61 MB / 0.6307 GB, free: 64.94 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/1.508, allocations: 0 / 0.6307 GB, free: 64.94 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.527e-06/1.508, allocations: 0 / 0.6307 GB, free: 64.94 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005383/1.509, allocations: 0 / 0.6307 GB, free: 64.94 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02688/1.536, allocations: 7.954 MB / 0.6385 GB, free: 57.56 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/1.536, allocations: 12.03 kB / 0.6385 GB, free: 57.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6952/2.231, allocations: 41.78 MB / 0.6793 GB, free: 17.64 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0294/2.261, allocations: 8.367 MB / 0.6874 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005613/2.261, allocations: 448.9 kB / 0.6879 GB, free: 11.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003303/2.264, allocations: 0.615 MB / 0.6885 GB, free: 10.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05208/2.317, allocations: 16.99 MB / 0.7051 GB, free: 10.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006173/2.317, allocations: 102 kB / 0.7052 GB, free: 10.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003501/2.321, allocations: 278.3 kB / 0.7054 GB, free: 9.977 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009128/2.33, allocations: 2.859 MB / 0.7082 GB, free: 7.156 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04978/2.38, allocations: 13.54 MB / 0.7214 GB, free: 9.883 MB / 490.7 MB 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.9102/3.29, allocations: 68.74 MB / 0.7886 GB, free: 78.5 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03771/3.328, allocations: 8.032 MB / 0.7964 GB, free: 77.77 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03188/3.36, allocations: 12.21 MB / 0.8083 GB, free: 75.73 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.387e-05/3.36, allocations: 75.72 kB / 0.8084 GB, free: 75.69 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=294): time 8.456e-06/3.36, allocations: 3.812 kB / 0.8084 GB, free: 75.69 MB / 0.4949 GB Notification: Performance of matching and sorting (n=360): time 0.351/3.711, allocations: 51.14 MB / 0.8584 GB, free: 47.08 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/3.711, allocations: 398 kB / 0.8587 GB, free: 46.61 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01795/3.729, allocations: 7.194 MB / 0.8658 GB, free: 41.3 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001079/3.73, allocations: 82.52 kB / 0.8658 GB, free: 41.25 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004902/3.735, allocations: 4.981 MB / 0.8707 GB, free: 37.62 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.00239/3.738, allocations: 1.318 MB / 0.872 GB, free: 36.51 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001589/3.739, allocations: 171.4 kB / 0.8721 GB, free: 36.47 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0007226/3.74, allocations: 0.6653 MB / 0.8728 GB, free: 35.93 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01039/3.75, allocations: 4.094 MB / 0.8768 GB, free: 32.27 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01348/3.764, allocations: 8.792 MB / 0.8854 GB, free: 21.23 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01362/3.778, allocations: 5.832 MB / 0.8911 GB, free: 15.53 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000156/3.778, allocations: 44 kB / 0.8911 GB, free: 15.48 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.06175/3.84, allocations: 17.46 MB / 0.9082 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001574/3.84, allocations: 76 kB / 0.9082 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003054/3.84, allocations: 164 kB / 0.9084 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03641/3.877, allocations: 6.098 MB / 0.9144 GB, free: 8.668 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/3.889, allocations: 1.831 MB / 0.9161 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4839/4.373, allocations: 31.87 MB / 0.9473 GB, free: 130.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01191/4.385, allocations: 0.5566 MB / 0.9478 GB, free: 130.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002421/4.388, allocations: 485.4 kB / 0.9483 GB, free: 130.4 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (968): * Single equations (assignments): 962 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01066/4.398, allocations: 3.534 MB / 0.9517 GB, free: 130.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002291/4.401, allocations: 0.6737 MB / 0.9524 GB, free: 130.3 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04866/4.449, allocations: 12.1 MB / 0.9642 GB, free: 130 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.726e-05/4.449, allocations: 41.8 kB / 0.9642 GB, free: 130 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.747e-05/4.45, allocations: 19.19 kB / 0.9643 GB, free: 130 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-05/4.45, allocations: 17.64 kB / 0.9643 GB, free: 130 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08535/4.535, allocations: 26.07 MB / 0.9897 GB, free: 127.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-05/4.535, allocations: 7.594 kB / 0.9897 GB, free: 127.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004347/4.539, allocations: 468.6 kB / 0.9902 GB, free: 127.3 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03222/4.572, allocations: 5.735 MB / 0.9958 GB, free: 127.2 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009939/4.573, allocations: 65.84 kB / 0.9958 GB, free: 127.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07074/4.644, allocations: 30.73 MB / 1.026 GB, free: 101.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/4.644, allocations: 11.75 kB / 1.026 GB, free: 101.4 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05591/4.7, allocations: 18.47 MB / 1.044 GB, free: 83.04 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005336/4.705, allocations: 1.399 MB / 1.045 GB, free: 81.62 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002872/4.708, allocations: 60.86 kB / 1.045 GB, free: 81.57 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007598/4.715, allocations: 291.8 kB / 1.046 GB, free: 81.29 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001623/4.717, allocations: 260.8 kB / 1.046 GB, free: 81.04 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007606/4.718, allocations: 96.7 kB / 1.046 GB, free: 80.95 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01279/4.731, allocations: 5.257 MB / 1.051 GB, free: 75.73 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.413e-06/4.731, allocations: 1.312 kB / 1.051 GB, free: 75.73 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01314/4.744, allocations: 2.083 MB / 1.053 GB, free: 73.65 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001589/4.746, allocations: 238.7 kB / 1.053 GB, free: 73.45 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03075/4.776, allocations: 10.86 MB / 1.064 GB, free: 63.06 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.005e-05/4.776, allocations: 0 / 1.064 GB, free: 63.06 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02094/4.797, allocations: 4.958 MB / 1.069 GB, free: 58.12 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01125/4.809, allocations: 0.998 MB / 1.07 GB, free: 57.14 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07107/4.88, allocations: 23.5 MB / 1.093 GB, free: 33.62 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01342/4.893, allocations: 5.905 MB / 1.098 GB, free: 27.68 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002946/4.896, allocations: 474.9 kB / 1.099 GB, free: 27.22 MB / 0.5262 GB Notification: Performance of SimCode: time 1.813e-06/4.896, allocations: 8 kB / 1.099 GB, free: 27.21 MB / 0.5262 GB Notification: Performance of Templates: time 0.7021/5.599, allocations: 204.6 MB / 1.299 GB, free: 70.92 MB / 0.5418 GB