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_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.461/2.461, allocations: 269 MB / 284.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.95e-05/3.944e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1383, allocations: 61.88 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.428/0.5664, allocations: 68.6 MB / 479.5 MB, free: 2.219 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04924/0.6157, allocations: 14.97 MB / 494.5 MB, free: 3.934 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01877/0.6345, allocations: 383 kB / 494.9 MB, free: 3.559 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01412/0.6487, allocations: 3.573 MB / 498.4 MB, free: 15.96 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04009/0.6888, allocations: 9.948 MB / 0.4965 GB, free: 5.996 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006942/0.6958, allocations: 1.084 MB / 0.4975 GB, free: 4.91 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.257/0.9529, allocations: 92.87 MB / 0.5882 GB, free: 7.969 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01364/0.9666, allocations: 6.488 MB / 0.5946 GB, free: 1.422 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003815/0.9704, allocations: 1.434 MB / 0.596 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004349/0.9748, allocations: 1.886 MB / 0.5978 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002955/0.9778, allocations: 0.7687 MB / 0.5986 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0014/0.9793, allocations: 172 kB / 0.5987 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.003802/0.9831, allocations: 2.229 MB / 0.6009 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002129/0.9853, allocations: 392 kB / 0.6013 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.9972, allocations: 7.337 MB / 0.6084 GB, free: 3.18 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.9972, allocations: 3.938 kB / 0.6084 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.696e-06/0.9972, allocations: 4 kB / 0.6084 GB, free: 3.172 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003089/0.9975, allocations: 0 / 0.6084 GB, free: 3.172 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.4063/1.404, allocations: 5.885 MB / 0.6142 GB, free: 179.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/1.404, allocations: 13.64 kB / 0.6142 GB, free: 179.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2344/1.638, allocations: 19.49 MB / 0.6332 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/1.657, allocations: 5.691 MB / 0.6388 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004975/1.657, allocations: 325 kB / 0.6391 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001956/1.659, allocations: 414.8 kB / 0.6395 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03316/1.692, allocations: 11.01 MB / 0.6502 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002633/1.693, allocations: 63.45 kB / 0.6503 GB, free: 156.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/1.694, allocations: 175.1 kB / 0.6505 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007562/1.701, allocations: 1.729 MB / 0.6522 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03531/1.737, allocations: 9.323 MB / 0.6613 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07944/1.816, allocations: 44.71 MB / 0.7049 GB, free: 99.79 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03677/1.853, allocations: 7.958 MB / 0.7127 GB, free: 91.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02668/1.88, allocations: 12.84 MB / 0.7252 GB, free: 78.81 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.431e-05/1.88, allocations: 64.75 kB / 0.7253 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=283): time 6.782e-06/1.88, allocations: 0 / 0.7253 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=406): time 0.4263/2.306, allocations: 76.93 MB / 0.8004 GB, free: 1.766 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0299/2.336, allocations: 11.37 MB / 0.8115 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009762/2.346, allocations: 4.296 MB / 0.8157 GB, free: 1.918 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001369/2.348, allocations: 89.7 kB / 0.8158 GB, free: 1.824 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.345/2.693, allocations: 2.725 MB / 0.8185 GB, free: 178.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003163/2.696, allocations: 1.406 MB / 0.8198 GB, free: 178.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001343/2.697, allocations: 111.1 kB / 0.82 GB, free: 178.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005827/2.698, allocations: 0.5408 MB / 0.8205 GB, free: 177.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01263/2.71, allocations: 4.63 MB / 0.825 GB, free: 177.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01417/2.725, allocations: 6.642 MB / 0.8315 GB, free: 173 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/2.739, allocations: 5.587 MB / 0.8369 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-05/2.739, allocations: 19.28 kB / 0.837 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06764/2.807, allocations: 18.76 MB / 0.8553 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.744e-05/2.807, allocations: 39.09 kB / 0.8553 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.35e-05/2.807, allocations: 63.5 kB / 0.8554 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04312/2.85, allocations: 8.809 MB / 0.864 GB, free: 161 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007569/2.858, allocations: 1.018 MB / 0.865 GB, free: 160 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1199/2.978, allocations: 52.23 MB / 0.916 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009601/2.988, allocations: 0.5031 MB / 0.9165 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001809/2.989, allocations: 283.9 kB / 0.9167 GB, free: 106.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 294 * Number of states: 0 () * Number of discrete variables: 57 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (515): * Single equations (assignments): 506 * 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.007848/2.997, allocations: 2.256 MB / 0.9189 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002542/3, allocations: 482.9 kB / 0.9194 GB, free: 104 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06248/3.062, allocations: 17.96 MB / 0.9369 GB, free: 86.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05829/3.121, allocations: 16.46 MB / 0.953 GB, free: 69.55 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.263e-05/3.121, allocations: 28 kB / 0.953 GB, free: 69.52 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.402e-05/3.121, allocations: 23.88 kB / 0.9531 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1054/3.226, allocations: 35.35 MB / 0.9876 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-05/3.227, allocations: 4 kB / 0.9876 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00446/3.231, allocations: 459.7 kB / 0.988 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04338/3.274, allocations: 8.793 MB / 0.9966 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001295/3.276, allocations: 75.98 kB / 0.9967 GB, free: 24.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4813/3.757, allocations: 50.78 MB / 1.046 GB, free: 154.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02461/3.782, allocations: 10.17 MB / 1.056 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07531/3.857, allocations: 24.5 MB / 1.08 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/3.859, allocations: 0.5395 MB / 1.081 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00272/3.862, allocations: 75.72 kB / 1.081 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00737/3.869, allocations: 388.7 kB / 1.081 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002251/3.871, allocations: 327.9 kB / 1.081 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008981/3.872, allocations: 103.7 kB / 1.082 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006655/3.879, allocations: 3.199 MB / 1.085 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.61e-07/3.879, allocations: 3.281 kB / 1.085 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01068/3.89, allocations: 2.014 MB / 1.087 GB, free: 124.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.001689/3.891, allocations: 216.3 kB / 1.087 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03208/3.923, allocations: 12.6 MB / 1.099 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/3.923, allocations: 4 kB / 1.099 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0212/3.945, allocations: 7.202 MB / 1.106 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006588/3.951, allocations: 0.7377 MB / 1.107 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03993/3.991, allocations: 18.55 MB / 1.125 GB, free: 85.68 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008423/4, allocations: 4.269 MB / 1.129 GB, free: 81.38 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003079/4.003, allocations: 327.3 kB / 1.129 GB, free: 81.06 MB / 0.5261 GB Notification: Performance of SimCode: time 2.164e-06/4.003, allocations: 4 kB / 1.129 GB, free: 81.06 MB / 0.5261 GB Notification: Performance of Templates: time 0.6113/4.614, allocations: 146.8 MB / 1.273 GB, free: 121 MB / 0.5261 GB