Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Planar",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.643/2.643, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1667/2.81, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/3.093, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4298/3.523, allocations: 99.03 MB / 453.1 MB, free: 33.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/3.523, allocations: 76.39 kB / 453.2 MB, free: 33.43 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.7037/4.227, allocations: 117.7 MB / 0.5575 GB, free: 11.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.509e-05/4.227, allocations: 12 kB / 0.5575 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03636/4.264, allocations: 2.937 MB / 0.5604 GB, free: 8.711 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02729/4.291, allocations: 4.854 MB / 0.5651 GB, free: 3.801 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004557/4.291, allocations: 160 kB / 0.5653 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003614/4.295, allocations: 291.9 kB / 0.5655 GB, free: 3.359 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02981/4.325, allocations: 8.658 MB / 0.574 GB, free: 10.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05692/4.382, allocations: 11.39 MB / 0.5851 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004763/4.383, allocations: 35.64 kB / 0.5852 GB, free: 14.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004174/4.387, allocations: 16 kB / 0.5852 GB, free: 14.72 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006502/4.393, allocations: 1.482 MB / 0.5866 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.327/4.72, allocations: 40.15 MB / 0.6258 GB, free: 126 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0081/4.729, allocations: 3.074 MB / 0.6288 GB, free: 126 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006751/4.735, allocations: 2.506 MB / 0.6313 GB, free: 126 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03488/4.77, allocations: 10.06 MB / 0.6411 GB, free: 122.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/4.77, allocations: 49.12 kB / 0.6411 GB, free: 122.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=218): time 7.023e-06/4.77, allocations: 5.531 kB / 0.6411 GB, free: 122.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=245): time 0.06933/4.84, allocations: 16.59 MB / 0.6574 GB, free: 121.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/4.84, allocations: 71.91 kB / 0.6574 GB, free: 121.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007475/4.847, allocations: 2.889 MB / 0.6602 GB, free: 121 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005924/4.848, allocations: 28.11 kB / 0.6603 GB, free: 121 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002651/4.851, allocations: 3.334 MB / 0.6635 GB, free: 119.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001529/4.852, allocations: 0.8839 MB / 0.6644 GB, free: 118.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008672/4.853, allocations: 0 / 0.6644 GB, free: 118.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005798/4.854, allocations: 0.5952 MB / 0.665 GB, free: 118.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007049/4.861, allocations: 2.541 MB / 0.6675 GB, free: 118.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009691/4.871, allocations: 6.178 MB / 0.6735 GB, free: 113.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/4.882, allocations: 4.037 MB / 0.6774 GB, free: 113.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001401/4.882, allocations: 36.59 kB / 0.6775 GB, free: 113.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.03131/4.913, allocations: 8.788 MB / 0.686 GB, free: 111.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/4.913, allocations: 4.969 kB / 0.686 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003356/4.914, allocations: 135.9 kB / 0.6862 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009768/4.923, allocations: 0.9974 MB / 0.6872 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01499/4.939, allocations: 1.475 MB / 0.6886 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01832/4.957, allocations: 4.774 MB / 0.6933 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01165/4.969, allocations: 182.2 kB / 0.6934 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002443/4.971, allocations: 391 kB / 0.6938 GB, free: 108.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 (805): * Single equations (assignments): 798 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,76.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003754/4.975, allocations: 436.2 kB / 0.6942 GB, free: 108.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001655/4.977, allocations: 310.6 kB / 0.6945 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02515/5.002, allocations: 4.96 MB / 0.6994 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001987/5.002, allocations: 33.8 kB / 0.6994 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.77e-05/5.002, allocations: 2.75 kB / 0.6994 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.746e-05/5.002, allocations: 11.2 kB / 0.6994 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0469/5.049, allocations: 10.18 MB / 0.7093 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-05/5.049, allocations: 4.875 kB / 0.7093 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004355/5.054, allocations: 352.2 kB / 0.7097 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006504/5.06, allocations: 0.7938 MB / 0.7105 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006135/5.061, allocations: 10.59 kB / 0.7105 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/5.073, allocations: 4.173 MB / 0.7145 GB, free: 99.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/5.073, allocations: 11.19 kB / 0.7146 GB, free: 99.96 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02248/5.095, allocations: 7.958 MB / 0.7223 GB, free: 92.81 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03166/5.127, allocations: 11.08 MB / 0.7331 GB, free: 82.81 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004347/5.131, allocations: 0.7132 MB / 0.7338 GB, free: 82.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001916/5.133, allocations: 11.88 kB / 0.7338 GB, free: 82.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004975/5.138, allocations: 65.22 kB / 0.7339 GB, free: 82.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001167/5.139, allocations: 109.1 kB / 0.734 GB, free: 82.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007095/5.14, allocations: 62.06 kB / 0.7341 GB, free: 81.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.007395/5.148, allocations: 1.905 MB / 0.7359 GB, free: 80.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01293/5.161, allocations: 0.987 MB / 0.7369 GB, free: 79.33 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 181 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001285/5.162, allocations: 155.2 kB / 0.737 GB, free: 79.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0188/5.181, allocations: 5.993 MB / 0.7429 GB, free: 73.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.758e-05/5.181, allocations: 0 / 0.7429 GB, free: 73.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006865/5.188, allocations: 2.123 MB / 0.745 GB, free: 71.85 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/5.191, allocations: 261.5 kB / 0.7452 GB, free: 71.62 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03721/5.229, allocations: 9.449 MB / 0.7544 GB, free: 63.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01279/5.241, allocations: 4.211 MB / 0.7586 GB, free: 60.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.734e-06/5.242, allocations: 0 / 0.7586 GB, free: 60.03 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat