Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 1.934/1.934, allocations: 209.3 MB / 224.4 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.225e-05, allocations: 0 / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3571, allocations: 48.71 MB / 324.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.05766/0.4148, allocations: 37.1 MB / 361.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02784/0.4427, allocations: 8.832 MB / 370.8 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0101/0.4529, allocations: 195.5 kB / 371 MB, free: 1.375 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007766/0.4607, allocations: 1.921 MB / 372.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02221/0.4829, allocations: 5.399 MB / 378.3 MB, free: 10.03 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004278/0.4873, allocations: 0.7488 MB / 379 MB, free: 9.281 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.05094/0.5383, allocations: 16.91 MB / 395.9 MB, free: 8.355 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008345/0.5467, allocations: 3.808 MB / 399.8 MB, free: 4.527 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.5498, allocations: 0.9506 MB / 400.7 MB, free: 3.574 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00388/0.5537, allocations: 1.637 MB / 402.3 MB, free: 1.934 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003519/0.5573, allocations: 1.073 MB / 403.4 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.559, allocations: 176 kB / 403.6 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003287/0.5623, allocations: 1.753 MB / 405.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.5641, allocations: 292 kB / 405.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.5751, allocations: 6.19 MB / 411.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.5752, allocations: 0 / 411.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5752, allocations: 0 / 411.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002726/0.5755, allocations: 4 kB / 411.8 MB, free: 8.438 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1534 * Number of variables: 1534 Notification: Performance of Generate backend data structure: time 0.01597/0.5915, allocations: 4.534 MB / 416.4 MB, free: 3.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.5916, allocations: 8.031 kB / 416.4 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1168/0.7083, allocations: 11.57 MB / 427.9 MB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0127/0.7211, allocations: 3.853 MB / 431.8 MB, free: 4.324 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003363/0.7215, allocations: 246.1 kB / 432 MB, free: 4.082 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002012/0.7235, allocations: 331.7 kB / 432.3 MB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04286/0.7664, allocations: 10.88 MB / 443.2 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002747/0.7667, allocations: 47.59 kB / 443.3 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001305/0.7681, allocations: 155.8 kB / 443.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007206/0.7753, allocations: 1.943 MB / 445.4 MB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03255/0.8079, allocations: 9.331 MB / 454.7 MB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3568/1.165, allocations: 41.04 MB / 495.7 MB, free: 102.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01912/1.184, allocations: 4.242 MB / 500 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01878/1.203, allocations: 7.6 MB / 0.4957 GB, free: 97.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.082e-05/1.203, allocations: 53.72 kB / 0.4957 GB, free: 97.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=180): time 6.612e-06/1.203, allocations: 0 / 0.4957 GB, free: 97.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.3253/1.528, allocations: 41.53 MB / 0.5363 GB, free: 68.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.613e-05/1.528, allocations: 216 kB / 0.5365 GB, free: 68.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008546/1.537, allocations: 4.09 MB / 0.5405 GB, free: 64.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007148/1.538, allocations: 61.7 kB / 0.5406 GB, free: 64.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00277/1.54, allocations: 3.087 MB / 0.5436 GB, free: 61.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001508/1.542, allocations: 0.8694 MB / 0.5444 GB, free: 60.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009526/1.543, allocations: 125.4 kB / 0.5445 GB, free: 60.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005108/1.544, allocations: 0.5752 MB / 0.5451 GB, free: 59.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008004/1.552, allocations: 3.463 MB / 0.5485 GB, free: 56.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009814/1.561, allocations: 7.033 MB / 0.5553 GB, free: 47.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/1.572, allocations: 4.798 MB / 0.56 GB, free: 42.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.511e-05/1.572, allocations: 36 kB / 0.5601 GB, free: 42.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.06804/1.64, allocations: 15.5 MB / 0.5752 GB, free: 27.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/1.64, allocations: 56 kB / 0.5753 GB, free: 27.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002092/1.64, allocations: 128 kB / 0.5754 GB, free: 26.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05645/1.697, allocations: 6.117 MB / 0.5813 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01104/1.708, allocations: 1.427 MB / 0.5827 GB, free: 19.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.103/1.811, allocations: 26.38 MB / 0.6085 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008721/1.82, allocations: 407.4 kB / 0.6089 GB, free: 8.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.821, allocations: 381.2 kB / 0.6093 GB, free: 8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 573 * 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 (738): * Single equations (assignments): 733 * 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.006253/1.828, allocations: 2.174 MB / 0.6114 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/1.829, allocations: 402.8 kB / 0.6118 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05398/1.883, allocations: 11.06 MB / 0.6226 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-05/1.883, allocations: 29.33 kB / 0.6226 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.036e-05/1.883, allocations: 12 kB / 0.6226 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-05/1.883, allocations: 18.77 kB / 0.6226 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07959/1.963, allocations: 20.59 MB / 0.6427 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.386e-05/1.963, allocations: 4 kB / 0.6427 GB, free: 5.207 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003864/1.967, allocations: 392 kB / 0.6431 GB, free: 4.824 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3216/2.288, allocations: 5.171 MB / 0.6482 GB, free: 160.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/2.289, allocations: 50.03 kB / 0.6482 GB, free: 160.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05118/2.34, allocations: 21.5 MB / 0.6692 GB, free: 151.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/2.34, allocations: 5.344 kB / 0.6692 GB, free: 151.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05588/2.396, allocations: 14.91 MB / 0.6838 GB, free: 146.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003631/2.4, allocations: 0.9889 MB / 0.6847 GB, free: 145.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002023/2.402, allocations: 52.52 kB / 0.6848 GB, free: 145.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00517/2.407, allocations: 171.7 kB / 0.6849 GB, free: 145.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00112/2.408, allocations: 157.8 kB / 0.6851 GB, free: 145.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004615/2.409, allocations: 66.23 kB / 0.6852 GB, free: 145.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009575/2.419, allocations: 2.917 MB / 0.688 GB, free: 144.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.384e-06/2.419, allocations: 1.969 kB / 0.688 GB, free: 144.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01228/2.431, allocations: 1.351 MB / 0.6893 GB, free: 144.5 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 (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.001202/2.432, allocations: 193.9 kB / 0.6895 GB, free: 144.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02336/2.456, allocations: 8.047 MB / 0.6974 GB, free: 137.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/2.456, allocations: 0 / 0.6974 GB, free: 137.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007483/2.463, allocations: 3.176 MB / 0.7005 GB, free: 134.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/2.468, allocations: 495.6 kB / 0.7009 GB, free: 134 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02974/2.497, allocations: 13.95 MB / 0.7146 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007023/2.504, allocations: 3.6 MB / 0.7181 GB, free: 116.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002097/2.507, allocations: 315.4 kB / 0.7184 GB, free: 116.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.723e-06/2.507, allocations: 0 / 0.7184 GB, free: 116.3 MB / 458.7 MB Notification: Performance of Templates: time 0.4986/3.005, allocations: 105.2 MB / 0.8211 GB, free: 151.2 MB / 458.7 MB