Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 1.884/1.884, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.269e-05, allocations: 4 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.08628, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3654/0.4517, allocations: 96.08 MB / 417.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.452, allocations: 81.81 kB / 417.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7612/1.213, allocations: 126.4 MB / 0.5315 GB, free: 77.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.307e-06/1.213, allocations: 0 / 0.5315 GB, free: 77.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006073/1.214, allocations: 117.4 kB / 0.5316 GB, free: 77.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.03267/1.247, allocations: 6.328 MB / 0.5378 GB, free: 75.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/1.247, allocations: 9.625 kB / 0.5378 GB, free: 75.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05328/1.3, allocations: 8.326 MB / 0.5459 GB, free: 75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02251/1.323, allocations: 7.362 MB / 0.5531 GB, free: 74.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005165/1.323, allocations: 448.3 kB / 0.5536 GB, free: 74.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002758/1.326, allocations: 0.5817 MB / 0.5541 GB, free: 74.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03664/1.363, allocations: 15.53 MB / 0.5693 GB, free: 71.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002931/1.363, allocations: 75.31 kB / 0.5694 GB, free: 71.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00209/1.365, allocations: 279.8 kB / 0.5696 GB, free: 71.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00259/1.368, allocations: 1.619 MB / 0.5712 GB, free: 71.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03237/1.4, allocations: 13.57 MB / 0.5845 GB, free: 70.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0836/1.484, allocations: 63.99 MB / 0.647 GB, free: 21.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03313/1.517, allocations: 6.388 MB / 0.6532 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01087/1.528, allocations: 3.532 MB / 0.6566 GB, free: 12.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05088/1.579, allocations: 14.6 MB / 0.6709 GB, free: 0 / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001002/1.579, allocations: 72.77 kB / 0.671 GB, free: 15.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 7.332e-06/1.579, allocations: 0 / 0.671 GB, free: 15.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.3662/1.945, allocations: 29.75 MB / 0.7 GB, free: 84.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/1.945, allocations: 214.5 kB / 0.7002 GB, free: 84.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01071/1.956, allocations: 4.774 MB / 0.7049 GB, free: 84.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006773/1.957, allocations: 75.5 kB / 0.705 GB, free: 84.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003011/1.96, allocations: 4.282 MB / 0.7091 GB, free: 82.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/1.961, allocations: 1.249 MB / 0.7104 GB, free: 81.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008683/1.962, allocations: 173.6 kB / 0.7105 GB, free: 81.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005146/1.963, allocations: 0.6844 MB / 0.7112 GB, free: 81.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008665/1.971, allocations: 4.487 MB / 0.7156 GB, free: 81.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01134/1.983, allocations: 9.376 MB / 0.7247 GB, free: 74.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/1.994, allocations: 6.412 MB / 0.731 GB, free: 74.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001555/1.995, allocations: 52 kB / 0.731 GB, free: 74.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.05298/2.048, allocations: 17.9 MB / 0.7485 GB, free: 71.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001323/2.048, allocations: 84.34 kB / 0.7486 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001831/2.048, allocations: 174.2 kB / 0.7488 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02577/2.074, allocations: 5.625 MB / 0.7543 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009624/2.083, allocations: 2.059 MB / 0.7563 GB, free: 70.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03927/2.123, allocations: 23.63 MB / 0.7793 GB, free: 59.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/2.133, allocations: 0.5407 MB / 0.7799 GB, free: 59.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/2.135, allocations: 0.5023 MB / 0.7804 GB, free: 59.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001827/2.137, allocations: 0.7426 MB / 0.7811 GB, free: 58.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/2.138, allocations: 0.5048 MB / 0.7816 GB, free: 58.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03599/2.174, allocations: 12.35 MB / 0.7936 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/2.174, allocations: 58.56 kB / 0.7937 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.168e-05/2.174, allocations: 11.41 kB / 0.7937 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.522e-05/2.174, allocations: 21.75 kB / 0.7937 GB, free: 51.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05797/2.232, allocations: 23.95 MB / 0.8171 GB, free: 31.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.697e-05/2.232, allocations: 4 kB / 0.8171 GB, free: 31.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004163/2.236, allocations: 0.5655 MB / 0.8177 GB, free: 31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02202/2.258, allocations: 4.641 MB / 0.8222 GB, free: 26.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006867/2.259, allocations: 60.55 kB / 0.8223 GB, free: 26.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02969/2.289, allocations: 18.93 MB / 0.8408 GB, free: 7.148 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.506e-06/2.289, allocations: 7.172 kB / 0.8408 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3077/2.597, allocations: 17.37 MB / 0.8577 GB, free: 90.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00402/2.601, allocations: 1.219 MB / 0.8589 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00193/2.603, allocations: 60.73 kB / 0.859 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004745/2.608, allocations: 248.7 kB / 0.8592 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/2.609, allocations: 189.2 kB / 0.8594 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005244/2.609, allocations: 89.95 kB / 0.8595 GB, free: 90.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008303/2.618, allocations: 3.311 MB / 0.8627 GB, free: 90.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.18e-06/2.618, allocations: 0 / 0.8627 GB, free: 90.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01085/2.628, allocations: 1.702 MB / 0.8644 GB, free: 90.15 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/2.63, allocations: 214.2 kB / 0.8646 GB, free: 90.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01954/2.649, allocations: 10.12 MB / 0.8745 GB, free: 89.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.612e-06/2.649, allocations: 6.781 kB / 0.8745 GB, free: 89.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007504/2.657, allocations: 3.913 MB / 0.8783 GB, free: 89.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004596/2.661, allocations: 0.5789 MB / 0.8789 GB, free: 89.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03188/2.693, allocations: 14.19 MB / 0.8927 GB, free: 87.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/2.703, allocations: 4.748 MB / 0.8973 GB, free: 86.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002537/2.706, allocations: 417.9 kB / 0.8977 GB, free: 86.57 MB / 458.7 MB Notification: Performance of SimCode: time 1.935e-06/2.706, allocations: 0 / 0.8977 GB, free: 86.57 MB / 458.7 MB Notification: Performance of Templates: time 0.5106/3.217, allocations: 141.1 MB / 1.036 GB, free: 93.77 MB / 458.7 MB