Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.686/2.686, allocations: 235 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2184/2.904, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/3.266, allocations: 54.85 MB / 354.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4181/3.684, allocations: 97.16 MB / 451.2 MB, free: 32.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/3.684, allocations: 75.09 kB / 451.3 MB, free: 32.38 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.475/4.159, allocations: 92.12 MB / 0.5307 GB, free: 7.168 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/4.159, allocations: 8 kB / 0.5307 GB, free: 7.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04311/4.202, allocations: 2.849 MB / 0.5335 GB, free: 4.301 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03124/4.234, allocations: 4.702 MB / 0.5381 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000555/4.234, allocations: 140 kB / 0.5382 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003905/4.238, allocations: 263.8 kB / 0.5385 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03872/4.277, allocations: 7.96 MB / 0.5462 GB, free: 7.176 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0461/4.323, allocations: 10.37 MB / 0.5564 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000221/4.323, allocations: 31.7 kB / 0.5564 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001565/4.325, allocations: 16 kB / 0.5564 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003167/4.328, allocations: 1.301 MB / 0.5577 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.114/4.442, allocations: 35.16 MB / 0.592 GB, free: 7.191 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/4.453, allocations: 2.67 MB / 0.5946 GB, free: 4.52 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007253/4.461, allocations: 2.201 MB / 0.5968 GB, free: 2.316 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0414/4.502, allocations: 9.479 MB / 0.606 GB, free: 8.281 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.554e-05/4.502, allocations: 43.97 kB / 0.6061 GB, free: 8.227 MB / 474.7 MB Notification: Performance of pre-optimization done (n=213): time 7.404e-06/4.502, allocations: 3.938 kB / 0.6061 GB, free: 8.223 MB / 474.7 MB Notification: Performance of matching and sorting (n=240): time 0.2796/4.782, allocations: 10.37 MB / 0.6162 GB, free: 151.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/4.782, allocations: 80.16 kB / 0.6163 GB, free: 151.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007614/4.79, allocations: 2.643 MB / 0.6189 GB, free: 151.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005916/4.79, allocations: 25.7 kB / 0.6189 GB, free: 151.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002474/4.793, allocations: 3 MB / 0.6218 GB, free: 150.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/4.794, allocations: 0.8794 MB / 0.6227 GB, free: 150.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009124/4.795, allocations: 0 / 0.6227 GB, free: 150.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006032/4.796, allocations: 0.5764 MB / 0.6232 GB, free: 149.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006304/4.802, allocations: 2.399 MB / 0.6256 GB, free: 149.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/4.816, allocations: 5.774 MB / 0.6312 GB, free: 145.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/4.826, allocations: 3.82 MB / 0.6349 GB, free: 145.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/4.826, allocations: 34.47 kB / 0.635 GB, free: 145.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=825) (initialization): time 0.03825/4.865, allocations: 8.247 MB / 0.643 GB, free: 145.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/4.865, allocations: 3.031 kB / 0.643 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/4.865, allocations: 124.3 kB / 0.6432 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/4.875, allocations: 0.9287 MB / 0.6441 GB, free: 145 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01549/4.891, allocations: 1.412 MB / 0.6454 GB, free: 144.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006651/4.897, allocations: 2.359 MB / 0.6477 GB, free: 143.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01031/4.908, allocations: 175.4 kB / 0.6479 GB, free: 143.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002518/4.91, allocations: 376.5 kB / 0.6483 GB, free: 143.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * Number of states: 0 () * Number of discrete variables: 21 (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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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 (772): * Single equations (assignments): 763 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003419/4.914, allocations: 403.2 kB / 0.6487 GB, free: 143.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/4.915, allocations: 286.2 kB / 0.6489 GB, free: 143.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02229/4.938, allocations: 4.685 MB / 0.6535 GB, free: 143.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001534/4.938, allocations: 43.94 kB / 0.6535 GB, free: 143.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/4.938, allocations: 0 / 0.6535 GB, free: 143.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.377e-05/4.938, allocations: 10.83 kB / 0.6536 GB, free: 143.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03439/4.972, allocations: 9.114 MB / 0.6625 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.244e-05/4.972, allocations: 3.969 kB / 0.6625 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004602/4.977, allocations: 357.5 kB / 0.6628 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007984/4.985, allocations: 0.7635 MB / 0.6635 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006785/4.986, allocations: 32.05 kB / 0.6636 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00406/4.99, allocations: 2.132 MB / 0.6657 GB, free: 141.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/4.99, allocations: 3.938 kB / 0.6657 GB, free: 141.3 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02348/5.013, allocations: 7.087 MB / 0.6726 GB, free: 139 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03707/5.051, allocations: 10.03 MB / 0.6824 GB, free: 135.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/5.052, allocations: 336.5 kB / 0.6827 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001854/5.054, allocations: 9.531 kB / 0.6827 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005846/5.06, allocations: 59.81 kB / 0.6828 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001288/5.061, allocations: 109.5 kB / 0.6829 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008001/5.062, allocations: 66.39 kB / 0.6829 GB, free: 135 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008212/5.07, allocations: 1.738 MB / 0.6846 GB, free: 134.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01448/5.085, allocations: 0.8989 MB / 0.6855 GB, free: 134.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 184 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00143/5.086, allocations: 153.3 kB / 0.6857 GB, free: 134.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03101/5.117, allocations: 6.068 MB / 0.6916 GB, free: 132.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/5.118, allocations: 10.67 kB / 0.6916 GB, free: 132.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.014/5.132, allocations: 2.447 MB / 0.694 GB, free: 130.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005061/5.137, allocations: 266 kB / 0.6942 GB, free: 130.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04919/5.186, allocations: 9.029 MB / 0.7031 GB, free: 122.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01875/5.205, allocations: 3.912 MB / 0.7069 GB, free: 119.2 MB / 474.7 MB Notification: Performance of SimCode: time 2.745e-06/5.205, allocations: 4 kB / 0.7069 GB, free: 119.2 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat