Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_LineForceWithMass",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.401/2.401, allocations: 235 MB / 242 MB, free: 9.766 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1596/2.561, allocations: 57.2 MB / 299.2 MB, free: 456 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/2.828, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4154/3.243, allocations: 104.1 MB / 458.2 MB, free: 34.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/3.244, allocations: 76.38 kB / 458.2 MB, free: 34.84 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: 1937 * Number of variables: 1937 Notification: Performance of Generate backend data structure: time 0.5987/3.842, allocations: 112.7 MB / 0.5576 GB, free: 11.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/3.843, allocations: 8 kB / 0.5576 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08135/3.924, allocations: 6.528 MB / 0.564 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04322/3.967, allocations: 7.145 MB / 0.5709 GB, free: 14.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005331/3.968, allocations: 172 kB / 0.5711 GB, free: 13.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003943/3.972, allocations: 327.9 kB / 0.5714 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03085/4.003, allocations: 8.355 MB / 0.5796 GB, free: 5.297 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04422/4.047, allocations: 12.27 MB / 0.5916 GB, free: 7.887 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005546/4.048, allocations: 75.25 kB / 0.5916 GB, free: 7.812 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003256/4.051, allocations: 36 kB / 0.5917 GB, free: 7.777 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004415/4.055, allocations: 1.446 MB / 0.5931 GB, free: 6.328 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3368/4.392, allocations: 61.85 MB / 0.6535 GB, free: 96.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009657/4.402, allocations: 4.218 MB / 0.6576 GB, free: 95.64 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008508/4.411, allocations: 3.334 MB / 0.6609 GB, free: 95.61 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05223/4.463, allocations: 13.19 MB / 0.6737 GB, free: 92.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.544e-05/4.463, allocations: 66.78 kB / 0.6738 GB, free: 92.26 MB / 474.7 MB Notification: Performance of pre-optimization done (n=226): time 1.092e-05/4.463, allocations: 0 / 0.6738 GB, free: 92.26 MB / 474.7 MB Notification: Performance of matching and sorting (n=264): time 0.1704/4.633, allocations: 23.1 MB / 0.6964 GB, free: 87.92 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/4.634, allocations: 263 kB / 0.6966 GB, free: 87.63 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0164/4.65, allocations: 3.912 MB / 0.7004 GB, free: 86.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008787/4.651, allocations: 25.7 kB / 0.7005 GB, free: 86.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005064/4.656, allocations: 3.638 MB / 0.704 GB, free: 83.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002495/4.659, allocations: 0.9624 MB / 0.705 GB, free: 83.01 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001469/4.66, allocations: 0 / 0.705 GB, free: 83.01 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001109/4.661, allocations: 0.6262 MB / 0.7056 GB, free: 82.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/4.672, allocations: 2.513 MB / 0.708 GB, free: 81.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01561/4.688, allocations: 6.97 MB / 0.7148 GB, free: 74.83 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0164/4.705, allocations: 4.18 MB / 0.7189 GB, free: 73.62 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002506/4.705, allocations: 46.78 kB / 0.719 GB, free: 73.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=993) (initialization): time 0.04252/4.747, allocations: 8.905 MB / 0.7277 GB, free: 71.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/4.748, allocations: 3.844 kB / 0.7277 GB, free: 71.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004051/4.748, allocations: 158.3 kB / 0.7278 GB, free: 71.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004102/4.752, allocations: 0.5925 MB / 0.7284 GB, free: 70.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02124/4.773, allocations: 1.766 MB / 0.7301 GB, free: 70.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01602/4.79, allocations: 5.324 MB / 0.7353 GB, free: 67.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01616/4.806, allocations: 224 kB / 0.7355 GB, free: 67.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002358/4.808, allocations: 467.6 kB / 0.736 GB, free: 67.03 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * Number of states: 0 () * Number of discrete variables: 54 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.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 (943): * Single equations (assignments): 938 * 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 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003667/4.812, allocations: 0.5002 MB / 0.7365 GB, free: 66.61 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001521/4.813, allocations: 441 kB / 0.7369 GB, free: 66.38 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02145/4.835, allocations: 3.901 MB / 0.7407 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001831/4.835, allocations: 24.91 kB / 0.7407 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-05/4.835, allocations: 4.875 kB / 0.7407 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.918e-05/4.835, allocations: 12.73 kB / 0.7407 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03882/4.874, allocations: 9.153 MB / 0.7497 GB, free: 61.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.462e-05/4.874, allocations: 0 / 0.7497 GB, free: 61.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006039/4.88, allocations: 442.1 kB / 0.7501 GB, free: 60.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002235/4.883, allocations: 346.1 kB / 0.7504 GB, free: 60.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006742/4.883, allocations: 7.891 kB / 0.7504 GB, free: 60.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009499/4.893, allocations: 4.631 MB / 0.7549 GB, free: 56.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/4.893, allocations: 3.906 kB / 0.755 GB, free: 56.11 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0255/4.918, allocations: 7.163 MB / 0.7619 GB, free: 49.63 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02829/4.947, allocations: 10.21 MB / 0.7719 GB, free: 40.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003641/4.95, allocations: 0.7831 MB / 0.7727 GB, free: 39.63 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001752/4.952, allocations: 4 kB / 0.7727 GB, free: 39.63 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005621/4.958, allocations: 88.73 kB / 0.7728 GB, free: 39.57 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008946/4.959, allocations: 121.8 kB / 0.7729 GB, free: 39.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003594/4.959, allocations: 71.61 kB / 0.773 GB, free: 39.44 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00795/4.967, allocations: 2.637 MB / 0.7755 GB, free: 37.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01484/4.982, allocations: 1.106 MB / 0.7766 GB, free: 36.05 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * 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 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001569/4.984, allocations: 155.1 kB / 0.7768 GB, free: 35.89 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02506/5.009, allocations: 6.197 MB / 0.7828 GB, free: 30.24 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/5.009, allocations: 4 kB / 0.7828 GB, free: 30.24 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008497/5.017, allocations: 2.154 MB / 0.7849 GB, free: 28.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007594/5.025, allocations: 456.4 kB / 0.7853 GB, free: 27.86 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05172/5.077, allocations: 10.19 MB / 0.7953 GB, free: 18.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02199/5.099, allocations: 4.575 MB / 0.7998 GB, free: 15.27 MB / 474.7 MB Notification: Performance of SimCode: time 2.515e-06/5.099, allocations: 0 / 0.7998 GB, free: 15.27 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat