Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadModel(Modelica): time 1.784/1.784, allocations: 171.1 MB / 186.3 MB, free: 1.32 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.269e-05, allocations: 4 kB / 228.1 MB, free: 7.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08572/0.08577, allocations: 38.77 MB / 266.9 MB, free: 1.105 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.2921/0.3779, allocations: 40.07 MB / 307 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02849/0.4065, allocations: 9.483 MB / 316.4 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01164/0.4182, allocations: 225.8 kB / 316.7 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008039/0.4262, allocations: 2.098 MB / 318.8 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02437/0.4507, allocations: 5.836 MB / 324.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.4553, allocations: 0.7094 MB / 325.3 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.04887/0.5042, allocations: 16.58 MB / 341.9 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009174/0.5134, allocations: 4.189 MB / 346.1 MB, free: 496 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.5159, allocations: 0.9224 MB / 347 MB, free: 15.59 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003331/0.5193, allocations: 1.453 MB / 348.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003263/0.5226, allocations: 0.9324 MB / 349.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001231/0.5239, allocations: 152 kB / 349.5 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002692/0.5266, allocations: 1.696 MB / 351.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001418/0.528, allocations: 299.9 kB / 351.5 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.5385, allocations: 6.478 MB / 358 MB, free: 4.789 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.5385, allocations: 0 / 358 MB, free: 4.789 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.5386, allocations: 4 kB / 358 MB, free: 4.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002702/0.5388, allocations: 0 / 358 MB, free: 4.785 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1552 * Number of variables: 1552 Notification: Performance of Generate backend data structure: time 0.01613/0.555, allocations: 4.458 MB / 362.5 MB, free: 296 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.5551, allocations: 8.031 kB / 362.5 MB, free: 288 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3682/0.9232, allocations: 18.87 MB / 381.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01417/0.9375, allocations: 4.004 MB / 385.4 MB, free: 9.352 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/0.9379, allocations: 243.6 kB / 385.6 MB, free: 9.148 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/0.9398, allocations: 331.6 kB / 385.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02897/0.9688, allocations: 10.33 MB / 396.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002326/0.9691, allocations: 55.52 kB / 396.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009648/0.97, allocations: 158.8 kB / 396.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005426/0.9755, allocations: 1.908 MB / 398.4 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02909/1.005, allocations: 8.714 MB / 407.1 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.334/1.339, allocations: 39.32 MB / 446.4 MB, free: 104.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01611/1.355, allocations: 4.006 MB / 450.4 MB, free: 103.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001038/1.356, allocations: 0.6519 MB / 451.1 MB, free: 103 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.372e-05/1.356, allocations: 47.75 kB / 451.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=175): time 6.211e-06/1.356, allocations: 3.188 kB / 451.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=210): time 0.1013/1.457, allocations: 21.81 MB / 472.9 MB, free: 95.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/1.458, allocations: 257.4 kB / 473.2 MB, free: 95.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008812/1.466, allocations: 4.02 MB / 477.2 MB, free: 92.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005753/1.467, allocations: 64.11 kB / 477.3 MB, free: 92.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00263/1.47, allocations: 3.113 MB / 480.4 MB, free: 88.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/1.471, allocations: 0.7969 MB / 481.2 MB, free: 88.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007077/1.472, allocations: 120 kB / 481.3 MB, free: 88.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003995/1.472, allocations: 0.5589 MB / 481.8 MB, free: 87.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005762/1.478, allocations: 2.311 MB / 484.1 MB, free: 85.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007895/1.486, allocations: 5.822 MB / 490 MB, free: 77.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008193/1.494, allocations: 3.61 MB / 493.6 MB, free: 74.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/1.494, allocations: 40 kB / 493.6 MB, free: 74.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.02947/1.524, allocations: 9.535 MB / 0.4914 GB, free: 64.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.684e-05/1.524, allocations: 56 kB / 0.4914 GB, free: 64.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/1.524, allocations: 125.8 kB / 0.4915 GB, free: 64.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0107/1.535, allocations: 2.121 MB / 0.4936 GB, free: 62.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00752/1.542, allocations: 1.294 MB / 0.4949 GB, free: 61.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03439/1.577, allocations: 16.36 MB / 0.5108 GB, free: 44.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006772/1.584, allocations: 356 kB / 0.5112 GB, free: 44.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/1.585, allocations: 364.7 kB / 0.5115 GB, free: 43.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 562 * Number of states: 0 () * Number of discrete variables: 30 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (690): * Single equations (assignments): 684 * 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 {(3,88.9%) 35,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.005222/1.59, allocations: 2.18 MB / 0.5137 GB, free: 41.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/1.591, allocations: 383.1 kB / 0.514 GB, free: 41.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01392/1.605, allocations: 4.405 MB / 0.5183 GB, free: 36.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-05/1.605, allocations: 24.28 kB / 0.5184 GB, free: 36.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/1.605, allocations: 8 kB / 0.5184 GB, free: 36.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-05/1.605, allocations: 11.92 kB / 0.5184 GB, free: 36.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03069/1.636, allocations: 10.4 MB / 0.5285 GB, free: 26.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.83e-05/1.636, allocations: 7.953 kB / 0.5285 GB, free: 26.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002968/1.639, allocations: 303.5 kB / 0.5288 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007116/1.646, allocations: 1.356 MB / 0.5302 GB, free: 24.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005628/1.647, allocations: 35.98 kB / 0.5302 GB, free: 24.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01963/1.667, allocations: 8.653 MB / 0.5386 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.667, allocations: 4 kB / 0.5386 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01978/1.687, allocations: 7.544 MB / 0.546 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002677/1.689, allocations: 0.7614 MB / 0.5468 GB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001287/1.691, allocations: 36 kB / 0.5468 GB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003625/1.694, allocations: 135.9 kB / 0.5469 GB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007674/1.695, allocations: 117.1 kB / 0.547 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002398/1.695, allocations: 52 kB / 0.5471 GB, free: 7.031 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006582/1.702, allocations: 2.873 MB / 0.5499 GB, free: 4.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.293e-06/1.702, allocations: 0 / 0.5499 GB, free: 4.152 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007308/1.709, allocations: 1.163 MB / 0.551 GB, free: 2.996 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * 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 {(5,72.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/1.71, allocations: 196.4 kB / 0.5512 GB, free: 2.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.016/1.726, allocations: 6.154 MB / 0.5572 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.726, allocations: 0 / 0.5572 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008771/1.735, allocations: 2.255 MB / 0.5594 GB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007571/1.743, allocations: 0.5311 MB / 0.5599 GB, free: 9.836 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3667/2.11, allocations: 12.69 MB / 0.5723 GB, free: 128.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009376/2.119, allocations: 3.624 MB / 0.5759 GB, free: 127.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001971/2.121, allocations: 315.4 kB / 0.5762 GB, free: 127.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/2.121, allocations: 1.25 kB / 0.5762 GB, free: 127.7 MB / 378.7 MB Notification: Performance of Templates: time 0.1875/2.309, allocations: 99.98 MB / 0.6738 GB, free: 44.21 MB / 378.7 MB