Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.075/2.075, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.186e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3427, allocations: 48.71 MB / 324.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05095/0.3937, allocations: 32.73 MB / 357.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02411/0.4179, allocations: 7.781 MB / 365.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008844/0.4268, allocations: 165.5 kB / 365.5 MB, free: 6.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006669/0.4335, allocations: 1.692 MB / 367.2 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01902/0.4526, allocations: 4.799 MB / 372 MB, free: 316 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003093/0.4557, allocations: 491.1 kB / 372.5 MB, free: 15.83 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02584/0.4816, allocations: 8.73 MB / 381.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005681/0.4874, allocations: 2.664 MB / 383.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.4892, allocations: 0.7013 MB / 384.6 MB, free: 3.695 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.4919, allocations: 1.157 MB / 385.7 MB, free: 2.535 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002897/0.4948, allocations: 0.9246 MB / 386.7 MB, free: 1.609 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001103/0.496, allocations: 132 kB / 386.8 MB, free: 1.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002273/0.4983, allocations: 1.348 MB / 388.1 MB, free: 132 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.4995, allocations: 228 kB / 388.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008322/0.5079, allocations: 5.05 MB / 393.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.5079, allocations: 4 kB / 393.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.5079, allocations: 0 / 393.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001999/0.5081, allocations: 0 / 393.4 MB, free: 10.84 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01141/0.5196, allocations: 3.472 MB / 396.9 MB, free: 7.305 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.5196, allocations: 12.03 kB / 396.9 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1808/0.7004, allocations: 10.45 MB / 407.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008607/0.7091, allocations: 2.58 MB / 409.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.7094, allocations: 196.9 kB / 410.1 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.7107, allocations: 259.8 kB / 410.4 MB, free: 9.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02173/0.7324, allocations: 8.717 MB / 419.1 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.7326, allocations: 39.64 kB / 419.1 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007383/0.7334, allocations: 127.8 kB / 419.3 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004859/0.7383, allocations: 1.774 MB / 421 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02228/0.7606, allocations: 7.37 MB / 428.4 MB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06053/0.8212, allocations: 33.95 MB / 462.4 MB, free: 4.074 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008578/0.8298, allocations: 2.534 MB / 464.9 MB, free: 1.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005696/0.8304, allocations: 327.9 kB / 465.2 MB, free: 1.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.8305, allocations: 51 kB / 465.3 MB, free: 0.9609 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 5.741e-06/0.8305, allocations: 0 / 465.3 MB, free: 0.9609 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.04/0.8705, allocations: 9.176 MB / 474.4 MB, free: 7.637 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.8707, allocations: 196.5 kB / 474.6 MB, free: 7.398 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008749/0.8795, allocations: 3.634 MB / 478.3 MB, free: 3.781 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003039/0.8798, allocations: 45.69 kB / 478.3 MB, free: 3.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003525/0.8833, allocations: 2.898 MB / 481.2 MB, free: 0.793 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001018/0.8844, allocations: 0.5365 MB / 481.7 MB, free: 256 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006312/0.8851, allocations: 116 kB / 481.9 MB, free: 140 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.271/1.156, allocations: 0.5504 MB / 482.4 MB, free: 128.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005072/1.161, allocations: 1.671 MB / 484.1 MB, free: 128.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007716/1.169, allocations: 5.445 MB / 489.5 MB, free: 122.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007759/1.177, allocations: 2.967 MB / 492.5 MB, free: 121.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001988/1.177, allocations: 38.44 kB / 492.5 MB, free: 121.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.02141/1.199, allocations: 6.913 MB / 499.4 MB, free: 118.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001687/1.199, allocations: 63.34 kB / 499.5 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003343/1.199, allocations: 134.3 kB / 499.6 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001991/1.201, allocations: 438.1 kB / 0.4883 GB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008217/1.209, allocations: 1.316 MB / 0.4896 GB, free: 118.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006091/1.216, allocations: 3.172 MB / 0.4927 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005991/1.222, allocations: 302.4 kB / 0.493 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/1.223, allocations: 366.9 kB / 0.4934 GB, free: 116.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (713): * Single equations (assignments): 709 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004796/1.228, allocations: 1.902 MB / 0.4952 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008249/1.229, allocations: 326.8 kB / 0.4955 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005185/1.234, allocations: 1.69 MB / 0.4972 GB, free: 114.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.517e-05/1.234, allocations: 23.42 kB / 0.4972 GB, free: 114.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/1.234, allocations: 3.938 kB / 0.4972 GB, free: 114.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.97e-05/1.234, allocations: 7.75 kB / 0.4972 GB, free: 114.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/1.25, allocations: 5.424 MB / 0.5025 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/1.25, allocations: 3.312 kB / 0.5025 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/1.252, allocations: 197.3 kB / 0.5027 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/1.253, allocations: 227.2 kB / 0.5029 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002538/1.253, allocations: 19.56 kB / 0.5029 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004082/1.257, allocations: 2.569 MB / 0.5054 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/1.257, allocations: 0 / 0.5054 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007813/1.265, allocations: 3.739 MB / 0.5091 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/1.267, allocations: 0.5365 MB / 0.5096 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009043/1.268, allocations: 23.75 kB / 0.5096 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/1.27, allocations: 61.83 kB / 0.5097 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003507/1.271, allocations: 71.5 kB / 0.5098 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.271, allocations: 41.88 kB / 0.5098 GB, free: 107.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00558/1.276, allocations: 2.54 MB / 0.5123 GB, free: 104.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.277, allocations: 0 / 0.5123 GB, free: 104.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006203/1.283, allocations: 0.8628 MB / 0.5131 GB, free: 103.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007065/1.284, allocations: 171.5 kB / 0.5133 GB, free: 103.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009416/1.293, allocations: 4.05 MB / 0.5173 GB, free: 99.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.293, allocations: 0 / 0.5173 GB, free: 99.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/1.295, allocations: 1.006 MB / 0.5182 GB, free: 98.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/1.298, allocations: 361.5 kB / 0.5186 GB, free: 98.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/1.317, allocations: 9.534 MB / 0.5279 GB, free: 88.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004908/1.322, allocations: 3.028 MB / 0.5308 GB, free: 85.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/1.324, allocations: 271.4 kB / 0.5311 GB, free: 85.31 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/1.324, allocations: 4 kB / 0.5311 GB, free: 85.31 MB / 410.7 MB Notification: Performance of Templates: time 0.1159/1.439, allocations: 64.97 MB / 0.5946 GB, free: 20.29 MB / 410.7 MB