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.457/2.457, allocations: 234.9 MB / 250.1 MB, free: 9.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.99e-05/3.991e-05, allocations: 4 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3791, allocations: 54.86 MB / 362.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.05882/0.438, allocations: 37.1 MB / 400 MB, free: 8.656 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02764/0.4657, allocations: 8.862 MB / 408.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009761/0.4756, allocations: 195.5 kB / 409 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007374/0.483, allocations: 1.921 MB / 410.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02197/0.505, allocations: 5.391 MB / 416.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004237/0.5093, allocations: 0.7332 MB / 417.1 MB, free: 7.508 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.05039/0.5597, allocations: 16.91 MB / 434 MB, free: 6.578 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008663/0.5685, allocations: 3.806 MB / 437.8 MB, free: 2.742 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002752/0.5713, allocations: 0.9506 MB / 438.7 MB, free: 1.789 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003817/0.5751, allocations: 1.637 MB / 440.4 MB, free: 152 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003612/0.5788, allocations: 1.073 MB / 441.4 MB, free: 15.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001611/0.5805, allocations: 180 kB / 441.6 MB, free: 14.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003218/0.5837, allocations: 1.749 MB / 443.4 MB, free: 13.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.5855, allocations: 296 kB / 443.6 MB, free: 12.86 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.5964, allocations: 6.186 MB / 449.8 MB, free: 6.656 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.5965, allocations: 0 / 449.8 MB, free: 6.656 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.5965, allocations: 0 / 449.8 MB, free: 6.656 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003122/0.5968, allocations: 0 / 449.8 MB, free: 6.656 MB / 378.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.01625/0.6131, allocations: 4.538 MB / 454.4 MB, free: 2.047 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.6132, allocations: 19.97 kB / 454.4 MB, free: 2.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1203/0.7335, allocations: 11.56 MB / 466 MB, free: 6.441 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/0.7472, allocations: 3.861 MB / 469.8 MB, free: 2.523 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003546/0.7476, allocations: 246.1 kB / 470.1 MB, free: 2.281 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/0.7494, allocations: 323.8 kB / 470.4 MB, free: 1.965 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04032/0.7897, allocations: 10.88 MB / 481.2 MB, free: 6.352 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004025/0.7902, allocations: 63.44 kB / 481.3 MB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002266/0.7925, allocations: 151.8 kB / 481.5 MB, free: 6.141 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007774/0.8003, allocations: 1.951 MB / 483.4 MB, free: 4.184 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0327/0.8331, allocations: 9.319 MB / 492.7 MB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4535/1.287, allocations: 41.04 MB / 0.5213 GB, free: 92.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/1.306, allocations: 4.254 MB / 0.5254 GB, free: 90.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01793/1.324, allocations: 7.611 MB / 0.5328 GB, free: 84.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/1.324, allocations: 47.19 kB / 0.5329 GB, free: 84.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=180): time 6.342e-06/1.324, allocations: 0 / 0.5329 GB, free: 84.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=236): time 0.3008/1.624, allocations: 41.53 MB / 0.5734 GB, free: 43.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.229e-05/1.625, allocations: 201.9 kB / 0.5736 GB, free: 43.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008192/1.633, allocations: 4.093 MB / 0.5776 GB, free: 39.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006877/1.634, allocations: 65.64 kB / 0.5777 GB, free: 39.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00254/1.636, allocations: 3.079 MB / 0.5807 GB, free: 36.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001421/1.638, allocations: 0.8796 MB / 0.5816 GB, free: 35.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000769/1.638, allocations: 126.2 kB / 0.5817 GB, free: 35.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000365/1.639, allocations: 0.5713 MB / 0.5822 GB, free: 34.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00775/1.646, allocations: 3.463 MB / 0.5856 GB, free: 31.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01031/1.657, allocations: 7.037 MB / 0.5925 GB, free: 22.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.669, allocations: 4.795 MB / 0.5972 GB, free: 17.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/1.669, allocations: 36 kB / 0.5972 GB, free: 17.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.06283/1.732, allocations: 15.48 MB / 0.6123 GB, free: 2.273 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.801e-05/1.732, allocations: 56 kB / 0.6124 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001558/1.732, allocations: 128 kB / 0.6125 GB, free: 2.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0439/1.776, allocations: 6.123 MB / 0.6185 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01012/1.786, allocations: 1.427 MB / 0.6199 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06664/1.853, allocations: 26.4 MB / 0.6457 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008771/1.862, allocations: 411.3 kB / 0.646 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/1.863, allocations: 375.5 kB / 0.6464 GB, free: 15.1 MB / 474.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.00632/1.869, allocations: 2.177 MB / 0.6485 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.871, allocations: 398.8 kB / 0.6489 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05467/1.926, allocations: 11.07 MB / 0.6597 GB, free: 1.414 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.495e-05/1.926, allocations: 24 kB / 0.6597 GB, free: 1.391 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.22e-05/1.926, allocations: 8 kB / 0.6598 GB, free: 1.383 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-05/1.926, allocations: 13.09 kB / 0.6598 GB, free: 1.371 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4019/2.328, allocations: 20.6 MB / 0.6799 GB, free: 168.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.131e-05/2.328, allocations: 7.562 kB / 0.6799 GB, free: 168.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00391/2.332, allocations: 392 kB / 0.6803 GB, free: 168.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03776/2.37, allocations: 5.174 MB / 0.6853 GB, free: 168.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006336/2.37, allocations: 50.34 kB / 0.6854 GB, free: 168.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04728/2.418, allocations: 21.48 MB / 0.7063 GB, free: 157 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/2.418, allocations: 11.75 kB / 0.7064 GB, free: 157 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0546/2.472, allocations: 14.91 MB / 0.7209 GB, free: 142.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003388/2.476, allocations: 0.9913 MB / 0.7219 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001708/2.477, allocations: 39.95 kB / 0.7219 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005052/2.482, allocations: 184 kB / 0.7221 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/2.484, allocations: 158.3 kB / 0.7223 GB, free: 141.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004063/2.484, allocations: 64.55 kB / 0.7223 GB, free: 141.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006699/2.491, allocations: 2.914 MB / 0.7252 GB, free: 138.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.162e-06/2.491, allocations: 0 / 0.7252 GB, free: 138.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007834/2.499, allocations: 1.343 MB / 0.7265 GB, free: 137 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.001164/2.5, allocations: 197.5 kB / 0.7267 GB, free: 136.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01847/2.518, allocations: 8.047 MB / 0.7345 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/2.518, allocations: 0 / 0.7345 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00746/2.526, allocations: 3.182 MB / 0.7376 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00441/2.53, allocations: 489.6 kB / 0.7381 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02959/2.56, allocations: 13.95 MB / 0.7517 GB, free: 111.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006347/2.566, allocations: 3.609 MB / 0.7552 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002121/2.569, allocations: 307.4 kB / 0.7555 GB, free: 107.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.502e-06/2.569, allocations: 0 / 0.7555 GB, free: 107.4 MB / 490.7 MB Notification: Performance of Templates: time 0.5112/3.08, allocations: 105.2 MB / 0.8583 GB, free: 158.3 MB / 490.7 MB