Running command: translateModel(ModelicaTest.MultiBody.Forces.Worldtorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque") Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 234.9 MB / 250.1 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.458e-05, allocations: 4 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3921, allocations: 54.85 MB / 362.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Worldtorque): time 0.1317/0.5238, allocations: 80.11 MB / 443 MB, free: 13.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06023/0.5841, allocations: 16.93 MB / 459.9 MB, free: 12.58 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01962/0.6038, allocations: 419.1 kB / 460.3 MB, free: 12.17 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01573/0.6196, allocations: 4.277 MB / 464.6 MB, free: 7.875 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04397/0.6636, allocations: 11.4 MB / 476 MB, free: 12.44 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007161/0.6708, allocations: 0.9712 MB / 476.9 MB, free: 11.47 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0741/0.745, allocations: 24.83 MB / 0.49 GB, free: 2.621 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3734/1.118, allocations: 6.718 MB / 0.4966 GB, free: 25.22 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004173/1.123, allocations: 1.41 MB / 0.498 GB, free: 25.22 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004991/1.128, allocations: 2.294 MB / 0.5002 GB, free: 25.21 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004492/1.132, allocations: 1.104 MB / 0.5013 GB, free: 25.21 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001911/1.134, allocations: 212.8 kB / 0.5015 GB, free: 25.21 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004407/1.139, allocations: 2.745 MB / 0.5042 GB, free: 25.21 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/1.141, allocations: 473.8 kB / 0.5046 GB, free: 25.21 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01437/1.156, allocations: 9.743 MB / 0.5141 GB, free: 24.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/1.156, allocations: 2.031 kB / 0.5141 GB, free: 24.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.376e-06/1.156, allocations: 0 / 0.5141 GB, free: 24.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004846/1.156, allocations: 0 / 0.5141 GB, free: 24.18 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: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.02381/1.18, allocations: 6.805 MB / 0.5208 GB, free: 20.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/1.18, allocations: 15.41 kB / 0.5208 GB, free: 20.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1723/1.352, allocations: 16.73 MB / 0.5371 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/1.371, allocations: 5.702 MB / 0.5427 GB, free: 8.809 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004796/1.371, allocations: 405.5 kB / 0.5431 GB, free: 8.586 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003187/1.374, allocations: 0.5392 MB / 0.5436 GB, free: 8.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04723/1.422, allocations: 16.37 MB / 0.5596 GB, free: 11.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004069/1.422, allocations: 84.02 kB / 0.5597 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002214/1.424, allocations: 250.4 kB / 0.5599 GB, free: 11.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007942/1.432, allocations: 2.899 MB / 0.5627 GB, free: 8.953 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04572/1.478, allocations: 13.4 MB / 0.5758 GB, free: 15.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.123/1.601, allocations: 61.83 MB / 0.6362 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02515/1.626, allocations: 5.935 MB / 0.642 GB, free: 7.219 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003994/1.627, allocations: 48.05 kB / 0.642 GB, free: 7.195 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.759e-05/1.627, allocations: 70.05 kB / 0.6421 GB, free: 7.141 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=249): time 7.263e-06/1.627, allocations: 0 / 0.6421 GB, free: 7.141 MB / 0.4948 GB Notification: Performance of matching and sorting (n=267): time 0.1136/1.74, allocations: 24 MB / 0.6655 GB, free: 2.824 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001886/1.741, allocations: 263.2 kB / 0.6658 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01863/1.759, allocations: 6.617 MB / 0.6723 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007733/1.76, allocations: 69.7 kB / 0.6723 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005932/1.766, allocations: 4.765 MB / 0.677 GB, free: 7.316 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002087/1.768, allocations: 1.029 MB / 0.678 GB, free: 6.297 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/1.769, allocations: 176.1 kB / 0.6782 GB, free: 6.125 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007978/1.77, allocations: 0.6704 MB / 0.6788 GB, free: 5.441 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009534/1.78, allocations: 3.058 MB / 0.6818 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.362/2.142, allocations: 8.27 MB / 0.6899 GB, free: 204.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01735/2.159, allocations: 4.913 MB / 0.6947 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003785/2.16, allocations: 58.62 kB / 0.6947 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1116) (initialization): time 0.03569/2.195, allocations: 11.57 MB / 0.706 GB, free: 199.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002824/2.196, allocations: 84.86 kB / 0.7061 GB, free: 199.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003976/2.196, allocations: 189.8 kB / 0.7063 GB, free: 199.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00601/2.202, allocations: 1.064 MB / 0.7073 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01667/2.219, allocations: 1.996 MB / 0.7093 GB, free: 199.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0225/2.242, allocations: 9.791 MB / 0.7188 GB, free: 193 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01555/2.257, allocations: 0.4892 MB / 0.7193 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002388/2.26, allocations: 0.5085 MB / 0.7198 GB, free: 192.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1050): * Single equations (assignments): 1044 * Array equations: 3 * 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: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01133/2.271, allocations: 3.268 MB / 0.723 GB, free: 191.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/2.273, allocations: 0.5864 MB / 0.7236 GB, free: 191.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/2.286, allocations: 4.888 MB / 0.7283 GB, free: 187.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-05/2.286, allocations: 28 kB / 0.7284 GB, free: 187.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/2.286, allocations: 8 kB / 0.7284 GB, free: 187.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/2.286, allocations: 11.39 kB / 0.7284 GB, free: 187.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03321/2.32, allocations: 12.3 MB / 0.7404 GB, free: 177.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.308e-05/2.32, allocations: 0 / 0.7404 GB, free: 177.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004549/2.324, allocations: 461.6 kB / 0.7408 GB, free: 177.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003564/2.328, allocations: 0.7456 MB / 0.7416 GB, free: 176.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005869/2.328, allocations: 51.89 kB / 0.7416 GB, free: 176.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/2.343, allocations: 8.847 MB / 0.7503 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/2.343, allocations: 0 / 0.7503 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02667/2.37, allocations: 8.53 MB / 0.7586 GB, free: 159.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005152/2.375, allocations: 1.053 MB / 0.7596 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002692/2.378, allocations: 49.16 kB / 0.7597 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007119/2.385, allocations: 171.8 kB / 0.7598 GB, free: 158.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.386, allocations: 153.7 kB / 0.76 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004204/2.386, allocations: 69.59 kB / 0.76 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01558/2.402, allocations: 4.76 MB / 0.7647 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.163e-06/2.402, allocations: 0 / 0.7647 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01214/2.414, allocations: 1.596 MB / 0.7662 GB, free: 151.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 213 * Array equations: 3 * 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: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001239/2.415, allocations: 207.8 kB / 0.7664 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0189/2.434, allocations: 7.705 MB / 0.774 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/2.434, allocations: 3.938 kB / 0.774 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006033/2.44, allocations: 2.657 MB / 0.7766 GB, free: 141.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006354/2.447, allocations: 0.7594 MB / 0.7773 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04067/2.488, allocations: 18.57 MB / 0.7954 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01077/2.498, allocations: 5.216 MB / 0.8005 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002866/2.501, allocations: 471.3 kB / 0.801 GB, free: 116 MB / 0.5261 GB Notification: Performance of SimCode: time 1.303e-06/2.501, allocations: 0 / 0.801 GB, free: 116 MB / 0.5261 GB Notification: Performance of Templates: time 0.6509/3.152, allocations: 178.6 MB / 0.9754 GB, free: 139.3 MB / 0.5261 GB