Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.263/2.263, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.544e-05/3.539e-05, allocations: 4 kB / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3259, allocations: 54.85 MB / 359.8 MB, free: 2.645 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.156/0.482, allocations: 100.2 MB / 459.9 MB, free: 12.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4823, allocations: 75.95 kB / 460 MB, free: 12.72 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6284/1.111, allocations: 94.7 MB / 0.5417 GB, free: 102.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.506e-06/1.111, allocations: 0 / 0.5417 GB, free: 102.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003084/1.111, allocations: 86.09 kB / 0.5418 GB, free: 102.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01525/1.126, allocations: 4.611 MB / 0.5463 GB, free: 101 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/1.126, allocations: 13.81 kB / 0.5463 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0348/1.161, allocations: 6.733 MB / 0.5529 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01883/1.18, allocations: 6.301 MB / 0.559 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/1.181, allocations: 325.2 kB / 0.5593 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002018/1.183, allocations: 439.2 kB / 0.5597 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02786/1.21, allocations: 10.91 MB / 0.5704 GB, free: 96.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002771/1.211, allocations: 71.61 kB / 0.5705 GB, free: 96.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0016/1.212, allocations: 206.7 kB / 0.5707 GB, free: 96.44 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001789/1.214, allocations: 1.02 MB / 0.5717 GB, free: 96.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/1.238, allocations: 8.987 MB / 0.5804 GB, free: 93.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05636/1.294, allocations: 47.55 MB / 0.6269 GB, free: 55.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/1.307, allocations: 4.085 MB / 0.6309 GB, free: 51.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002965/1.31, allocations: 1.793 MB / 0.6326 GB, free: 50.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/1.323, allocations: 7.508 MB / 0.64 GB, free: 43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/1.323, allocations: 55.5 kB / 0.64 GB, free: 42.94 MB / 458.7 MB Notification: Performance of pre-optimization done (n=180): time 5.937e-06/1.323, allocations: 4 kB / 0.64 GB, free: 42.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=236): time 0.09905/1.422, allocations: 25.67 MB / 0.6651 GB, free: 17.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/1.422, allocations: 209.9 kB / 0.6653 GB, free: 17.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007265/1.429, allocations: 3.752 MB / 0.6689 GB, free: 13.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005361/1.43, allocations: 61.7 kB / 0.669 GB, free: 13.17 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002232/1.432, allocations: 3.105 MB / 0.672 GB, free: 10.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001175/1.433, allocations: 0.8742 MB / 0.6729 GB, free: 9.199 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007231/1.434, allocations: 128 kB / 0.673 GB, free: 9.074 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004022/1.435, allocations: 0.5791 MB / 0.6736 GB, free: 8.484 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006127/1.441, allocations: 3.358 MB / 0.6769 GB, free: 5.125 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009086/1.45, allocations: 6.933 MB / 0.6836 GB, free: 12.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009869/1.46, allocations: 4.75 MB / 0.6883 GB, free: 7.652 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/1.46, allocations: 36 kB / 0.6883 GB, free: 7.617 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.04793/1.508, allocations: 14.82 MB / 0.7028 GB, free: 8.789 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.508, allocations: 60 kB / 0.7028 GB, free: 8.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.508, allocations: 124 kB / 0.7029 GB, free: 8.609 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0289/1.537, allocations: 5.929 MB / 0.7087 GB, free: 2.668 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007035/1.544, allocations: 1.427 MB / 0.7101 GB, free: 1.238 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3262/1.87, allocations: 24.94 MB / 0.7345 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007455/1.878, allocations: 393.5 kB / 0.7349 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001443/1.879, allocations: 380.5 kB / 0.7352 GB, free: 114.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (743): * Single equations (assignments): 738 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002003/1.881, allocations: 0.5762 MB / 0.7358 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/1.883, allocations: 399.2 kB / 0.7362 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03463/1.917, allocations: 10.76 MB / 0.7467 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.538e-05/1.917, allocations: 28.16 kB / 0.7467 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/1.917, allocations: 10.72 kB / 0.7467 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.276e-05/1.917, allocations: 11.11 kB / 0.7467 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05452/1.972, allocations: 20.14 MB / 0.7664 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.485e-05/1.972, allocations: 4.094 kB / 0.7664 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002797/1.975, allocations: 382.1 kB / 0.7668 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02607/2.001, allocations: 4.998 MB / 0.7716 GB, free: 102.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005497/2.002, allocations: 40.09 kB / 0.7717 GB, free: 102.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03469/2.036, allocations: 20.14 MB / 0.7913 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/2.036, allocations: 12.72 kB / 0.7914 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03728/2.074, allocations: 14.5 MB / 0.8055 GB, free: 83.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002769/2.076, allocations: 0.956 MB / 0.8064 GB, free: 82.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001167/2.078, allocations: 49.88 kB / 0.8065 GB, free: 82.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003443/2.081, allocations: 164.8 kB / 0.8067 GB, free: 82.57 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008479/2.082, allocations: 162 kB / 0.8068 GB, free: 82.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003267/2.082, allocations: 67.95 kB / 0.8069 GB, free: 82.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00557/2.088, allocations: 2.639 MB / 0.8094 GB, free: 79.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.026e-06/2.088, allocations: 0 / 0.8094 GB, free: 79.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007472/2.095, allocations: 1.322 MB / 0.8107 GB, free: 78.4 MB / 490.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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007698/2.096, allocations: 189.4 kB / 0.8109 GB, free: 78.24 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01341/2.11, allocations: 7.651 MB / 0.8184 GB, free: 70.92 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.031e-06/2.11, allocations: 4 kB / 0.8184 GB, free: 70.92 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00532/2.115, allocations: 3.042 MB / 0.8214 GB, free: 67.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003126/2.118, allocations: 488.8 kB / 0.8218 GB, free: 67.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02108/2.139, allocations: 10.39 MB / 0.832 GB, free: 57.04 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006228/2.146, allocations: 3.61 MB / 0.8355 GB, free: 53.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001686/2.147, allocations: 302.6 kB / 0.8358 GB, free: 53.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.985e-06/2.147, allocations: 0 / 0.8358 GB, free: 53.14 MB / 490.7 MB Notification: Performance of Templates: time 0.4336/2.581, allocations: 103.3 MB / 0.9367 GB, free: 108.1 MB / 0.4948 GB