Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) [: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(Modelica): time 1.779/1.779, allocations: 171.2 MB / 178.1 MB, free: 8.301 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.235/2.014, allocations: 41.11 MB / 219.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/2.103, allocations: 38.76 MB / 258 MB, free: 4.367 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/2.421, allocations: 90.58 MB / 348.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/2.421, allocations: 83.52 kB / 348.7 MB, free: 13.75 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.8862/3.307, allocations: 138 MB / 486.7 MB, free: 62.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/3.307, allocations: 15.94 kB / 486.7 MB, free: 62.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08099/3.388, allocations: 6.99 MB / 493.7 MB, free: 55.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05446/3.443, allocations: 9.735 MB / 0.4916 GB, free: 45.85 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006827/3.444, allocations: 208 kB / 0.4918 GB, free: 45.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005389/3.449, allocations: 403.7 kB / 0.4922 GB, free: 45.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03896/3.488, allocations: 10.07 MB / 0.502 GB, free: 35.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04446/3.533, allocations: 14.6 MB / 0.5163 GB, free: 19.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005143/3.533, allocations: 99.12 kB / 0.5164 GB, free: 19.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003424/3.537, allocations: 40 kB / 0.5164 GB, free: 19.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00389/3.541, allocations: 1.704 MB / 0.5181 GB, free: 17.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.322/3.863, allocations: 75.89 MB / 0.5922 GB, free: 43.37 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01169/3.874, allocations: 5.339 MB / 0.5974 GB, free: 42.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01141/3.886, allocations: 4.341 MB / 0.6017 GB, free: 42.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04265/3.929, allocations: 14.34 MB / 0.6157 GB, free: 34.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.75e-05/3.929, allocations: 69.81 kB / 0.6157 GB, free: 34.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=286): time 6.923e-06/3.929, allocations: 0 / 0.6157 GB, free: 34.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=367): time 0.243/4.172, allocations: 41.21 MB / 0.656 GB, free: 14.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.502e-05/4.172, allocations: 265.8 kB / 0.6562 GB, free: 14.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01474/4.187, allocations: 4.727 MB / 0.6608 GB, free: 10.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001295/4.188, allocations: 36.17 kB / 0.6609 GB, free: 10.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004055/4.192, allocations: 4.315 MB / 0.6651 GB, free: 6.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002366/4.194, allocations: 1.305 MB / 0.6664 GB, free: 5.305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/4.196, allocations: 0 / 0.6664 GB, free: 5.305 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0006077/4.196, allocations: 0.704 MB / 0.667 GB, free: 4.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01395/4.21, allocations: 3.705 MB / 0.6707 GB, free: 1.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2031/4.413, allocations: 9.82 MB / 0.6803 GB, free: 80.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/4.431, allocations: 6.047 MB / 0.6862 GB, free: 80.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003196/4.432, allocations: 56.16 kB / 0.6862 GB, free: 80.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.09704/4.529, allocations: 15.71 MB / 0.7016 GB, free: 80.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/4.529, allocations: 10.88 kB / 0.7016 GB, free: 80.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004334/4.529, allocations: 185.4 kB / 0.7017 GB, free: 80.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02819/4.558, allocations: 3.863 MB / 0.7055 GB, free: 80.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01635/4.574, allocations: 2.075 MB / 0.7075 GB, free: 80.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06945/4.643, allocations: 20.74 MB / 0.7278 GB, free: 74.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01389/4.657, allocations: 336.5 kB / 0.7281 GB, free: 74.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003244/4.661, allocations: 0.5598 MB / 0.7287 GB, free: 74.4 MB / 346.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 (1116): * Single equations (assignments): 1111 * 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.005446/4.666, allocations: 0.5824 MB / 0.7292 GB, free: 74.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00319/4.67, allocations: 0.5411 MB / 0.7298 GB, free: 74.04 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0685/4.738, allocations: 9.75 MB / 0.7393 GB, free: 71.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001974/4.738, allocations: 32.94 kB / 0.7393 GB, free: 71.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.805e-05/4.738, allocations: 17.91 kB / 0.7393 GB, free: 71.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001197/4.739, allocations: 21.67 kB / 0.7394 GB, free: 71.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1168/4.855, allocations: 18.18 MB / 0.7571 GB, free: 58.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.823e-05/4.856, allocations: 0 / 0.7571 GB, free: 58.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005555/4.861, allocations: 481.6 kB / 0.7576 GB, free: 58.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02931/4.891, allocations: 3.413 MB / 0.7609 GB, free: 56.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001069/4.892, allocations: 21.39 kB / 0.7609 GB, free: 56.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05862/4.95, allocations: 18.38 MB / 0.7789 GB, free: 40.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/4.95, allocations: 3.562 kB / 0.7789 GB, free: 40.38 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2469/5.197, allocations: 14.47 MB / 0.793 GB, free: 75.78 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06515/5.262, allocations: 19.28 MB / 0.8118 GB, free: 74.74 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007902/5.27, allocations: 1.083 MB / 0.8129 GB, free: 74.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003939/5.274, allocations: 3.828 kB / 0.8129 GB, free: 74.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009868/5.284, allocations: 123.3 kB / 0.813 GB, free: 74.65 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001584/5.286, allocations: 172 kB / 0.8132 GB, free: 74.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009423/5.287, allocations: 99.34 kB / 0.8133 GB, free: 74.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.009434/5.297, allocations: 3.204 MB / 0.8164 GB, free: 74.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01493/5.312, allocations: 1.578 MB / 0.8179 GB, free: 74.46 MB / 346.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 (266): * Single equations (assignments): 261 * 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.00165/5.313, allocations: 187.5 kB / 0.8181 GB, free: 74.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.03403/5.347, allocations: 9.237 MB / 0.8271 GB, free: 72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/5.347, allocations: 0 / 0.8271 GB, free: 72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01013/5.358, allocations: 3.598 MB / 0.8307 GB, free: 70.58 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009057/5.367, allocations: 0.5694 MB / 0.8312 GB, free: 70.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06584/5.433, allocations: 13.39 MB / 0.8443 GB, free: 65.94 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01767/5.45, allocations: 5.386 MB / 0.8495 GB, free: 64.36 MB / 346.7 MB Notification: Performance of SimCode: time 2.545e-06/5.45, allocations: 1.656 kB / 0.8495 GB, free: 64.36 MB / 346.7 MB