Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 2.188/2.188, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.322e-05/3.323e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1457, allocations: 50.42 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.4954/0.6412, allocations: 85.11 MB / 430.1 MB, free: 2.906 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05274/0.694, allocations: 18.16 MB / 448.3 MB, free: 12.02 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02408/0.7182, allocations: 479.2 kB / 448.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02057/0.7388, allocations: 4.447 MB / 453.2 MB, free: 8.672 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.06324/0.8021, allocations: 12.28 MB / 465.4 MB, free: 14.76 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008912/0.8111, allocations: 1.346 MB / 466.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.6994/1.51, allocations: 139.2 MB / 0.5918 GB, free: 103 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01469/1.525, allocations: 7.985 MB / 0.5996 GB, free: 97.65 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005131/1.53, allocations: 1.978 MB / 0.6015 GB, free: 96.34 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005947/1.536, allocations: 2.922 MB / 0.6043 GB, free: 94.13 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004175/1.541, allocations: 1.052 MB / 0.6054 GB, free: 93.27 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002396/1.543, allocations: 240 kB / 0.6056 GB, free: 93.04 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004856/1.548, allocations: 3.295 MB / 0.6088 GB, free: 90.55 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003254/1.551, allocations: 0.5508 MB / 0.6094 GB, free: 90 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01483/1.566, allocations: 11.22 MB / 0.6203 GB, free: 80.23 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/1.566, allocations: 0 / 0.6203 GB, free: 80.23 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.597e-06/1.566, allocations: 0 / 0.6203 GB, free: 80.23 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004881/1.567, allocations: 0 / 0.6203 GB, free: 80.23 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02448/1.591, allocations: 7.669 MB / 0.6278 GB, free: 73.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/1.591, allocations: 8.031 kB / 0.6278 GB, free: 73.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.666/2.257, allocations: 41.74 MB / 0.6686 GB, free: 33.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02707/2.284, allocations: 8.203 MB / 0.6766 GB, free: 27.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004749/2.285, allocations: 426.6 kB / 0.677 GB, free: 27.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002844/2.288, allocations: 0.5893 MB / 0.6776 GB, free: 26.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04558/2.333, allocations: 16.4 MB / 0.6936 GB, free: 10.37 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004939/2.334, allocations: 102.7 kB / 0.6937 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002404/2.336, allocations: 265.8 kB / 0.6939 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007299/2.344, allocations: 2.762 MB / 0.6966 GB, free: 7.359 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.044/2.388, allocations: 13.11 MB / 0.7094 GB, free: 10.52 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.8672/3.255, allocations: 66.82 MB / 0.7747 GB, free: 163.8 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03489/3.29, allocations: 7.7 MB / 0.7822 GB, free: 163.1 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02905/3.319, allocations: 11.85 MB / 0.7938 GB, free: 158.2 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/3.319, allocations: 58.72 kB / 0.7938 GB, free: 158.2 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=280): time 7.093e-06/3.319, allocations: 0 / 0.7938 GB, free: 158.2 MB / 0.4949 GB Notification: Performance of matching and sorting (n=339): time 0.3173/3.637, allocations: 48.63 MB / 0.8413 GB, free: 118.3 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/3.637, allocations: 405.8 kB / 0.8417 GB, free: 117.9 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01674/3.654, allocations: 7.057 MB / 0.8486 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001065/3.655, allocations: 78.56 kB / 0.8487 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004515/3.659, allocations: 4.826 MB / 0.8534 GB, free: 105.9 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002195/3.662, allocations: 1.245 MB / 0.8546 GB, free: 104.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/3.663, allocations: 160 kB / 0.8548 GB, free: 104.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006671/3.664, allocations: 0.66 MB / 0.8554 GB, free: 103.9 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01004/3.674, allocations: 3.932 MB / 0.8593 GB, free: 99.93 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/3.686, allocations: 8.519 MB / 0.8676 GB, free: 89.21 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/3.699, allocations: 5.624 MB / 0.8731 GB, free: 83.7 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/3.699, allocations: 52 kB / 0.8731 GB, free: 83.65 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.05766/3.757, allocations: 16.76 MB / 0.8895 GB, free: 67.17 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/3.757, allocations: 76 kB / 0.8896 GB, free: 67.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/3.757, allocations: 160 kB / 0.8897 GB, free: 66.94 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03099/3.788, allocations: 5.791 MB / 0.8954 GB, free: 61.13 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/3.799, allocations: 1.751 MB / 0.8971 GB, free: 59.38 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06816/3.867, allocations: 30.67 MB / 0.927 GB, free: 28.31 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01134/3.878, allocations: 0.5467 MB / 0.9276 GB, free: 27.76 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/3.881, allocations: 473.5 kB / 0.928 GB, free: 27.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.009393/3.89, allocations: 3.419 MB / 0.9314 GB, free: 23.87 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002081/3.892, allocations: 0.6517 MB / 0.932 GB, free: 23.21 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04403/3.936, allocations: 11.47 MB / 0.9432 GB, free: 11.67 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.799e-05/3.936, allocations: 37.17 kB / 0.9432 GB, free: 11.64 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.901e-05/3.936, allocations: 20.25 kB / 0.9432 GB, free: 11.62 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.29e-05/3.936, allocations: 15.94 kB / 0.9433 GB, free: 11.6 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.41/4.346, allocations: 24.91 MB / 0.9676 GB, free: 182.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.759e-05/4.347, allocations: 6.875 kB / 0.9676 GB, free: 182.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003702/4.35, allocations: 429.1 kB / 0.968 GB, free: 182.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02997/4.38, allocations: 5.403 MB / 0.9733 GB, free: 181.4 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000914/4.381, allocations: 61.41 kB / 0.9733 GB, free: 181.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07593/4.457, allocations: 29.39 MB / 1.002 GB, free: 165.7 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.27e-05/4.457, allocations: 11.94 kB / 1.002 GB, free: 165.6 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07063/4.528, allocations: 17.6 MB / 1.019 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003883/4.532, allocations: 0.7257 MB / 1.02 GB, free: 147.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003995/4.536, allocations: 59.98 kB / 1.02 GB, free: 147.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009839/4.546, allocations: 267.6 kB / 1.02 GB, free: 147.4 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001984/4.548, allocations: 242.7 kB / 1.02 GB, free: 147.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008929/4.549, allocations: 90.14 kB / 1.021 GB, free: 147.1 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01762/4.566, allocations: 5.159 MB / 1.026 GB, free: 142 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.583e-06/4.566, allocations: 3.938 kB / 1.026 GB, free: 142 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01778/4.584, allocations: 2.007 MB / 1.028 GB, free: 140 MB / 0.4949 GB 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 (214): * Single equations (assignments): 208 * 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.00196/4.586, allocations: 227 kB / 1.028 GB, free: 139.7 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03654/4.623, allocations: 10.43 MB / 1.038 GB, free: 129.4 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.76e-05/4.623, allocations: 0 / 1.038 GB, free: 129.4 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02001/4.643, allocations: 4.67 MB / 1.043 GB, free: 124.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01236/4.655, allocations: 0.9803 MB / 1.043 GB, free: 123.7 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07971/4.735, allocations: 22.51 MB / 1.065 GB, free: 101.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01766/4.753, allocations: 5.702 MB / 1.071 GB, free: 95.75 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003787/4.757, allocations: 455.1 kB / 1.071 GB, free: 95.31 MB / 0.4949 GB Notification: Performance of SimCode: time 1.903e-06/4.757, allocations: 0 / 1.071 GB, free: 95.31 MB / 0.4949 GB Notification: Performance of Templates: time 0.7142/5.471, allocations: 196.9 MB / 1.264 GB, free: 65.21 MB / 0.4949 GB