Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotion2",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.505/2.505, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1502/2.656, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/2.933, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/3.366, allocations: 102.1 MB / 456.2 MB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/3.367, allocations: 75.97 kB / 456.2 MB, free: 34.58 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.661/4.028, allocations: 120.5 MB / 0.5632 GB, free: 6.121 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.128e-05/4.028, allocations: 12 kB / 0.5632 GB, free: 6.109 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07723/4.105, allocations: 6.633 MB / 0.5697 GB, free: 15.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04845/4.154, allocations: 7.869 MB / 0.5773 GB, free: 7.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008198/4.154, allocations: 188 kB / 0.5775 GB, free: 7.316 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003617/4.158, allocations: 351.7 kB / 0.5779 GB, free: 6.973 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03722/4.195, allocations: 8.465 MB / 0.5861 GB, free: 14.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05173/4.247, allocations: 12.66 MB / 0.5985 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005774/4.248, allocations: 79.3 kB / 0.5986 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002999/4.251, allocations: 36 kB / 0.5986 GB, free: 0.5508 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003885/4.255, allocations: 1.407 MB / 0.6 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3409/4.596, allocations: 60.67 MB / 0.6592 GB, free: 91.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01133/4.607, allocations: 5.065 MB / 0.6642 GB, free: 90.85 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007874/4.615, allocations: 3.535 MB / 0.6676 GB, free: 90.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02757/4.643, allocations: 9.794 MB / 0.6772 GB, free: 88.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/4.643, allocations: 56.5 kB / 0.6772 GB, free: 88.67 MB / 474.7 MB Notification: Performance of pre-optimization done (n=248): time 7.845e-06/4.643, allocations: 3.938 kB / 0.6772 GB, free: 88.67 MB / 474.7 MB Notification: Performance of matching and sorting (n=316): time 0.1332/4.776, allocations: 28.69 MB / 0.7052 GB, free: 82.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/4.776, allocations: 266.3 kB / 0.7055 GB, free: 81.92 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01569/4.792, allocations: 3.985 MB / 0.7094 GB, free: 80.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001088/4.793, allocations: 25.7 kB / 0.7094 GB, free: 80.47 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004534/4.798, allocations: 3.706 MB / 0.713 GB, free: 77.96 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002987/4.801, allocations: 1.14 MB / 0.7142 GB, free: 77.11 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001736/4.802, allocations: 0 / 0.7142 GB, free: 77.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001101/4.804, allocations: 0.6419 MB / 0.7148 GB, free: 76.66 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0138/4.817, allocations: 3.227 MB / 0.7179 GB, free: 75.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01715/4.835, allocations: 7.583 MB / 0.7253 GB, free: 68.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01789/4.853, allocations: 4.946 MB / 0.7302 GB, free: 66.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001849/4.853, allocations: 43.69 kB / 0.7302 GB, free: 66.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.05741/4.91, allocations: 11.6 MB / 0.7415 GB, free: 63.35 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/4.91, allocations: 9.375 kB / 0.7415 GB, free: 63.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004348/4.911, allocations: 153.2 kB / 0.7417 GB, free: 63.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01257/4.923, allocations: 2.079 MB / 0.7437 GB, free: 62.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.015/4.938, allocations: 1.774 MB / 0.7455 GB, free: 62.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03998/4.979, allocations: 13.21 MB / 0.7584 GB, free: 52.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/4.99, allocations: 249.7 kB / 0.7586 GB, free: 52.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002347/4.993, allocations: 473 kB / 0.759 GB, free: 51.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (951): * Single equations (assignments): 946 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003233/4.996, allocations: 0.4908 MB / 0.7595 GB, free: 51.29 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/4.998, allocations: 458.1 kB / 0.76 GB, free: 50.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0283/5.026, allocations: 6.809 MB / 0.7666 GB, free: 45.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002142/5.026, allocations: 28 kB / 0.7666 GB, free: 45.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.269e-05/5.026, allocations: 12 kB / 0.7666 GB, free: 45.19 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001159/5.026, allocations: 13.88 kB / 0.7667 GB, free: 45.19 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05856/5.085, allocations: 14.39 MB / 0.7807 GB, free: 33.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.346e-05/5.085, allocations: 8 kB / 0.7807 GB, free: 33.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007946/5.093, allocations: 481.1 kB / 0.7812 GB, free: 32.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01466/5.108, allocations: 1.78 MB / 0.7829 GB, free: 31.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001208/5.109, allocations: 19.52 kB / 0.7829 GB, free: 31.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04787/5.157, allocations: 11.44 MB / 0.7941 GB, free: 21.31 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.348e-05/5.157, allocations: 4 kB / 0.7941 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04003/5.197, allocations: 11.84 MB / 0.8057 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2706/5.468, allocations: 16.31 MB / 0.8216 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006001/5.474, allocations: 0.9853 MB / 0.8226 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002565/5.477, allocations: 17.73 kB / 0.8226 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00897/5.486, allocations: 115.1 kB / 0.8227 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001698/5.487, allocations: 163.1 kB / 0.8228 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009276/5.488, allocations: 95.5 kB / 0.8229 GB, free: 115.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01275/5.501, allocations: 2.71 MB / 0.8256 GB, free: 115.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01986/5.521, allocations: 1.268 MB / 0.8268 GB, free: 115.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 250 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 18,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001967/5.523, allocations: 160.3 kB / 0.827 GB, free: 115.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0442/5.567, allocations: 8.403 MB / 0.8352 GB, free: 115.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.691e-05/5.567, allocations: 2.969 kB / 0.8352 GB, free: 115.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01496/5.582, allocations: 3.487 MB / 0.8386 GB, free: 115.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006273/5.589, allocations: 492.4 kB / 0.8391 GB, free: 115 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04824/5.637, allocations: 12.22 MB / 0.851 GB, free: 112.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01609/5.653, allocations: 4.896 MB / 0.8558 GB, free: 112 MB / 474.7 MB Notification: Performance of SimCode: time 2.154e-06/5.653, allocations: 0 / 0.8558 GB, free: 112 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat