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_ModelicaTest.MultiBody.Sensors.Distance2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 1.778/1.778, allocations: 209.3 MB / 216.3 MB, free: 6.758 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.096e-05/1.127e-05, allocations: 4 kB / 267.3 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08526/0.0853, allocations: 48.69 MB / 316 MB, free: 4.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2892/0.3746, allocations: 91.03 MB / 407 MB, free: 1.887 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.3749, allocations: 81.97 kB / 407.1 MB, free: 1.848 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.4082/0.7831, allocations: 76.26 MB / 483.3 MB, free: 8.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001996/0.7833, allocations: 68 kB / 483.4 MB, free: 8.605 MB / 410.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.01199/0.7953, allocations: 3.506 MB / 486.9 MB, free: 5.043 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.7954, allocations: 12.03 kB / 486.9 MB, free: 5.031 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02399/0.8194, allocations: 3.976 MB / 490.9 MB, free: 1.043 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1695/0.9889, allocations: 4.395 MB / 495.3 MB, free: 73.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.9892, allocations: 119.9 kB / 495.4 MB, free: 73.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001287/0.9905, allocations: 211.7 kB / 495.6 MB, free: 73.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01092/1.001, allocations: 5.371 MB / 0.4892 GB, free: 73.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01566/1.017, allocations: 8.477 MB / 0.4975 GB, free: 70.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001638/1.017, allocations: 55.69 kB / 0.4976 GB, free: 70.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007733/1.018, allocations: 32.38 kB / 0.4976 GB, free: 70.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0012/1.019, allocations: 0.9469 MB / 0.4985 GB, free: 70.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04559/1.065, allocations: 41.46 MB / 0.539 GB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003448/1.068, allocations: 2.541 MB / 0.5415 GB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/1.07, allocations: 1.193 MB / 0.5427 GB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01288/1.083, allocations: 4.442 MB / 0.547 GB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/1.083, allocations: 44.45 kB / 0.547 GB, free: 41.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 8.623e-06/1.083, allocations: 0 / 0.547 GB, free: 41.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=121): time 0.02392/1.107, allocations: 8.824 MB / 0.5557 GB, free: 37.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/1.107, allocations: 193.6 kB / 0.5558 GB, free: 37.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005539/1.113, allocations: 3.071 MB / 0.5588 GB, free: 36.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001958/1.113, allocations: 27.42 kB / 0.5589 GB, free: 36.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/1.115, allocations: 2.89 MB / 0.5617 GB, free: 33.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005466/1.115, allocations: 0.5021 MB / 0.5622 GB, free: 33.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003266/1.116, allocations: 0 / 0.5622 GB, free: 33.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000407/1.116, allocations: 0.5542 MB / 0.5627 GB, free: 33.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003262/1.119, allocations: 1.561 MB / 0.5642 GB, free: 32.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005389/1.125, allocations: 5.522 MB / 0.5696 GB, free: 26.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005821/1.131, allocations: 2.966 MB / 0.5725 GB, free: 25.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001643/1.131, allocations: 41.75 kB / 0.5726 GB, free: 25.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01652/1.147, allocations: 6.208 MB / 0.5786 GB, free: 23.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/1.148, allocations: 5.844 kB / 0.5786 GB, free: 23.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002808/1.148, allocations: 146.7 kB / 0.5788 GB, free: 23.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/1.149, allocations: 371.7 kB / 0.5791 GB, free: 23.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006071/1.155, allocations: 1.378 MB / 0.5805 GB, free: 22.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/1.159, allocations: 2.593 MB / 0.583 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006205/1.165, allocations: 181.8 kB / 0.5832 GB, free: 20.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/1.166, allocations: 387.4 kB / 0.5836 GB, free: 19.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * 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 (742): * Single equations (assignments): 738 * 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.000938/1.167, allocations: 444.5 kB / 0.584 GB, free: 19.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006824/1.168, allocations: 296.2 kB / 0.5843 GB, free: 19.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003448/1.171, allocations: 1.426 MB / 0.5857 GB, free: 17.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-05/1.171, allocations: 8 kB / 0.5857 GB, free: 17.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.171, allocations: 7.75 kB / 0.5857 GB, free: 17.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/1.171, allocations: 7.219 kB / 0.5857 GB, free: 17.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/1.182, allocations: 4.082 MB / 0.5897 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/1.182, allocations: 7.891 kB / 0.5897 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/1.183, allocations: 174.7 kB / 0.5898 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006491/1.184, allocations: 146.8 kB / 0.59 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/1.184, allocations: 7.844 kB / 0.59 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/1.187, allocations: 2.025 MB / 0.592 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.646e-06/1.187, allocations: 4.094 kB / 0.592 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005099/1.192, allocations: 3.244 MB / 0.5951 GB, free: 9.336 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/1.193, allocations: 484.8 kB / 0.5956 GB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000768/1.194, allocations: 4 kB / 0.5956 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/1.196, allocations: 31.25 kB / 0.5956 GB, free: 8.848 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/1.196, allocations: 51.16 kB / 0.5957 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/1.196, allocations: 31.14 kB / 0.5957 GB, free: 8.789 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003851/1.2, allocations: 2.043 MB / 0.5977 GB, free: 7.016 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00639/1.206, allocations: 0.7122 MB / 0.5984 GB, free: 6.309 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (92): * Single equations (assignments): 88 * 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.0004141/1.207, allocations: 135.8 kB / 0.5985 GB, free: 6.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006856/1.214, allocations: 3.748 MB / 0.6022 GB, free: 2.762 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.582e-06/1.214, allocations: 0 / 0.6022 GB, free: 2.762 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/1.215, allocations: 0.9001 MB / 0.6031 GB, free: 1.934 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/1.217, allocations: 289.7 kB / 0.6033 GB, free: 1.676 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.233, allocations: 6.169 MB / 0.6094 GB, free: 12.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007051/1.24, allocations: 3.264 MB / 0.6126 GB, free: 9.562 MB / 426.7 MB Notification: Performance of SimCode: time 4.575e-06/1.24, allocations: 0 / 0.6126 GB, free: 9.562 MB / 426.7 MB Notification: Performance of Templates: time 0.09715/1.337, allocations: 27.22 MB / 0.6391 GB, free: 2.773 MB / 442.7 MB