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.996/1.996, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.019e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3511, allocations: 48.71 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.06618/0.4173, allocations: 42.25 MB / 367.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03111/0.4485, allocations: 9.803 MB / 376.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0115/0.4601, allocations: 223.4 kB / 377.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008505/0.4686, allocations: 2.228 MB / 379.4 MB, free: 8.953 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02373/0.4924, allocations: 6.175 MB / 385.5 MB, free: 2.758 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00454/0.497, allocations: 0.8386 MB / 386.4 MB, free: 1.918 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.05144/0.5485, allocations: 17.39 MB / 403.8 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01135/0.5599, allocations: 4.533 MB / 408.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004155/0.5641, allocations: 1.243 MB / 409.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006373/0.5705, allocations: 2.151 MB / 411.7 MB, free: 8.539 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004816/0.5754, allocations: 1.12 MB / 412.8 MB, free: 7.418 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002192/0.5777, allocations: 220 kB / 413 MB, free: 7.203 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005301/0.583, allocations: 2.322 MB / 415.3 MB, free: 4.875 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002575/0.5856, allocations: 376 kB / 415.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01741/0.6031, allocations: 8.158 MB / 423.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.6032, allocations: 0 / 423.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.6032, allocations: 3.938 kB / 423.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003551/0.6036, allocations: 0 / 423.9 MB, free: 12.33 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: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.02301/0.6266, allocations: 6.172 MB / 430 MB, free: 6.078 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.6266, allocations: 8.031 kB / 430 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.132/0.7587, allocations: 13.39 MB / 443.4 MB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01592/0.7746, allocations: 4.697 MB / 448.1 MB, free: 3.891 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004452/0.7751, allocations: 324 kB / 448.5 MB, free: 3.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002463/0.7776, allocations: 423.7 kB / 448.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04418/0.8218, allocations: 15.77 MB / 464.6 MB, free: 2.457 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002704/0.8221, allocations: 63.36 kB / 464.7 MB, free: 2.395 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002055/0.8242, allocations: 203.8 kB / 464.9 MB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008679/0.8329, allocations: 3.165 MB / 468.1 MB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04507/0.878, allocations: 14.07 MB / 482.1 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4131/1.291, allocations: 57.44 MB / 0.5269 GB, free: 81.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03432/1.326, allocations: 6.599 MB / 0.5334 GB, free: 78.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0352/1.361, allocations: 14.57 MB / 0.5476 GB, free: 65.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.914e-05/1.361, allocations: 68.55 kB / 0.5477 GB, free: 65.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 7.694e-06/1.361, allocations: 0 / 0.5477 GB, free: 65.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.3395/1.701, allocations: 42.96 MB / 0.5896 GB, free: 22.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.529e-05/1.701, allocations: 213.9 kB / 0.5898 GB, free: 21.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/1.711, allocations: 5.125 MB / 0.5948 GB, free: 16.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009354/1.712, allocations: 74.8 kB / 0.5949 GB, free: 16.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003333/1.715, allocations: 4.268 MB / 0.5991 GB, free: 12.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002041/1.717, allocations: 1.245 MB / 0.6003 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/1.719, allocations: 176 kB / 0.6005 GB, free: 11.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005694/1.719, allocations: 0.6866 MB / 0.6011 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01062/1.73, allocations: 4.608 MB / 0.6056 GB, free: 5.691 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01494/1.745, allocations: 9.52 MB / 0.6149 GB, free: 9.734 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01624/1.761, allocations: 6.485 MB / 0.6213 GB, free: 3.227 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/1.761, allocations: 48 kB / 0.6213 GB, free: 3.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.07868/1.84, allocations: 18.77 MB / 0.6396 GB, free: 376 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001513/1.84, allocations: 80 kB / 0.6397 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002802/1.84, allocations: 172 kB / 0.6399 GB, free: 124 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3298/2.17, allocations: 5.833 MB / 0.6456 GB, free: 142.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01391/2.184, allocations: 2.054 MB / 0.6476 GB, free: 142.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05571/2.24, allocations: 24.96 MB / 0.672 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/2.251, allocations: 0.5583 MB / 0.6725 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002043/2.253, allocations: 0.5007 MB / 0.673 GB, free: 131.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * 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 (1055): * Single equations (assignments): 1047 * 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.008184/2.261, allocations: 3.049 MB / 0.676 GB, free: 129.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001505/2.263, allocations: 0.4928 MB / 0.6764 GB, free: 129.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05581/2.319, allocations: 12.69 MB / 0.6888 GB, free: 119.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001192/2.319, allocations: 53.64 kB / 0.6889 GB, free: 119.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-05/2.319, allocations: 11.95 kB / 0.6889 GB, free: 119.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-05/2.319, allocations: 16.59 kB / 0.6889 GB, free: 119.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08251/2.402, allocations: 24.44 MB / 0.7128 GB, free: 94.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.983e-05/2.402, allocations: 4 kB / 0.7128 GB, free: 94.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005761/2.408, allocations: 0.5811 MB / 0.7134 GB, free: 93.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05367/2.461, allocations: 4.832 MB / 0.7181 GB, free: 89.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001143/2.462, allocations: 60.97 kB / 0.7181 GB, free: 89.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06176/2.524, allocations: 20.21 MB / 0.7379 GB, free: 68.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/2.524, allocations: 7.938 kB / 0.7379 GB, free: 68.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06136/2.586, allocations: 17.83 MB / 0.7553 GB, free: 50.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004466/2.59, allocations: 1.25 MB / 0.7565 GB, free: 49.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002096/2.592, allocations: 57.62 kB / 0.7566 GB, free: 49.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006134/2.599, allocations: 262.9 kB / 0.7568 GB, free: 49.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001293/2.6, allocations: 192.1 kB / 0.757 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004753/2.6, allocations: 87.89 kB / 0.7571 GB, free: 49.08 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007267/2.608, allocations: 3.598 MB / 0.7606 GB, free: 45.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.094e-06/2.608, allocations: 0 / 0.7606 GB, free: 45.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01041/2.618, allocations: 1.738 MB / 0.7623 GB, free: 43.78 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 (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.001522/2.62, allocations: 210.5 kB / 0.7625 GB, free: 43.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02332/2.643, allocations: 10.61 MB / 0.7729 GB, free: 33.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.643, allocations: 0 / 0.7729 GB, free: 33.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009909/2.653, allocations: 4.053 MB / 0.7768 GB, free: 28.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005124/2.658, allocations: 0.5823 MB / 0.7774 GB, free: 28.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03983/2.698, allocations: 19.08 MB / 0.796 GB, free: 9.234 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2991/2.997, allocations: 4.751 MB / 0.8007 GB, free: 132.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00349/3.001, allocations: 420.7 kB / 0.8011 GB, free: 132.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/3.001, allocations: 0 / 0.8011 GB, free: 132.5 MB / 442.7 MB Notification: Performance of Templates: time 0.3017/3.302, allocations: 143.4 MB / 0.9411 GB, free: 18.4 MB / 442.7 MB