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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 194.9 MB / 211.2 MB, free: 8.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.341e-05, allocations: 0 / 258.8 MB, free: 8.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4227/0.4227, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1419/0.5648, allocations: 87.9 MB / 391.2 MB, free: 5.543 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05468/0.6195, allocations: 18.68 MB / 409.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02075/0.6403, allocations: 494.7 kB / 410.4 MB, free: 2.312 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01587/0.6562, allocations: 4.682 MB / 415 MB, free: 13.61 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0472/0.7035, allocations: 12.66 MB / 427.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3082/1.012, allocations: 1.433 MB / 429.1 MB, free: 3.309 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.1333/1.145, allocations: 48.31 MB / 477.5 MB, free: 4.711 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01875/1.164, allocations: 8.537 MB / 486 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006411/1.17, allocations: 2.095 MB / 488.1 MB, free: 13.23 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007529/1.178, allocations: 3.043 MB / 491.1 MB, free: 10.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004861/1.183, allocations: 1.1 MB / 492.2 MB, free: 10.02 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002752/1.186, allocations: 252 kB / 492.5 MB, free: 9.773 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006721/1.192, allocations: 3.438 MB / 495.9 MB, free: 7.184 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004032/1.196, allocations: 0.5742 MB / 496.5 MB, free: 6.609 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01999/1.216, allocations: 11.69 MB / 0.4963 GB, free: 12.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/1.217, allocations: 3.188 kB / 0.4963 GB, free: 12.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.467e-06/1.217, allocations: 4 kB / 0.4963 GB, free: 12.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006079/1.217, allocations: 0 / 0.4963 GB, free: 12.42 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.02941/1.247, allocations: 8.056 MB / 0.5041 GB, free: 4.934 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/1.247, allocations: 12.03 kB / 0.5042 GB, free: 4.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7052/1.952, allocations: 41.77 MB / 0.5449 GB, free: 13.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03182/1.984, allocations: 9.364 MB / 0.5541 GB, free: 6.273 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006343/1.984, allocations: 449.8 kB / 0.5545 GB, free: 6.031 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003207/1.988, allocations: 0.6115 MB / 0.5551 GB, free: 5.625 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05178/2.039, allocations: 17.02 MB / 0.5717 GB, free: 8.383 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005308/2.04, allocations: 101.3 kB / 0.5718 GB, free: 8.32 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002503/2.043, allocations: 278 kB / 0.5721 GB, free: 8.242 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007065/2.05, allocations: 2.739 MB / 0.5748 GB, free: 6.023 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6321/2.682, allocations: 13.53 MB / 0.588 GB, free: 202.2 MB / 474.8 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.1174/2.799, allocations: 68.11 MB / 0.6545 GB, free: 143.3 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03058/2.83, allocations: 7.253 MB / 0.6616 GB, free: 136 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02898/2.859, allocations: 12.23 MB / 0.6735 GB, free: 123.5 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.197e-05/2.859, allocations: 75.27 kB / 0.6736 GB, free: 123.5 MB / 474.8 MB Notification: Performance of pre-optimization done (n=293): time 7.464e-06/2.859, allocations: 0 / 0.6736 GB, free: 123.5 MB / 474.8 MB Notification: Performance of matching and sorting (n=365): time 0.2942/3.153, allocations: 42.02 MB / 0.7146 GB, free: 81.72 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/3.154, allocations: 398.3 kB / 0.715 GB, free: 81.25 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01649/3.17, allocations: 7.295 MB / 0.7221 GB, free: 74 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/3.171, allocations: 89.7 kB / 0.7222 GB, free: 73.9 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004682/3.176, allocations: 5.007 MB / 0.7271 GB, free: 68.89 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002165/3.178, allocations: 1.331 MB / 0.7284 GB, free: 67.57 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/3.179, allocations: 172 kB / 0.7286 GB, free: 67.41 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006867/3.18, allocations: 0.6783 MB / 0.7292 GB, free: 66.71 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00943/3.19, allocations: 3.659 MB / 0.7328 GB, free: 63.05 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01539/3.205, allocations: 8.428 MB / 0.741 GB, free: 52.26 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01766/3.223, allocations: 5.416 MB / 0.7463 GB, free: 46.82 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001752/3.223, allocations: 48 kB / 0.7464 GB, free: 46.78 MB / 474.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.06092/3.284, allocations: 14.97 MB / 0.761 GB, free: 31.76 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/3.284, allocations: 76 kB / 0.7611 GB, free: 31.69 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001934/3.284, allocations: 168.1 kB / 0.7612 GB, free: 31.52 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02033/3.305, allocations: 4.075 MB / 0.7652 GB, free: 27.43 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01129/3.316, allocations: 1.84 MB / 0.767 GB, free: 25.59 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3492/3.665, allocations: 26.45 MB / 0.7928 GB, free: 178.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/3.676, allocations: 0.5069 MB / 0.7933 GB, free: 178.8 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002212/3.679, allocations: 496 kB / 0.7938 GB, free: 178.8 MB / 474.8 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.009859/3.689, allocations: 3.558 MB / 0.7973 GB, free: 178.7 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/3.691, allocations: 0.682 MB / 0.7979 GB, free: 178.7 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03377/3.724, allocations: 9.406 MB / 0.8071 GB, free: 176.3 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-05/3.725, allocations: 36.28 kB / 0.8072 GB, free: 176.3 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-05/3.725, allocations: 19.72 kB / 0.8072 GB, free: 176.3 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.599e-05/3.725, allocations: 21.69 kB / 0.8072 GB, free: 176.3 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06374/3.788, allocations: 20.38 MB / 0.8271 GB, free: 168.9 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.045e-05/3.789, allocations: 13.22 kB / 0.8271 GB, free: 168.9 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004037/3.793, allocations: 450.8 kB / 0.8275 GB, free: 168.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01999/3.813, allocations: 3.84 MB / 0.8313 GB, free: 167.5 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001011/3.814, allocations: 67.66 kB / 0.8314 GB, free: 167.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06037/3.874, allocations: 25.77 MB / 0.8565 GB, free: 141.8 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.648e-05/3.874, allocations: 8.094 kB / 0.8565 GB, free: 141.8 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0557/3.93, allocations: 15.66 MB / 0.8718 GB, free: 126.2 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00516/3.935, allocations: 1.315 MB / 0.8731 GB, free: 125 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00295/3.938, allocations: 69.41 kB / 0.8732 GB, free: 124.9 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007065/3.945, allocations: 227.7 kB / 0.8734 GB, free: 124.7 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0016/3.947, allocations: 264.8 kB / 0.8736 GB, free: 124.4 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006754/3.948, allocations: 105.4 kB / 0.8737 GB, free: 124.3 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.0137/3.961, allocations: 5.33 MB / 0.8789 GB, free: 119.1 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.82e-07/3.961, allocations: 0 / 0.8789 GB, free: 119.1 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01294/3.974, allocations: 2.041 MB / 0.8809 GB, free: 117 MB / 474.8 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.001545/3.976, allocations: 240.7 kB / 0.8812 GB, free: 116.8 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02441/4, allocations: 9.625 MB / 0.8906 GB, free: 107.2 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.842e-05/4.001, allocations: 5.172 kB / 0.8906 GB, free: 107.2 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01218/4.013, allocations: 4.338 MB / 0.8948 GB, free: 102.8 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008839/4.022, allocations: 1.012 MB / 0.8958 GB, free: 101.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05732/4.079, allocations: 22.51 MB / 0.9178 GB, free: 79.5 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0134/4.092, allocations: 5.932 MB / 0.9236 GB, free: 73.55 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002874/4.095, allocations: 487.3 kB / 0.924 GB, free: 73.07 MB / 474.8 MB Notification: Performance of SimCode: time 2.144e-06/4.095, allocations: 0 / 0.924 GB, free: 73.07 MB / 474.8 MB Notification: Performance of Templates: time 0.6714/4.767, allocations: 203.6 MB / 1.123 GB, free: 37.83 MB / 474.8 MB