Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.396/2.396, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.685e-05/3.667e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1418, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3743/0.5162, allocations: 38.71 MB / 449.6 MB, free: 7.516 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0291/0.5453, allocations: 9.115 MB / 458.7 MB, free: 1.531 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.556, allocations: 212 kB / 459 MB, free: 1.492 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008273/0.5643, allocations: 1.964 MB / 460.9 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02422/0.5886, allocations: 5.597 MB / 466.5 MB, free: 12.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004342/0.5929, allocations: 0.7234 MB / 467.2 MB, free: 12.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1191/0.7121, allocations: 46.71 MB / 0.5019 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00816/0.7203, allocations: 3.796 MB / 0.5056 GB, free: 12.67 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002578/0.7229, allocations: 0.9351 MB / 0.5065 GB, free: 11.73 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003724/0.7267, allocations: 1.637 MB / 0.5081 GB, free: 10.09 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00355/0.7303, allocations: 1.042 MB / 0.5091 GB, free: 9.051 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001265/0.7316, allocations: 175.9 kB / 0.5093 GB, free: 8.879 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002811/0.7344, allocations: 1.753 MB / 0.511 GB, free: 7.121 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.7359, allocations: 292 kB / 0.5113 GB, free: 6.836 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.7459, allocations: 6.143 MB / 0.5173 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.746, allocations: 4 kB / 0.5173 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.746, allocations: 0 / 0.5173 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002536/0.7463, allocations: 0 / 0.5173 GB, free: 0.6758 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01498/0.7613, allocations: 4.495 MB / 0.5217 GB, free: 12.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.7613, allocations: 8.031 kB / 0.5217 GB, free: 12.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1176/0.8789, allocations: 11.57 MB / 0.533 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/0.8909, allocations: 3.533 MB / 0.5364 GB, free: 12.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/0.8913, allocations: 238.1 kB / 0.5367 GB, free: 12.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001781/0.8931, allocations: 335.6 kB / 0.537 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03176/0.9249, allocations: 10.87 MB / 0.5476 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002119/0.9252, allocations: 51.58 kB / 0.5477 GB, free: 0.6875 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001088/0.9263, allocations: 151.9 kB / 0.5478 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005888/0.9322, allocations: 2.006 MB / 0.5498 GB, free: 14.53 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03186/0.9641, allocations: 9.331 MB / 0.5589 GB, free: 5.18 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07397/1.038, allocations: 41.12 MB / 0.599 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01865/1.057, allocations: 4.236 MB / 0.6032 GB, free: 6.449 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3531/1.41, allocations: 7.584 MB / 0.6106 GB, free: 171.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.69e-05/1.41, allocations: 55.33 kB / 0.6106 GB, free: 171.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=180): time 5.891e-06/1.41, allocations: 4.312 kB / 0.6106 GB, free: 171.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236): time 0.3087/1.719, allocations: 41.39 MB / 0.6511 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.464e-05/1.719, allocations: 205.9 kB / 0.6512 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008521/1.728, allocations: 4.097 MB / 0.6552 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006956/1.728, allocations: 57.7 kB / 0.6553 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002479/1.731, allocations: 3.093 MB / 0.6583 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001469/1.732, allocations: 0.8738 MB / 0.6592 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007851/1.733, allocations: 124 kB / 0.6593 GB, free: 145.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000376/1.734, allocations: 0.5791 MB / 0.6599 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007602/1.741, allocations: 3.464 MB / 0.6632 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009793/1.751, allocations: 7.065 MB / 0.6701 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009928/1.761, allocations: 4.81 MB / 0.6748 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.073e-05/1.761, allocations: 36 kB / 0.6749 GB, free: 127.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.06065/1.822, allocations: 15.51 MB / 0.69 GB, free: 112 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.952e-05/1.822, allocations: 63.94 kB / 0.6901 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/1.822, allocations: 124.8 kB / 0.6902 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0412/1.863, allocations: 6.119 MB / 0.6962 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00881/1.872, allocations: 1.431 MB / 0.6976 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05429/1.927, allocations: 26.41 MB / 0.7234 GB, free: 77.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007992/1.935, allocations: 407.3 kB / 0.7238 GB, free: 77.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001159/1.936, allocations: 373.4 kB / 0.7241 GB, free: 76.81 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (741): * Single equations (assignments): 736 * 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.004971/1.941, allocations: 2.177 MB / 0.7262 GB, free: 74.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.942, allocations: 406.8 kB / 0.7266 GB, free: 74.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04889/1.991, allocations: 11.06 MB / 0.7374 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.86e-05/1.991, allocations: 28.7 kB / 0.7375 GB, free: 63.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/1.991, allocations: 8 kB / 0.7375 GB, free: 63.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.902e-05/1.991, allocations: 15.95 kB / 0.7375 GB, free: 63.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0691/2.06, allocations: 20.59 MB / 0.7576 GB, free: 42.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-05/2.06, allocations: 4.594 kB / 0.7576 GB, free: 42.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003743/2.064, allocations: 395.4 kB / 0.758 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03673/2.101, allocations: 5.176 MB / 0.763 GB, free: 36.46 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005945/2.101, allocations: 40.78 kB / 0.7631 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04476/2.146, allocations: 21.51 MB / 0.7841 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/2.146, allocations: 4 kB / 0.7841 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05325/2.2, allocations: 14.91 MB / 0.7986 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/2.201, allocations: 471.7 kB / 0.7991 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/2.203, allocations: 43.98 kB / 0.7991 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004646/2.207, allocations: 179.7 kB / 0.7993 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009266/2.208, allocations: 153.8 kB / 0.7994 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003671/2.209, allocations: 60.78 kB / 0.7995 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.3535/2.562, allocations: 2.902 MB / 0.8023 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.283e-06/2.562, allocations: 0 / 0.8023 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008444/2.571, allocations: 1.351 MB / 0.8037 GB, free: 170.7 MB / 0.5261 GB 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.001077/2.572, allocations: 203.7 kB / 0.8038 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02065/2.592, allocations: 8.058 MB / 0.8117 GB, free: 169.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/2.593, allocations: 1.406 kB / 0.8117 GB, free: 169.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00803/2.601, allocations: 3.172 MB / 0.8148 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/2.605, allocations: 493.5 kB / 0.8153 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03171/2.637, allocations: 13.95 MB / 0.8289 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006368/2.643, allocations: 3.602 MB / 0.8324 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/2.645, allocations: 316.7 kB / 0.8327 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.142e-06/2.645, allocations: 0 / 0.8327 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.1719/2.817, allocations: 105.2 MB / 0.9355 GB, free: 66.3 MB / 0.5261 GB