Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.815/1.815, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.826e-05/4.866e-05, allocations: 5.219 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08144, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4347, allocations: 86.67 MB / 386.5 MB, free: 21.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.435, allocations: 84.89 kB / 386.6 MB, free: 21.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3146/0.7496, allocations: 82.52 MB / 469.1 MB, free: 3.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.459e-06/0.7496, allocations: 0 / 469.1 MB, free: 3.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002874/0.7499, allocations: 72 kB / 469.2 MB, free: 3.324 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01434/0.7643, allocations: 3.956 MB / 473.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.7644, allocations: 8.031 kB / 473.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03567/0.8, allocations: 6.617 MB / 479.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01891/0.819, allocations: 5.826 MB / 485.6 MB, free: 2.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000408/0.8194, allocations: 266.9 kB / 485.9 MB, free: 2.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001763/0.8212, allocations: 367.8 kB / 486.2 MB, free: 2.156 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02449/0.8457, allocations: 9.019 MB / 495.2 MB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000295/0.8461, allocations: 67.42 kB / 495.3 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001458/0.8476, allocations: 179.9 kB / 495.5 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001886/0.8495, allocations: 0.8845 MB / 496.4 MB, free: 7.094 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02016/0.8697, allocations: 7.472 MB / 0.492 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2884/1.158, allocations: 42.19 MB / 0.5332 GB, free: 51.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01129/1.169, allocations: 3.74 MB / 0.5369 GB, free: 51.12 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003382/1.173, allocations: 1.946 MB / 0.5388 GB, free: 51.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004645/1.173, allocations: 328.5 kB / 0.5391 GB, free: 50.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.992e-05/1.173, allocations: 53.03 kB / 0.5391 GB, free: 50.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 6.822e-06/1.173, allocations: 0 / 0.5391 GB, free: 50.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=189): time 0.06152/1.235, allocations: 17.19 MB / 0.5559 GB, free: 48.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/1.235, allocations: 254.2 kB / 0.5562 GB, free: 47.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007616/1.243, allocations: 3.422 MB / 0.5595 GB, free: 47.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004251/1.243, allocations: 51.86 kB / 0.5596 GB, free: 47.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/1.245, allocations: 2.731 MB / 0.5622 GB, free: 46.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009825/1.246, allocations: 0.7149 MB / 0.5629 GB, free: 45.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005964/1.247, allocations: 106.2 kB / 0.563 GB, free: 45.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004115/1.247, allocations: 0.5391 MB / 0.5635 GB, free: 45.39 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004209/1.252, allocations: 2.043 MB / 0.5655 GB, free: 45.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006027/1.258, allocations: 5.255 MB / 0.5707 GB, free: 41.04 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006195/1.264, allocations: 3.269 MB / 0.5739 GB, free: 40.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/1.264, allocations: 29.66 kB / 0.5739 GB, free: 40.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01985/1.284, allocations: 8.172 MB / 0.5819 GB, free: 37.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.284, allocations: 57.92 kB / 0.5819 GB, free: 37.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001361/1.284, allocations: 111.8 kB / 0.582 GB, free: 37.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005136/1.289, allocations: 1.379 MB / 0.5834 GB, free: 37.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005292/1.295, allocations: 1.219 MB / 0.5846 GB, free: 37.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/1.309, allocations: 8.402 MB / 0.5928 GB, free: 33.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005926/1.315, allocations: 306.4 kB / 0.5931 GB, free: 33.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.316, allocations: 331.5 kB / 0.5934 GB, free: 33.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 27 (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 (650): * Single equations (assignments): 646 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001697/1.318, allocations: 0.5191 MB / 0.5939 GB, free: 32.78 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009118/1.319, allocations: 354.1 kB / 0.5942 GB, free: 32.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009783/1.329, allocations: 3.89 MB / 0.598 GB, free: 31.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.319e-05/1.329, allocations: 19.12 kB / 0.598 GB, free: 31.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/1.329, allocations: 6.75 kB / 0.5981 GB, free: 31.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.722e-05/1.329, allocations: 16.98 kB / 0.5981 GB, free: 31.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02156/1.351, allocations: 8.896 MB / 0.6068 GB, free: 24.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.546e-05/1.351, allocations: 0 / 0.6068 GB, free: 24.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/1.352, allocations: 263.8 kB / 0.607 GB, free: 24.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004637/1.357, allocations: 1.202 MB / 0.6082 GB, free: 23.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003906/1.358, allocations: 38.31 kB / 0.6082 GB, free: 23.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/1.371, allocations: 7.549 MB / 0.6156 GB, free: 16.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/1.371, allocations: 0 / 0.6156 GB, free: 16.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/1.384, allocations: 6.767 MB / 0.6222 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.386, allocations: 0.6761 MB / 0.6229 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008645/1.387, allocations: 37.61 kB / 0.6229 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002338/1.389, allocations: 107.6 kB / 0.623 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005079/1.389, allocations: 110.2 kB / 0.6231 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.39, allocations: 54.28 kB / 0.6232 GB, free: 10.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005327/1.395, allocations: 2.42 MB / 0.6255 GB, free: 7.902 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.138e-06/1.395, allocations: 7.828 kB / 0.6255 GB, free: 7.898 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006354/1.401, allocations: 0.9967 MB / 0.6265 GB, free: 6.91 MB / 394.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 (135): * Single equations (assignments): 131 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006335/1.402, allocations: 170.4 kB / 0.6267 GB, free: 6.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009644/1.412, allocations: 5.112 MB / 0.6317 GB, free: 2.082 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.179e-06/1.412, allocations: 4 kB / 0.6317 GB, free: 2.078 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004015/1.416, allocations: 1.948 MB / 0.6336 GB, free: 336 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/1.419, allocations: 463.8 kB / 0.634 GB, free: 0 / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02083/1.44, allocations: 7.957 MB / 0.6418 GB, free: 8.953 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006738/1.447, allocations: 3.173 MB / 0.6449 GB, free: 6.531 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/1.448, allocations: 278.4 kB / 0.6451 GB, free: 6.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.929e-06/1.448, allocations: 0 / 0.6451 GB, free: 6.27 MB / 410.7 MB Notification: Performance of Templates: time 0.3562/1.805, allocations: 70.27 MB / 0.7138 GB, free: 91.03 MB / 426.7 MB