Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.086e-05, allocations: 4 kB / 228.1 MB, free: 8.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.0827, allocations: 38.77 MB / 266.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.3658/0.4486, allocations: 81.52 MB / 348.4 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05543/0.5041, allocations: 17.47 MB / 365.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02144/0.5256, allocations: 450.8 kB / 366.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0204/0.546, allocations: 4.351 MB / 370.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.046/0.5921, allocations: 11.79 MB / 382.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008632/0.6008, allocations: 1.365 MB / 383.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1438/0.7446, allocations: 48.19 MB / 432 MB, free: 11.39 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01764/0.7623, allocations: 8.09 MB / 440.1 MB, free: 3.254 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005617/0.768, allocations: 1.995 MB / 442.1 MB, free: 1.254 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2931/1.061, allocations: 2.921 MB / 445 MB, free: 52.25 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005356/1.067, allocations: 1.089 MB / 446.1 MB, free: 52.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00334/1.07, allocations: 243.2 kB / 446.3 MB, free: 52.25 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007168/1.077, allocations: 3.314 MB / 449.7 MB, free: 52.25 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004618/1.082, allocations: 0.5551 MB / 450.2 MB, free: 52.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01835/1.1, allocations: 11.3 MB / 461.5 MB, free: 50.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/1.1, allocations: 0.7656 kB / 461.5 MB, free: 50.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.637e-06/1.1, allocations: 0 / 461.5 MB, free: 50.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005856/1.101, allocations: 0 / 461.5 MB, free: 50.83 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03033/1.131, allocations: 7.765 MB / 469.3 MB, free: 46.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/1.131, allocations: 9.219 kB / 469.3 MB, free: 46.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6894/1.821, allocations: 41.74 MB / 0.4991 GB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0317/1.853, allocations: 9.191 MB / 0.508 GB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005256/1.853, allocations: 423 kB / 0.5084 GB, free: 7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003415/1.857, allocations: 0.5828 MB / 0.509 GB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05268/1.909, allocations: 16.43 MB / 0.5251 GB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000628/1.91, allocations: 96.55 kB / 0.5251 GB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003231/1.913, allocations: 262 kB / 0.5254 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00726/1.921, allocations: 2.65 MB / 0.528 GB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04895/1.97, allocations: 13.11 MB / 0.5408 GB, free: 14.38 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.4111/2.381, allocations: 66.72 MB / 0.6059 GB, free: 134.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03549/2.416, allocations: 7.705 MB / 0.6135 GB, free: 134.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03179/2.448, allocations: 11.88 MB / 0.6251 GB, free: 131.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.615e-05/2.448, allocations: 67.47 kB / 0.6251 GB, free: 131.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 8.316e-06/2.448, allocations: 0 / 0.6251 GB, free: 131.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.3615/2.81, allocations: 50.34 MB / 0.6743 GB, free: 98.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/2.81, allocations: 394.1 kB / 0.6747 GB, free: 98.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01741/2.827, allocations: 7.129 MB / 0.6816 GB, free: 91.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001022/2.829, allocations: 81.7 kB / 0.6817 GB, free: 90.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004547/2.833, allocations: 4.811 MB / 0.6864 GB, free: 86.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002124/2.835, allocations: 1.248 MB / 0.6876 GB, free: 84.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/2.837, allocations: 165.2 kB / 0.6878 GB, free: 84.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006673/2.837, allocations: 0.6501 MB / 0.6884 GB, free: 84.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00971/2.847, allocations: 3.928 MB / 0.6923 GB, free: 80.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01248/2.86, allocations: 8.503 MB / 0.7006 GB, free: 69.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01281/2.872, allocations: 5.619 MB / 0.7061 GB, free: 63.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/2.873, allocations: 44 kB / 0.7061 GB, free: 63.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.05638/2.929, allocations: 16.74 MB / 0.7224 GB, free: 47.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/2.929, allocations: 75.98 kB / 0.7225 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002206/2.929, allocations: 162.6 kB / 0.7227 GB, free: 47.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03105/2.961, allocations: 5.836 MB / 0.7284 GB, free: 41.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01077/2.971, allocations: 1.754 MB / 0.7301 GB, free: 39.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07398/3.045, allocations: 30.66 MB / 0.76 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01258/3.058, allocations: 0.5426 MB / 0.7606 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002044/3.06, allocations: 472.7 kB / 0.761 GB, free: 7.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (932): * Single equations (assignments): 926 * 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 {(8,51.6%) 93,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01007/3.07, allocations: 3.427 MB / 0.7644 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002161/3.072, allocations: 0.6594 MB / 0.765 GB, free: 3.625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3123/3.385, allocations: 11.47 MB / 0.7762 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.871e-05/3.385, allocations: 39.81 kB / 0.7762 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.179e-05/3.385, allocations: 21.19 kB / 0.7763 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000104/3.385, allocations: 15.22 kB / 0.7763 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08401/3.469, allocations: 24.95 MB / 0.8006 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-05/3.469, allocations: 7.625 kB / 0.8006 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003859/3.473, allocations: 416.6 kB / 0.801 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03075/3.504, allocations: 5.409 MB / 0.8063 GB, free: 146.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001009/3.505, allocations: 61.31 kB / 0.8064 GB, free: 146.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07007/3.575, allocations: 29.38 MB / 0.8351 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/3.575, allocations: 18.78 kB / 0.8351 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05408/3.629, allocations: 17.6 MB / 0.8523 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005671/3.635, allocations: 1.353 MB / 0.8536 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003549/3.639, allocations: 67.94 kB / 0.8537 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007751/3.646, allocations: 272.5 kB / 0.8539 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001599/3.648, allocations: 242.6 kB / 0.8542 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008369/3.649, allocations: 91.17 kB / 0.8542 GB, free: 106.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01409/3.663, allocations: 5.219 MB / 0.8593 GB, free: 101.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.51e-07/3.663, allocations: 3.906 kB / 0.8593 GB, free: 101.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01321/3.676, allocations: 2.002 MB / 0.8613 GB, free: 99.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * 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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001621/3.678, allocations: 225.8 kB / 0.8615 GB, free: 99.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02734/3.705, allocations: 10.41 MB / 0.8717 GB, free: 88.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/3.705, allocations: 7.906 kB / 0.8717 GB, free: 88.81 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01413/3.72, allocations: 4.677 MB / 0.8763 GB, free: 84.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/3.731, allocations: 0.9819 MB / 0.8772 GB, free: 83.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07552/3.807, allocations: 22.6 MB / 0.8993 GB, free: 60.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01282/3.82, allocations: 5.715 MB / 0.9049 GB, free: 54.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002752/3.822, allocations: 463.4 kB / 0.9053 GB, free: 54.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/3.822, allocations: 0 / 0.9053 GB, free: 54.44 MB / 426.7 MB Notification: Performance of Templates: time 0.9452/4.768, allocations: 197.6 MB / 1.098 GB, free: 139.5 MB / 426.7 MB