Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [: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 2.085/2.085, allocations: 209.3 MB / 216.3 MB, free: 6.801 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2467/2.332, allocations: 51.03 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/2.445, allocations: 48.68 MB / 316 MB, free: 4.363 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4014/2.846, allocations: 91.04 MB / 407 MB, free: 1.891 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004203/2.847, allocations: 82.14 kB / 407.1 MB, free: 1.852 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.3812/3.228, allocations: 79.83 MB / 486.9 MB, free: 5.012 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/3.228, allocations: 8 kB / 486.9 MB, free: 5.004 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03341/3.261, allocations: 3.968 MB / 490.9 MB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1851/3.446, allocations: 4.397 MB / 495.3 MB, free: 137.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/3.447, allocations: 122.4 kB / 495.4 MB, free: 137.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002198/3.449, allocations: 214.2 kB / 495.6 MB, free: 137.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01516/3.464, allocations: 5.37 MB / 0.4893 GB, free: 137.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02772/3.492, allocations: 8.472 MB / 0.4975 GB, free: 134.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003317/3.492, allocations: 54.28 kB / 0.4976 GB, free: 134.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002915/3.495, allocations: 31.5 kB / 0.4976 GB, free: 134.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001711/3.497, allocations: 0.9577 MB / 0.4985 GB, free: 134.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06419/3.561, allocations: 41.46 MB / 0.539 GB, free: 106.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005664/3.567, allocations: 2.552 MB / 0.5415 GB, free: 104.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002508/3.57, allocations: 1.186 MB / 0.5427 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/3.581, allocations: 4.448 MB / 0.547 GB, free: 101.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/3.581, allocations: 46.31 kB / 0.5471 GB, free: 101.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 4.789e-06/3.581, allocations: 3.938 kB / 0.5471 GB, free: 101.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=121): time 0.03076/3.612, allocations: 8.818 MB / 0.5557 GB, free: 97.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/3.612, allocations: 194.3 kB / 0.5559 GB, free: 96.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009343/3.622, allocations: 3.063 MB / 0.5589 GB, free: 95.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002759/3.622, allocations: 28.73 kB / 0.5589 GB, free: 95.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002627/3.625, allocations: 2.896 MB / 0.5617 GB, free: 93.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000835/3.626, allocations: 0.4894 MB / 0.5622 GB, free: 93.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007084/3.626, allocations: 0 / 0.5622 GB, free: 93.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005107/3.627, allocations: 0.5651 MB / 0.5627 GB, free: 92.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004686/3.631, allocations: 1.563 MB / 0.5643 GB, free: 92.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007831/3.639, allocations: 5.52 MB / 0.5697 GB, free: 86.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007903/3.647, allocations: 2.96 MB / 0.5726 GB, free: 84.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002362/3.648, allocations: 44 kB / 0.5726 GB, free: 84.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01803/3.666, allocations: 6.214 MB / 0.5787 GB, free: 78.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/3.666, allocations: 5.719 kB / 0.5787 GB, free: 78.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002197/3.666, allocations: 144 kB / 0.5788 GB, free: 78.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/3.667, allocations: 377.2 kB / 0.5792 GB, free: 78.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00862/3.676, allocations: 1.372 MB / 0.5805 GB, free: 76.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/3.68, allocations: 2.596 MB / 0.583 GB, free: 74.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006749/3.687, allocations: 178.2 kB / 0.5832 GB, free: 74.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001493/3.689, allocations: 383.1 kB / 0.5836 GB, free: 73.86 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.001178/3.69, allocations: 464.2 kB / 0.584 GB, free: 73.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008271/3.691, allocations: 292.2 kB / 0.5843 GB, free: 73.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004348/3.695, allocations: 1.415 MB / 0.5857 GB, free: 71.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-05/3.695, allocations: 11.91 kB / 0.5857 GB, free: 71.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/3.695, allocations: 11.84 kB / 0.5857 GB, free: 71.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/3.695, allocations: 3.938 kB / 0.5857 GB, free: 71.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02/3.715, allocations: 4.087 MB / 0.5897 GB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.198e-05/3.715, allocations: 0 / 0.5897 GB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/3.717, allocations: 173.2 kB / 0.5899 GB, free: 68.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008849/3.718, allocations: 151.9 kB / 0.59 GB, free: 68.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001964/3.719, allocations: 15.84 kB / 0.59 GB, free: 68.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/3.722, allocations: 2.022 MB / 0.592 GB, free: 66.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/3.722, allocations: 8.031 kB / 0.592 GB, free: 66.32 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0069/3.729, allocations: 3.238 MB / 0.5952 GB, free: 63.36 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008766/3.738, allocations: 4.686 MB / 0.5997 GB, free: 59.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/3.739, allocations: 485.2 kB / 0.6002 GB, free: 58.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006603/3.74, allocations: 3.906 kB / 0.6002 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003675/3.744, allocations: 26.45 kB / 0.6002 GB, free: 58.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003721/3.744, allocations: 50.61 kB / 0.6003 GB, free: 58.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/3.744, allocations: 35.75 kB / 0.6003 GB, free: 58.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005546/3.75, allocations: 2.041 MB / 0.6023 GB, free: 56.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007738/3.757, allocations: 0.7163 MB / 0.603 GB, free: 56.04 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.0005508/3.758, allocations: 127.8 kB / 0.6031 GB, free: 55.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008523/3.767, allocations: 3.752 MB / 0.6068 GB, free: 52.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/3.767, allocations: 4 kB / 0.6068 GB, free: 52.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002278/3.769, allocations: 0.8916 MB / 0.6077 GB, free: 51.67 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/3.771, allocations: 283.2 kB / 0.6079 GB, free: 51.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/3.79, allocations: 6.172 MB / 0.614 GB, free: 45.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007258/3.797, allocations: 3.266 MB / 0.6172 GB, free: 43.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/3.797, allocations: 4 kB / 0.6172 GB, free: 43.3 MB / 410.7 MB