Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,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") Notification: Performance of loadModel(Modelica): time 1.752/1.752, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.936e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08787, allocations: 38.78 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3555/0.4435, allocations: 87.89 MB / 354.8 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0592/0.5027, allocations: 18.64 MB / 373.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02367/0.5264, allocations: 494.7 kB / 373.9 MB, free: 5.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01816/0.5446, allocations: 4.69 MB / 378.6 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04987/0.5946, allocations: 12.67 MB / 391.3 MB, free: 4.156 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008915/0.6035, allocations: 1.451 MB / 392.7 MB, free: 2.703 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1437/0.7473, allocations: 48.3 MB / 441 MB, free: 2.363 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3061/1.053, allocations: 8.534 MB / 449.6 MB, free: 48.23 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006825/1.06, allocations: 2.093 MB / 451.7 MB, free: 48.22 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007622/1.068, allocations: 3.049 MB / 454.7 MB, free: 48.21 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005323/1.073, allocations: 1.098 MB / 455.8 MB, free: 48.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003262/1.077, allocations: 251.6 kB / 456 MB, free: 48.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006899/1.084, allocations: 3.441 MB / 459.5 MB, free: 48.2 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004748/1.088, allocations: 0.578 MB / 460.1 MB, free: 48.2 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01786/1.106, allocations: 11.69 MB / 471.8 MB, free: 44.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.106, allocations: 0 / 471.8 MB, free: 44.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.29e-06/1.107, allocations: 0 / 471.8 MB, free: 44.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006034/1.107, allocations: 1.875 kB / 471.8 MB, free: 44.56 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.04276/1.15, allocations: 8.057 MB / 479.8 MB, free: 39.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.125e-05/1.15, allocations: 10.91 kB / 479.8 MB, free: 39.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6818/1.832, allocations: 41.78 MB / 0.5094 GB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03259/1.864, allocations: 9.358 MB / 0.5185 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006412/1.865, allocations: 448.8 kB / 0.519 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003633/1.869, allocations: 0.6097 MB / 0.5196 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05623/1.925, allocations: 17.03 MB / 0.5362 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006484/1.926, allocations: 99.11 kB / 0.5363 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003283/1.929, allocations: 279.6 kB / 0.5365 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007416/1.937, allocations: 2.743 MB / 0.5392 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04788/1.985, allocations: 13.53 MB / 0.5524 GB, free: 1.082 MB / 394.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.439/2.424, allocations: 68.09 MB / 0.6189 GB, free: 134.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04426/2.468, allocations: 7.258 MB / 0.626 GB, free: 134.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03889/2.507, allocations: 12.23 MB / 0.6379 GB, free: 130.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.074e-05/2.507, allocations: 67.97 kB / 0.638 GB, free: 130.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.594e-06/2.507, allocations: 3.719 kB / 0.638 GB, free: 130.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=365): time 0.2463/2.753, allocations: 42.03 MB / 0.6791 GB, free: 101.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/2.754, allocations: 408.2 kB / 0.6794 GB, free: 101.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01585/2.769, allocations: 7.299 MB / 0.6866 GB, free: 94.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001083/2.771, allocations: 81.7 kB / 0.6867 GB, free: 93.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004471/2.775, allocations: 5.004 MB / 0.6915 GB, free: 88.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00213/2.777, allocations: 1.34 MB / 0.6929 GB, free: 87.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/2.778, allocations: 179.5 kB / 0.693 GB, free: 87.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000465/2.779, allocations: 0.6666 MB / 0.6937 GB, free: 86.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008588/2.787, allocations: 3.661 MB / 0.6972 GB, free: 83.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01203/2.799, allocations: 8.434 MB / 0.7055 GB, free: 72.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/2.812, allocations: 5.412 MB / 0.7108 GB, free: 67.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001434/2.812, allocations: 48 kB / 0.7108 GB, free: 67.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.05155/2.864, allocations: 14.97 MB / 0.7254 GB, free: 52.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/2.864, allocations: 76 kB / 0.7255 GB, free: 52.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/2.864, allocations: 164 kB / 0.7257 GB, free: 52.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02071/2.885, allocations: 4.08 MB / 0.7297 GB, free: 48.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01128/2.896, allocations: 1.84 MB / 0.7314 GB, free: 46.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06059/2.957, allocations: 26.45 MB / 0.7573 GB, free: 19.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/2.968, allocations: 0.5118 MB / 0.7578 GB, free: 18.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002233/2.971, allocations: 493.1 kB / 0.7582 GB, free: 18.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 754 * Number of states: 0 () * Number of discrete variables: 69 (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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.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 (986): * Single equations (assignments): 980 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0107/2.981, allocations: 3.562 MB / 0.7617 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/2.984, allocations: 0.6826 MB / 0.7624 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03454/3.018, allocations: 9.413 MB / 0.7716 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.591e-05/3.018, allocations: 37.88 kB / 0.7716 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-05/3.018, allocations: 20 kB / 0.7716 GB, free: 4.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.327e-05/3.018, allocations: 15.94 kB / 0.7717 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3324/3.351, allocations: 20.37 MB / 0.7916 GB, free: 154.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.991e-05/3.351, allocations: 7.844 kB / 0.7916 GB, free: 154.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004178/3.355, allocations: 453 kB / 0.792 GB, free: 154.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02079/3.376, allocations: 3.838 MB / 0.7957 GB, free: 153.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001147/3.377, allocations: 69.75 kB / 0.7958 GB, free: 153.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06005/3.437, allocations: 25.76 MB / 0.821 GB, free: 141.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/3.437, allocations: 13.53 kB / 0.821 GB, free: 141.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04099/3.478, allocations: 15.67 MB / 0.8363 GB, free: 130.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005228/3.484, allocations: 1.31 MB / 0.8376 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003037/3.487, allocations: 71.66 kB / 0.8376 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00947/3.496, allocations: 227.5 kB / 0.8378 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002137/3.498, allocations: 267.2 kB / 0.8381 GB, free: 129.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007247/3.499, allocations: 106.7 kB / 0.8382 GB, free: 129.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01809/3.517, allocations: 5.334 MB / 0.8434 GB, free: 124.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.112e-06/3.517, allocations: 0 / 0.8434 GB, free: 124.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01717/3.535, allocations: 2.046 MB / 0.8454 GB, free: 122.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001806/3.536, allocations: 229.5 kB / 0.8456 GB, free: 122.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03092/3.567, allocations: 9.627 MB / 0.855 GB, free: 112.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.842e-05/3.567, allocations: 0 / 0.855 GB, free: 112.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01256/3.58, allocations: 4.339 MB / 0.8593 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009389/3.589, allocations: 1.018 MB / 0.8603 GB, free: 107.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05941/3.649, allocations: 22.52 MB / 0.8822 GB, free: 84.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01485/3.664, allocations: 5.945 MB / 0.8881 GB, free: 78.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002988/3.667, allocations: 483.4 kB / 0.8885 GB, free: 78.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/3.667, allocations: 0 / 0.8885 GB, free: 78.53 MB / 426.7 MB Notification: Performance of Templates: time 0.9303/4.597, allocations: 203.5 MB / 1.087 GB, free: 142.1 MB / 426.7 MB