Running command: translateModel(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w|revolute4.phi|revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.305/2.305, allocations: 234.9 MB / 250.1 MB, free: 9.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.94e-05/3.955e-05, allocations: 7.984 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3707, allocations: 54.85 MB / 362.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.1169/0.4876, allocations: 65.75 MB / 428.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04867/0.5363, allocations: 14.42 MB / 443 MB, free: 13.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01659/0.553, allocations: 371.1 kB / 443.4 MB, free: 13.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01253/0.5656, allocations: 3.488 MB / 446.9 MB, free: 9.605 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04249/0.6081, allocations: 9.56 MB / 456.4 MB, free: 20 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00765/0.6158, allocations: 1.088 MB / 457.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1046/0.7205, allocations: 32.04 MB / 489.6 MB, free: 14.87 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01342/0.734, allocations: 6.502 MB / 496.1 MB, free: 8.297 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003818/0.7379, allocations: 1.434 MB / 497.5 MB, free: 6.859 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004273/0.7422, allocations: 1.89 MB / 499.4 MB, free: 4.965 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003041/0.7453, allocations: 0.8194 MB / 0.4885 GB, free: 4.145 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001389/0.7467, allocations: 176 kB / 0.4886 GB, free: 3.973 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003737/0.7505, allocations: 2.233 MB / 0.4908 GB, free: 1.734 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.7526, allocations: 396 kB / 0.4912 GB, free: 1.348 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3727/1.125, allocations: 7.389 MB / 0.4984 GB, free: 38.17 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.125, allocations: 2.812 kB / 0.4984 GB, free: 38.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.517e-06/1.125, allocations: 0.8125 kB / 0.4984 GB, free: 38.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004443/1.126, allocations: 2.578 kB / 0.4984 GB, free: 38.17 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: 1493 * Number of variables: 1493 Notification: Performance of Generate backend data structure: time 0.02551/1.151, allocations: 6.067 MB / 0.5044 GB, free: 36.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/1.151, allocations: 11.95 kB / 0.5044 GB, free: 36.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2097/1.361, allocations: 19.5 MB / 0.5234 GB, free: 30.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02132/1.383, allocations: 6.358 MB / 0.5296 GB, free: 28.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004681/1.383, allocations: 325.9 kB / 0.5299 GB, free: 28.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002677/1.386, allocations: 413.5 kB / 0.5303 GB, free: 28.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04/1.426, allocations: 11.11 MB / 0.5412 GB, free: 21.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000402/1.426, allocations: 56.61 kB / 0.5412 GB, free: 21.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002274/1.429, allocations: 180.6 kB / 0.5414 GB, free: 21.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003278/1.432, allocations: 1.492 MB / 0.5429 GB, free: 20.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04552/1.477, allocations: 9.315 MB / 0.5519 GB, free: 14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1291/1.607, allocations: 44.7 MB / 0.5956 GB, free: 9.871 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05943/1.666, allocations: 7.945 MB / 0.6034 GB, free: 3.828 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04813/1.714, allocations: 12.88 MB / 0.6159 GB, free: 10.79 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/1.715, allocations: 64.3 kB / 0.616 GB, free: 10.74 MB / 474.7 MB Notification: Performance of pre-optimization done (n=283): time 9.318e-06/1.715, allocations: 0 / 0.616 GB, free: 10.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=406): time 0.9293/2.644, allocations: 77.14 MB / 0.6913 GB, free: 218.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02934/2.673, allocations: 11.38 MB / 0.7024 GB, free: 214.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/2.685, allocations: 4.334 MB / 0.7067 GB, free: 213 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001634/2.687, allocations: 89.42 kB / 0.7068 GB, free: 212.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003116/2.69, allocations: 2.719 MB / 0.7094 GB, free: 211.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00321/2.693, allocations: 1.406 MB / 0.7108 GB, free: 210.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001762/2.695, allocations: 108.3 kB / 0.7109 GB, free: 210.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005828/2.696, allocations: 0.5405 MB / 0.7114 GB, free: 209.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01225/2.708, allocations: 4.634 MB / 0.7159 GB, free: 208 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01341/2.721, allocations: 6.62 MB / 0.7224 GB, free: 203.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01945/2.741, allocations: 5.58 MB / 0.7279 GB, free: 201.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001102/2.741, allocations: 18.91 kB / 0.7279 GB, free: 201.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=722) (initialization): time 0.0744/2.815, allocations: 18.72 MB / 0.7462 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/2.816, allocations: 35.95 kB / 0.7462 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.102e-05/2.816, allocations: 64 kB / 0.7463 GB, free: 185.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04405/2.86, allocations: 8.815 MB / 0.7549 GB, free: 176.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007762/2.868, allocations: 1.01 MB / 0.7558 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1248/2.992, allocations: 52.22 MB / 0.8068 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/3.003, allocations: 0.503 MB / 0.8073 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/3.005, allocations: 283.6 kB / 0.8076 GB, free: 122.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 291 * Number of states: 0 () * Number of discrete variables: 54 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (512): * Single equations (assignments): 503 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,52.1%) 103,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.007334/3.013, allocations: 2.253 MB / 0.8098 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001734/3.014, allocations: 477.9 kB / 0.8103 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06513/3.079, allocations: 17.96 MB / 0.8278 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05888/3.138, allocations: 16.47 MB / 0.8439 GB, free: 84.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.372e-05/3.138, allocations: 35.94 kB / 0.8439 GB, free: 84.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-05/3.139, allocations: 19.92 kB / 0.8439 GB, free: 84.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1084/3.247, allocations: 35.35 MB / 0.8785 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.065e-05/3.247, allocations: 4 kB / 0.8785 GB, free: 49.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004681/3.252, allocations: 455.8 kB / 0.8789 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04466/3.296, allocations: 8.804 MB / 0.8875 GB, free: 39.74 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001558/3.298, allocations: 72 kB / 0.8876 GB, free: 39.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5561/3.854, allocations: 50.8 MB / 0.9372 GB, free: 201.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03633/3.891, allocations: 10.17 MB / 0.9471 GB, free: 197.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1205/4.011, allocations: 24.51 MB / 0.971 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005887/4.017, allocations: 1.459 MB / 0.9725 GB, free: 179.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003125/4.02, allocations: 75.89 kB / 0.9725 GB, free: 179.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008114/4.028, allocations: 389.8 kB / 0.9729 GB, free: 179 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002479/4.031, allocations: 327.7 kB / 0.9732 GB, free: 178.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001094/4.032, allocations: 96 kB / 0.9733 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008331/4.041, allocations: 3.229 MB / 0.9765 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.202e-06/4.041, allocations: 3.438 kB / 0.9765 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01165/4.052, allocations: 2.014 MB / 0.9784 GB, free: 173.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (217): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(11,54.5%) 97,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.001872/4.054, allocations: 217.7 kB / 0.9786 GB, free: 173.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03476/4.089, allocations: 12.6 MB / 0.9909 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/4.089, allocations: 0 / 0.9909 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02272/4.112, allocations: 7.204 MB / 0.998 GB, free: 153.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007543/4.119, allocations: 0.7285 MB / 0.9987 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04283/4.162, allocations: 18.6 MB / 1.017 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009236/4.172, allocations: 4.274 MB / 1.021 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003159/4.175, allocations: 335.2 kB / 1.021 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.352e-06/4.175, allocations: 1.203 kB / 1.021 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.6064/4.781, allocations: 147 MB / 1.165 GB, free: 192.1 MB / 0.5261 GB