Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.707/2.707, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1753/2.882, allocations: 57.2 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/3.192, allocations: 54.84 MB / 354.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/3.644, allocations: 104.9 MB / 459 MB, free: 35.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/3.644, allocations: 78.55 kB / 459.1 MB, free: 35.14 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.7997/4.444, allocations: 138.1 MB / 0.5832 GB, free: 1.652 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/4.444, allocations: 8 kB / 0.5832 GB, free: 1.645 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0631/4.507, allocations: 6.99 MB / 0.59 GB, free: 10.63 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04685/4.554, allocations: 9.845 MB / 0.5997 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005545/4.555, allocations: 208 kB / 0.5999 GB, free: 0.4961 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004022/4.559, allocations: 395.7 kB / 0.6002 GB, free: 112 kB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03419/4.593, allocations: 10.05 MB / 0.61 GB, free: 6.055 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3297/4.923, allocations: 14.58 MB / 0.6243 GB, free: 113.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005645/4.923, allocations: 101.6 kB / 0.6244 GB, free: 113.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003413/4.927, allocations: 42.84 kB / 0.6244 GB, free: 113.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004481/4.931, allocations: 1.699 MB / 0.6261 GB, free: 113.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1452/5.076, allocations: 75.83 MB / 0.7001 GB, free: 70.35 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/5.089, allocations: 5.318 MB / 0.7053 GB, free: 69.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01056/5.1, allocations: 4.269 MB / 0.7095 GB, free: 68.32 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04424/5.144, allocations: 14.29 MB / 0.7234 GB, free: 60.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.787e-05/5.144, allocations: 69.16 kB / 0.7235 GB, free: 60.31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 8.025e-06/5.144, allocations: 0 / 0.7235 GB, free: 60.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=360): time 0.2283/5.373, allocations: 39.2 MB / 0.7618 GB, free: 47.34 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/5.373, allocations: 274.5 kB / 0.762 GB, free: 47.04 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01782/5.391, allocations: 4.731 MB / 0.7667 GB, free: 45.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001188/5.392, allocations: 26.58 kB / 0.7667 GB, free: 45.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004462/5.397, allocations: 4.313 MB / 0.7709 GB, free: 42.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002747/5.399, allocations: 1.284 MB / 0.7722 GB, free: 41.16 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001824/5.401, allocations: 0 / 0.7722 GB, free: 41.16 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001159/5.402, allocations: 0.7069 MB / 0.7728 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01371/5.416, allocations: 3.68 MB / 0.7764 GB, free: 38.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01544/5.432, allocations: 8.994 MB / 0.7852 GB, free: 27.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01854/5.45, allocations: 6.016 MB / 0.7911 GB, free: 22.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001915/5.451, allocations: 56 kB / 0.7912 GB, free: 22.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=1228) (initialization): time 0.07317/5.524, allocations: 15.68 MB / 0.8065 GB, free: 9.879 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/5.524, allocations: 4 kB / 0.8065 GB, free: 9.875 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003449/5.524, allocations: 188 kB / 0.8066 GB, free: 9.691 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03264/5.557, allocations: 3.912 MB / 0.8105 GB, free: 6.883 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01779/5.575, allocations: 2.057 MB / 0.8125 GB, free: 5.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3368/5.912, allocations: 21.08 MB / 0.8331 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01536/5.927, allocations: 338.1 kB / 0.8334 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002948/5.93, allocations: 0.5508 MB / 0.8339 GB, free: 105.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[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],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1109): * Single equations (assignments): 1104 * 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 {(2,100.0%) 43,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005746/5.936, allocations: 0.5813 MB / 0.8345 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002647/5.939, allocations: 0.5421 MB / 0.835 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05469/5.993, allocations: 9.728 MB / 0.8445 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001502/5.993, allocations: 31.69 kB / 0.8445 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-05/5.994, allocations: 22.59 kB / 0.8446 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.742e-05/5.994, allocations: 17.02 kB / 0.8446 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08777/6.081, allocations: 18.08 MB / 0.8622 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.127e-05/6.082, allocations: 0 / 0.8622 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007135/6.089, allocations: 470.6 kB / 0.8627 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04528/6.134, allocations: 3.468 MB / 0.8661 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001469/6.136, allocations: 20.78 kB / 0.8661 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0989/6.235, allocations: 18.41 MB / 0.8841 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.477e-06/6.235, allocations: 3.031 kB / 0.8841 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0972/6.332, allocations: 14.41 MB / 0.8982 GB, free: 95.91 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1102/6.442, allocations: 19.14 MB / 0.9168 GB, free: 88.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007568/6.45, allocations: 1.074 MB / 0.9179 GB, free: 88.27 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003834/6.454, allocations: 2.469 kB / 0.9179 GB, free: 88.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01162/6.465, allocations: 135.4 kB / 0.918 GB, free: 88.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001982/6.467, allocations: 169 kB / 0.9182 GB, free: 88.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001253/6.469, allocations: 101.9 kB / 0.9183 GB, free: 88.22 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01615/6.485, allocations: 3.197 MB / 0.9214 GB, free: 87.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0256/6.51, allocations: 1.579 MB / 0.9229 GB, free: 87.08 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 (259): * Single equations (assignments): 254 * 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%) 39,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002254/6.513, allocations: 182.7 kB / 0.9231 GB, free: 86.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0379/6.551, allocations: 9.167 MB / 0.9321 GB, free: 79.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/6.551, allocations: 0 / 0.9321 GB, free: 79.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01645/6.567, allocations: 3.554 MB / 0.9355 GB, free: 75.88 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0108/6.578, allocations: 0.5704 MB / 0.9361 GB, free: 75.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07681/6.655, allocations: 13.32 MB / 0.9491 GB, free: 63.69 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02563/6.681, allocations: 5.38 MB / 0.9544 GB, free: 59.67 MB / 474.7 MB Notification: Performance of SimCode: time 2.865e-06/6.681, allocations: 0 / 0.9544 GB, free: 59.67 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat