Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 2.196/2.196, allocations: 209.3 MB / 224.4 MB, free: 0.6562 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.336e-05/3.337e-05, allocations: 0 / 276.1 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3781, allocations: 48.7 MB / 324.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.1084/0.4866, allocations: 49.16 MB / 374 MB, free: 14.3 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04638/0.533, allocations: 11.29 MB / 385.3 MB, free: 2.992 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01688/0.55, allocations: 267.3 kB / 385.5 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01312/0.5631, allocations: 2.598 MB / 388.1 MB, free: 124 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03817/0.6014, allocations: 7.094 MB / 395.2 MB, free: 9.008 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006634/0.6081, allocations: 0.8854 MB / 396.1 MB, free: 8.121 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0707/0.6788, allocations: 17.33 MB / 413.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01493/0.6939, allocations: 5.014 MB / 418.5 MB, free: 1.727 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004148/0.6981, allocations: 1.079 MB / 419.5 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005253/0.7034, allocations: 1.656 MB / 421.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004866/0.7083, allocations: 1.069 MB / 422.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002195/0.7106, allocations: 164 kB / 422.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004585/0.7152, allocations: 1.929 MB / 424.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002615/0.7179, allocations: 340 kB / 424.7 MB, free: 11.49 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01464/0.7326, allocations: 6.932 MB / 431.6 MB, free: 4.539 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.7327, allocations: 0 / 431.6 MB, free: 4.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.7327, allocations: 0 / 431.6 MB, free: 4.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000303/0.733, allocations: 4 kB / 431.6 MB, free: 4.535 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1723 * Number of variables: 1723 Notification: Performance of Generate backend data structure: time 0.027/0.76, allocations: 5.155 MB / 436.8 MB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.444e-05/0.7601, allocations: 8.031 kB / 436.8 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1213/0.8815, allocations: 11.63 MB / 448.4 MB, free: 3.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01563/0.8972, allocations: 4.502 MB / 452.9 MB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004355/0.8977, allocations: 283.2 kB / 453.2 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002012/0.8997, allocations: 391.6 kB / 453.6 MB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03652/0.9363, allocations: 12.04 MB / 465.6 MB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000234/0.9366, allocations: 47.59 kB / 465.7 MB, free: 1.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001378/0.9379, allocations: 187.8 kB / 465.9 MB, free: 1.344 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005384/0.9434, allocations: 2.085 MB / 467.9 MB, free: 15.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03485/0.9783, allocations: 10.29 MB / 478.2 MB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3688/1.347, allocations: 47.35 MB / 0.5133 GB, free: 94.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02503/1.372, allocations: 5.887 MB / 0.519 GB, free: 91.17 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0213/1.394, allocations: 8.862 MB / 0.5277 GB, free: 85.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.916e-05/1.394, allocations: 63.27 kB / 0.5277 GB, free: 85.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=206): time 5.81e-06/1.394, allocations: 0 / 0.5277 GB, free: 85.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=262): time 0.2298/1.624, allocations: 35.59 MB / 0.5625 GB, free: 51.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.624, allocations: 205.9 kB / 0.5627 GB, free: 51.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009576/1.633, allocations: 4.626 MB / 0.5672 GB, free: 46.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007169/1.634, allocations: 63.27 kB / 0.5673 GB, free: 46.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002797/1.637, allocations: 3.425 MB / 0.5706 GB, free: 43.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001539/1.638, allocations: 0.9644 MB / 0.5715 GB, free: 42.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007917/1.639, allocations: 136.6 kB / 0.5717 GB, free: 41.94 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004013/1.64, allocations: 0.5957 MB / 0.5723 GB, free: 41.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00721/1.647, allocations: 2.996 MB / 0.5752 GB, free: 38.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009797/1.657, allocations: 6.755 MB / 0.5818 GB, free: 29.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009832/1.667, allocations: 4.424 MB / 0.5861 GB, free: 25.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.667, allocations: 36 kB / 0.5861 GB, free: 25.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.04237/1.709, allocations: 12.96 MB / 0.5988 GB, free: 12.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000103/1.709, allocations: 64 kB / 0.5988 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001647/1.71, allocations: 136.1 kB / 0.599 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02088/1.73, allocations: 4.259 MB / 0.6031 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008413/1.739, allocations: 1.4 MB / 0.6045 GB, free: 6.418 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06535/1.804, allocations: 27.4 MB / 0.6313 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008364/1.813, allocations: 407.2 kB / 0.6317 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/1.814, allocations: 400.9 kB / 0.632 GB, free: 9.855 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (753): * Single equations (assignments): 747 * 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 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.006097/1.82, allocations: 2.424 MB / 0.6344 GB, free: 7.418 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.822, allocations: 442.3 kB / 0.6348 GB, free: 6.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3401/2.162, allocations: 8.231 MB / 0.6429 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.94e-05/2.162, allocations: 29.88 kB / 0.6429 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.844e-05/2.162, allocations: 12 kB / 0.6429 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.308e-05/2.162, allocations: 16.58 kB / 0.6429 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05508/2.217, allocations: 16.88 MB / 0.6594 GB, free: 139.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.924e-05/2.217, allocations: 5.688 kB / 0.6594 GB, free: 139.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002813/2.22, allocations: 303.8 kB / 0.6597 GB, free: 139.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01994/2.24, allocations: 3.938 MB / 0.6635 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005426/2.241, allocations: 52.09 kB / 0.6636 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05357/2.294, allocations: 26.2 MB / 0.6892 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/2.294, allocations: 9.688 kB / 0.6892 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03478/2.329, allocations: 12.76 MB / 0.7016 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00331/2.332, allocations: 0.9756 MB / 0.7026 GB, free: 108.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00134/2.334, allocations: 51.98 kB / 0.7026 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004005/2.338, allocations: 163.8 kB / 0.7028 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008523/2.339, allocations: 195 kB / 0.703 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003154/2.339, allocations: 78.98 kB / 0.7031 GB, free: 108 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006399/2.345, allocations: 3.312 MB / 0.7063 GB, free: 104.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.345, allocations: 0 / 0.7063 GB, free: 104.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008064/2.354, allocations: 1.439 MB / 0.7077 GB, free: 103.3 MB / 442.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 (158): * Single equations (assignments): 152 * 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 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008869/2.355, allocations: 202.7 kB / 0.7079 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01913/2.374, allocations: 8.109 MB / 0.7158 GB, free: 95.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/2.374, allocations: 3.906 kB / 0.7158 GB, free: 95.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008962/2.383, allocations: 3.51 MB / 0.7193 GB, free: 91.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004263/2.387, allocations: 0.5523 MB / 0.7198 GB, free: 90.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03573/2.423, allocations: 14.87 MB / 0.7343 GB, free: 76.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009212/2.432, allocations: 4.024 MB / 0.7382 GB, free: 72.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002515/2.435, allocations: 335.4 kB / 0.7386 GB, free: 71.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/2.435, allocations: 0 / 0.7386 GB, free: 71.71 MB / 442.7 MB Notification: Performance of Templates: time 0.565/3, allocations: 135.4 MB / 0.8708 GB, free: 89.21 MB / 442.7 MB