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.82/1.82, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.168e-05/4.195e-05, allocations: 3.531 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07928/0.07935, allocations: 44.51 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4219, allocations: 86.68 MB / 386.5 MB, free: 20.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4222, allocations: 84.95 kB / 386.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3107/0.7329, allocations: 82.52 MB / 469.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.441e-06/0.7329, allocations: 0 / 469.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002826/0.7332, allocations: 68 kB / 469.2 MB, free: 3.285 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.01401/0.7473, allocations: 3.96 MB / 473.2 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.7473, allocations: 8.031 kB / 473.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03616/0.7835, allocations: 6.617 MB / 479.8 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0188/0.8023, allocations: 5.83 MB / 485.6 MB, free: 2.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004104/0.8028, allocations: 270.9 kB / 485.9 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001715/0.8045, allocations: 359.8 kB / 486.2 MB, free: 2.113 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02382/0.8284, allocations: 8.986 MB / 495.2 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000246/0.8287, allocations: 63.36 kB / 495.3 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001083/0.8298, allocations: 179.9 kB / 495.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001718/0.8315, allocations: 0.8846 MB / 496.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01965/0.8512, allocations: 7.323 MB / 0.4919 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.289/1.14, allocations: 42.19 MB / 0.5331 GB, free: 52.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/1.151, allocations: 3.717 MB / 0.5367 GB, free: 51.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003106/1.154, allocations: 1.943 MB / 0.5386 GB, free: 51.56 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004416/1.155, allocations: 331.5 kB / 0.5389 GB, free: 51.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/1.155, allocations: 54.19 kB / 0.539 GB, free: 51.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 5.723e-06/1.155, allocations: 3.281 kB / 0.539 GB, free: 51.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=189): time 0.0624/1.217, allocations: 17.17 MB / 0.5557 GB, free: 48.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/1.217, allocations: 253 kB / 0.556 GB, free: 48.22 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006846/1.224, allocations: 3.421 MB / 0.5593 GB, free: 47.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003944/1.225, allocations: 53.83 kB / 0.5594 GB, free: 47.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/1.227, allocations: 2.722 MB / 0.562 GB, free: 46.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009021/1.227, allocations: 0.7253 MB / 0.5627 GB, free: 46.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005247/1.228, allocations: 106.4 kB / 0.5628 GB, free: 46.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003437/1.228, allocations: 0.539 MB / 0.5634 GB, free: 45.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004123/1.233, allocations: 2.041 MB / 0.5654 GB, free: 45.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00591/1.238, allocations: 5.224 MB / 0.5705 GB, free: 41.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006155/1.245, allocations: 3.266 MB / 0.5736 GB, free: 40.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.324e-05/1.245, allocations: 29.19 kB / 0.5737 GB, free: 40.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01939/1.264, allocations: 7.863 MB / 0.5814 GB, free: 38.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.643e-05/1.264, allocations: 57.44 kB / 0.5814 GB, free: 38.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/1.264, allocations: 114.7 kB / 0.5815 GB, free: 38.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005322/1.27, allocations: 1.379 MB / 0.5829 GB, free: 37.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005587/1.275, allocations: 1.221 MB / 0.5841 GB, free: 37.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/1.291, allocations: 8.395 MB / 0.5923 GB, free: 33.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005752/1.296, allocations: 310.7 kB / 0.5926 GB, free: 33.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.298, allocations: 331.7 kB / 0.5929 GB, free: 33.57 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.001161/1.299, allocations: 0.5231 MB / 0.5934 GB, free: 33.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008152/1.3, allocations: 351.9 kB / 0.5937 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009038/1.309, allocations: 3.887 MB / 0.5975 GB, free: 31.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.462e-05/1.309, allocations: 20.25 kB / 0.5975 GB, free: 31.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.917e-05/1.309, allocations: 5.719 kB / 0.5975 GB, free: 31.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.682e-05/1.309, allocations: 8.109 kB / 0.5975 GB, free: 31.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02061/1.329, allocations: 8.896 MB / 0.6062 GB, free: 24.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.803e-05/1.329, allocations: 4 kB / 0.6062 GB, free: 24.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.331, allocations: 257.8 kB / 0.6065 GB, free: 24.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004478/1.336, allocations: 1.216 MB / 0.6077 GB, free: 23.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000395/1.336, allocations: 32.27 kB / 0.6077 GB, free: 23.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/1.349, allocations: 7.555 MB / 0.6151 GB, free: 17.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.665e-06/1.349, allocations: 0 / 0.6151 GB, free: 17.26 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/1.361, allocations: 6.755 MB / 0.6217 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002022/1.363, allocations: 0.6759 MB / 0.6223 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008447/1.364, allocations: 36.62 kB / 0.6224 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002301/1.367, allocations: 112.2 kB / 0.6225 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004519/1.367, allocations: 105.2 kB / 0.6226 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/1.367, allocations: 60.23 kB / 0.6226 GB, free: 10.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00489/1.372, allocations: 2.424 MB / 0.625 GB, free: 8.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.03e-06/1.372, allocations: 0 / 0.625 GB, free: 8.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006146/1.378, allocations: 0.9968 MB / 0.626 GB, free: 7.422 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.0005724/1.379, allocations: 173.1 kB / 0.6261 GB, free: 7.254 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009208/1.388, allocations: 4.937 MB / 0.631 GB, free: 2.777 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.388, allocations: 0 / 0.631 GB, free: 2.777 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003867/1.392, allocations: 1.922 MB / 0.6328 GB, free: 1.047 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00288/1.395, allocations: 443.5 kB / 0.6333 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0214/1.416, allocations: 8.017 MB / 0.6411 GB, free: 9.793 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00666/1.423, allocations: 3.177 MB / 0.6442 GB, free: 7.375 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.425, allocations: 270.4 kB / 0.6444 GB, free: 7.121 MB / 410.7 MB Notification: Performance of SimCode: time 1.864e-06/1.425, allocations: 4 kB / 0.6445 GB, free: 7.117 MB / 410.7 MB Notification: Performance of Templates: time 0.3546/1.779, allocations: 69.36 MB / 0.7122 GB, free: 90.23 MB / 426.7 MB