Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,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_analytic") Notification: Performance of loadModel(Modelica): time 1.791/1.791, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.86e-05/3.853e-05, allocations: 4 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09038/0.09046, allocations: 38.77 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.3745/0.465, allocations: 90.23 MB / 357.1 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05889/0.524, allocations: 19.51 MB / 376.6 MB, free: 2.816 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02388/0.5479, allocations: 498.8 kB / 377.1 MB, free: 2.328 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01774/0.5657, allocations: 4.775 MB / 381.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04969/0.6154, allocations: 12.8 MB / 394.7 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009593/0.6251, allocations: 1.65 MB / 396.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.4229/1.048, allocations: 48.51 MB / 444.9 MB, free: 47.55 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02729/1.075, allocations: 11.79 MB / 456.7 MB, free: 46.74 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006299/1.082, allocations: 2.15 MB / 458.8 MB, free: 46.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008171/1.09, allocations: 3.292 MB / 462.1 MB, free: 46.72 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005495/1.096, allocations: 1.269 MB / 463.4 MB, free: 46.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003252/1.099, allocations: 276.9 kB / 463.6 MB, free: 46.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007113/1.106, allocations: 3.785 MB / 467.4 MB, free: 46.71 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004498/1.111, allocations: 0.6342 MB / 468.1 MB, free: 46.71 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02057/1.131, allocations: 14.37 MB / 482.4 MB, free: 40.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/1.131, allocations: 0 / 482.4 MB, free: 40.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.131, allocations: 4 kB / 482.4 MB, free: 40.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007251/1.132, allocations: 0 / 482.4 MB, free: 40.02 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03364/1.166, allocations: 8.922 MB / 491.3 MB, free: 31.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/1.166, allocations: 8.031 kB / 491.4 MB, free: 31.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6974/1.863, allocations: 42.02 MB / 0.5209 GB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03598/1.899, allocations: 10.21 MB / 0.5308 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000687/1.9, allocations: 0.5278 MB / 0.5313 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004311/1.904, allocations: 0.7218 MB / 0.5321 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06707/1.971, allocations: 19.44 MB / 0.551 GB, free: 1.074 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000606/1.972, allocations: 91.3 kB / 0.5511 GB, free: 1.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003683/1.976, allocations: 333.7 kB / 0.5514 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007511/1.983, allocations: 2.754 MB / 0.5541 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05998/2.043, allocations: 15.81 MB / 0.5696 GB, free: 3.914 MB / 410.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.4525/2.496, allocations: 72.99 MB / 0.6409 GB, free: 127 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0506/2.547, allocations: 8.079 MB / 0.6487 GB, free: 125 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04641/2.593, allocations: 14.39 MB / 0.6628 GB, free: 116.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.417e-05/2.593, allocations: 67.72 kB / 0.6629 GB, free: 116.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=308): time 1.087e-05/2.593, allocations: 0 / 0.6629 GB, free: 116.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=408): time 0.3517/2.945, allocations: 48.31 MB / 0.71 GB, free: 73.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/2.945, allocations: 402.5 kB / 0.7104 GB, free: 73.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01725/2.962, allocations: 7.534 MB / 0.7178 GB, free: 65.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/2.964, allocations: 90.8 kB / 0.7179 GB, free: 65.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00528/2.969, allocations: 5.44 MB / 0.7232 GB, free: 60.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002431/2.971, allocations: 1.481 MB / 0.7246 GB, free: 58.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/2.973, allocations: 182.9 kB / 0.7248 GB, free: 58.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000622/2.973, allocations: 0.6993 MB / 0.7255 GB, free: 57.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01099/2.984, allocations: 4.313 MB / 0.7297 GB, free: 53.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01445/2.999, allocations: 9.251 MB / 0.7387 GB, free: 42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/3.013, allocations: 6.202 MB / 0.7448 GB, free: 35.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001516/3.013, allocations: 52 kB / 0.7448 GB, free: 35.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.05881/3.072, allocations: 17.25 MB / 0.7617 GB, free: 18.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/3.072, allocations: 83.59 kB / 0.7618 GB, free: 18.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002117/3.072, allocations: 172 kB / 0.7619 GB, free: 18.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02827/3.101, allocations: 5.031 MB / 0.7668 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01451/3.115, allocations: 1.942 MB / 0.7687 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3597/3.475, allocations: 27.87 MB / 0.796 GB, free: 149.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01205/3.487, allocations: 0.5547 MB / 0.7965 GB, free: 149.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002209/3.489, allocations: 0.505 MB / 0.797 GB, free: 149.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1048): * Single equations (assignments): 1043 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01105/3.501, allocations: 4.033 MB / 0.8009 GB, free: 147.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002139/3.503, allocations: 0.7073 MB / 0.8016 GB, free: 147.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0461/3.549, allocations: 11.43 MB / 0.8128 GB, free: 143.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.912e-05/3.549, allocations: 39.53 kB / 0.8128 GB, free: 143.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.573e-05/3.549, allocations: 23 kB / 0.8128 GB, free: 143.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.206e-05/3.549, allocations: 19.45 kB / 0.8129 GB, free: 143.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0847/3.634, allocations: 24.71 MB / 0.837 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-05/3.634, allocations: 8 kB / 0.837 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005179/3.639, allocations: 0.5226 MB / 0.8375 GB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02761/3.667, allocations: 4.45 MB / 0.8419 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/3.668, allocations: 79.98 kB / 0.8419 GB, free: 126.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06627/3.734, allocations: 24.51 MB / 0.8659 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/3.734, allocations: 11.94 kB / 0.8659 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05341/3.788, allocations: 18.29 MB / 0.8838 GB, free: 83.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005551/3.793, allocations: 1.457 MB / 0.8852 GB, free: 82.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002947/3.796, allocations: 79.83 kB / 0.8853 GB, free: 82.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007662/3.804, allocations: 262.8 kB / 0.8855 GB, free: 82.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0017/3.806, allocations: 290.2 kB / 0.8858 GB, free: 81.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006531/3.807, allocations: 108 kB / 0.8859 GB, free: 81.74 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01353/3.82, allocations: 5.499 MB / 0.8913 GB, free: 76.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.52e-07/3.82, allocations: 0 / 0.8913 GB, free: 76.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01326/3.833, allocations: 2.229 MB / 0.8934 GB, free: 74.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001717/3.835, allocations: 270 kB / 0.8937 GB, free: 73.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02542/3.861, allocations: 10.84 MB / 0.9043 GB, free: 63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/3.861, allocations: 7.938 kB / 0.9043 GB, free: 62.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01238/3.873, allocations: 4.56 MB / 0.9087 GB, free: 58.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009633/3.883, allocations: 1.064 MB / 0.9098 GB, free: 57.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07029/3.953, allocations: 25.89 MB / 0.9351 GB, free: 31.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2911/4.244, allocations: 6.56 MB / 0.9415 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003421/4.248, allocations: 0.4917 MB / 0.9419 GB, free: 145.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/4.248, allocations: 0 / 0.9419 GB, free: 145.7 MB / 426.7 MB Notification: Performance of Templates: time 0.7713/5.019, allocations: 156 MB / 1.094 GB, free: 138.4 MB / 426.7 MB