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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 2.303/2.303, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.23e-05, allocations: 7.984 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3031, allocations: 44.5 MB / 303.3 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1259/0.429, allocations: 81.52 MB / 384.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05312/0.4822, allocations: 17.5 MB / 402.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02014/0.5024, allocations: 454.8 kB / 402.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01588/0.5183, allocations: 4.343 MB / 407.1 MB, free: 5.629 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04738/0.5657, allocations: 11.8 MB / 418.9 MB, free: 9.793 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00919/0.575, allocations: 1.35 MB / 420.3 MB, free: 8.441 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.4592/1.034, allocations: 48.19 MB / 468.4 MB, free: 2.863 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02115/1.055, allocations: 8.092 MB / 476.5 MB, free: 13.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007052/1.063, allocations: 1.98 MB / 478.5 MB, free: 11.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008874/1.071, allocations: 2.936 MB / 481.4 MB, free: 9.566 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005936/1.077, allocations: 1.084 MB / 482.5 MB, free: 8.668 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003152/1.081, allocations: 244 kB / 482.8 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007758/1.089, allocations: 3.323 MB / 486.1 MB, free: 5.922 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004554/1.093, allocations: 0.5508 MB / 486.6 MB, free: 5.371 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02235/1.116, allocations: 11.29 MB / 497.9 MB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/1.116, allocations: 0 / 497.9 MB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.966e-06/1.116, allocations: 8 kB / 497.9 MB, free: 11.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005062/1.116, allocations: 0 / 497.9 MB, free: 11.53 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02815/1.144, allocations: 7.765 MB / 0.4939 GB, free: 4.309 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/1.144, allocations: 12.03 kB / 0.4939 GB, free: 4.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6663/1.811, allocations: 41.74 MB / 0.5346 GB, free: 12.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03134/1.842, allocations: 9.182 MB / 0.5436 GB, free: 5.816 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005759/1.843, allocations: 423.2 kB / 0.544 GB, free: 5.586 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003055/1.846, allocations: 0.5846 MB / 0.5446 GB, free: 5.199 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05066/1.896, allocations: 16.44 MB / 0.5606 GB, free: 8.355 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00048/1.897, allocations: 99.59 kB / 0.5607 GB, free: 8.293 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002425/1.899, allocations: 266.3 kB / 0.561 GB, free: 8.219 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006985/1.906, allocations: 2.647 MB / 0.5636 GB, free: 6.074 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04589/1.952, allocations: 13.11 MB / 0.5764 GB, free: 12.95 MB / 474.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.6867/2.639, allocations: 66.72 MB / 0.6415 GB, free: 155.9 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03283/2.672, allocations: 7.699 MB / 0.649 GB, free: 153 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02828/2.7, allocations: 11.89 MB / 0.6607 GB, free: 145 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.108e-05/2.7, allocations: 72.19 kB / 0.6607 GB, free: 144.9 MB / 474.8 MB Notification: Performance of pre-optimization done (n=280): time 7.214e-06/2.701, allocations: 0 / 0.6607 GB, free: 144.9 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.329/3.029, allocations: 50.34 MB / 0.7099 GB, free: 95.05 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/3.03, allocations: 397.8 kB / 0.7103 GB, free: 94.58 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01555/3.045, allocations: 7.125 MB / 0.7172 GB, free: 87.49 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009787/3.046, allocations: 75.73 kB / 0.7173 GB, free: 87.41 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004644/3.051, allocations: 4.813 MB / 0.722 GB, free: 82.59 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002038/3.053, allocations: 1.248 MB / 0.7232 GB, free: 81.36 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000999/3.054, allocations: 165.5 kB / 0.7234 GB, free: 81.2 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.00053/3.055, allocations: 0.6501 MB / 0.724 GB, free: 80.54 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009739/3.064, allocations: 3.928 MB / 0.7278 GB, free: 76.6 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01295/3.077, allocations: 8.5 MB / 0.7361 GB, free: 65.9 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01294/3.09, allocations: 5.615 MB / 0.7416 GB, free: 60.42 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/3.091, allocations: 44 kB / 0.7417 GB, free: 60.38 MB / 474.8 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.0566/3.147, allocations: 16.75 MB / 0.758 GB, free: 43.71 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/3.147, allocations: 72 kB / 0.7581 GB, free: 43.64 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002089/3.148, allocations: 156 kB / 0.7582 GB, free: 43.49 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03075/3.178, allocations: 5.84 MB / 0.7639 GB, free: 37.63 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01066/3.189, allocations: 1.743 MB / 0.7656 GB, free: 35.89 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07116/3.26, allocations: 30.67 MB / 0.7956 GB, free: 4.816 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/3.271, allocations: 0.5382 MB / 0.7961 GB, free: 4.277 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0019/3.273, allocations: 475.8 kB / 0.7966 GB, free: 3.816 MB / 474.8 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.009063/3.283, allocations: 3.418 MB / 0.7999 GB, free: 396 kB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2914/3.574, allocations: 0.6595 MB / 0.8006 GB, free: 187.5 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04594/3.62, allocations: 11.47 MB / 0.8118 GB, free: 186.1 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.655e-05/3.62, allocations: 38.47 kB / 0.8118 GB, free: 186.1 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-05/3.62, allocations: 19.66 kB / 0.8118 GB, free: 186.1 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.388e-05/3.62, allocations: 15.94 kB / 0.8118 GB, free: 186.1 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07604/3.696, allocations: 24.94 MB / 0.8362 GB, free: 173.9 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.007e-05/3.696, allocations: 8 kB / 0.8362 GB, free: 173.9 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003736/3.7, allocations: 427.3 kB / 0.8366 GB, free: 173.5 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02949/3.73, allocations: 5.4 MB / 0.8419 GB, free: 168.1 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008691/3.731, allocations: 60 kB / 0.8419 GB, free: 168.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06614/3.797, allocations: 29.4 MB / 0.8706 GB, free: 138.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.367e-06/3.797, allocations: 7.938 kB / 0.8706 GB, free: 138.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05097/3.848, allocations: 17.6 MB / 0.8878 GB, free: 121 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004867/3.853, allocations: 1.355 MB / 0.8892 GB, free: 119.8 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002729/3.856, allocations: 60 kB / 0.8892 GB, free: 119.7 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006935/3.862, allocations: 272.8 kB / 0.8895 GB, free: 119.5 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001462/3.864, allocations: 241.8 kB / 0.8897 GB, free: 119.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006583/3.865, allocations: 93.38 kB / 0.8898 GB, free: 119.1 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01252/3.877, allocations: 5.218 MB / 0.8949 GB, free: 114 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.192e-06/3.877, allocations: 0 / 0.8949 GB, free: 114 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01165/3.889, allocations: 2.001 MB / 0.8968 GB, free: 112 MB / 474.8 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.001443/3.89, allocations: 229.6 kB / 0.8971 GB, free: 111.7 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02801/3.918, allocations: 10.41 MB / 0.9072 GB, free: 101.3 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.972e-05/3.919, allocations: 7.719 kB / 0.9072 GB, free: 101.3 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02046/3.939, allocations: 4.673 MB / 0.9118 GB, free: 96.63 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01227/3.951, allocations: 0.9822 MB / 0.9128 GB, free: 95.67 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06451/4.016, allocations: 22.6 MB / 0.9348 GB, free: 73.21 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01705/4.033, allocations: 5.707 MB / 0.9404 GB, free: 67.47 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003397/4.037, allocations: 467 kB / 0.9408 GB, free: 67.02 MB / 474.8 MB Notification: Performance of SimCode: time 1.462e-06/4.037, allocations: 0 / 0.9408 GB, free: 67.02 MB / 474.8 MB Notification: Performance of Templates: time 0.6538/4.69, allocations: 197.6 MB / 1.134 GB, free: 40.94 MB / 474.8 MB