Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_FrameTorques",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(ModelicaTest): time 2.274/2.274, allocations: 234.9 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2036/2.478, allocations: 57.21 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/2.752, allocations: 54.85 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/3.159, allocations: 100 MB / 454 MB, free: 33.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/3.16, allocations: 76.88 kB / 454.1 MB, free: 33.71 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: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.5275/3.687, allocations: 116.3 MB / 0.557 GB, free: 12.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.731e-05/3.687, allocations: 12 kB / 0.557 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05213/3.74, allocations: 6.578 MB / 0.5634 GB, free: 5.762 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02862/3.768, allocations: 6.934 MB / 0.5702 GB, free: 14.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004874/3.769, allocations: 180 kB / 0.5703 GB, free: 14.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003282/3.772, allocations: 331.8 kB / 0.5707 GB, free: 14.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0247/3.797, allocations: 7.699 MB / 0.5782 GB, free: 6.562 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04225/3.839, allocations: 11.97 MB / 0.5899 GB, free: 9.332 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004341/3.84, allocations: 71.34 kB / 0.5899 GB, free: 9.262 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002917/3.843, allocations: 36 kB / 0.59 GB, free: 9.227 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003217/3.846, allocations: 1.344 MB / 0.5913 GB, free: 7.879 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3125/4.158, allocations: 58.67 MB / 0.6486 GB, free: 95.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/4.171, allocations: 3.737 MB / 0.6522 GB, free: 94.98 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005374/4.176, allocations: 2.386 MB / 0.6545 GB, free: 94.94 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01915/4.195, allocations: 6.968 MB / 0.6614 GB, free: 93.39 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.268e-05/4.196, allocations: 55.91 kB / 0.6614 GB, free: 93.35 MB / 474.7 MB Notification: Performance of pre-optimization done (n=174): time 6.553e-06/4.196, allocations: 0 / 0.6614 GB, free: 93.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.0601/4.256, allocations: 16.91 MB / 0.6779 GB, free: 88.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/4.256, allocations: 224.5 kB / 0.6781 GB, free: 88.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01246/4.268, allocations: 4.219 MB / 0.6823 GB, free: 88.29 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000522/4.269, allocations: 25.7 kB / 0.6823 GB, free: 88.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003829/4.273, allocations: 3.841 MB / 0.686 GB, free: 86.14 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001405/4.274, allocations: 0.7361 MB / 0.6867 GB, free: 85.74 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009948/4.275, allocations: 0 / 0.6867 GB, free: 85.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006385/4.276, allocations: 0.6175 MB / 0.6873 GB, free: 85.42 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006224/4.282, allocations: 2.251 MB / 0.6895 GB, free: 85.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0099/4.292, allocations: 6.904 MB / 0.6963 GB, free: 79.33 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009857/4.302, allocations: 3.948 MB / 0.7001 GB, free: 79.13 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002123/4.302, allocations: 46.53 kB / 0.7002 GB, free: 79.13 MB / 474.7 MB Notification: Performance of matching and sorting (n=972) (initialization): time 0.02582/4.328, allocations: 8.432 MB / 0.7084 GB, free: 76.85 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/4.328, allocations: 3.969 kB / 0.7084 GB, free: 76.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003485/4.329, allocations: 172.6 kB / 0.7086 GB, free: 76.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/4.331, allocations: 0.6196 MB / 0.7092 GB, free: 76.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/4.342, allocations: 1.688 MB / 0.7108 GB, free: 76.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009708/4.352, allocations: 5.448 MB / 0.7162 GB, free: 72.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009329/4.362, allocations: 235.9 kB / 0.7164 GB, free: 72.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00213/4.364, allocations: 465.6 kB / 0.7168 GB, free: 72.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (920): * Single equations (assignments): 915 * 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%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003265/4.367, allocations: 0.5092 MB / 0.7173 GB, free: 72.36 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/4.368, allocations: 432.3 kB / 0.7177 GB, free: 72.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009808/4.378, allocations: 2.879 MB / 0.7206 GB, free: 71.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/4.378, allocations: 19 kB / 0.7206 GB, free: 71.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-05/4.378, allocations: 11.56 kB / 0.7206 GB, free: 71.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.475e-05/4.379, allocations: 10.42 kB / 0.7206 GB, free: 71.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02307/4.402, allocations: 7.217 MB / 0.7276 GB, free: 68.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.621e-05/4.402, allocations: 3.656 kB / 0.7276 GB, free: 68.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003018/4.405, allocations: 257.4 kB / 0.7279 GB, free: 68.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/4.407, allocations: 357.9 kB / 0.7282 GB, free: 68.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004224/4.407, allocations: 10.58 kB / 0.7282 GB, free: 68.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008533/4.416, allocations: 4.757 MB / 0.7329 GB, free: 64.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/4.416, allocations: 1.25 kB / 0.7329 GB, free: 64.97 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01563/4.431, allocations: 5.604 MB / 0.7384 GB, free: 62.55 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02264/4.454, allocations: 7.936 MB / 0.7461 GB, free: 58.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002823/4.457, allocations: 0.6938 MB / 0.7468 GB, free: 57.64 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001436/4.458, allocations: 7.656 kB / 0.7468 GB, free: 57.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003578/4.462, allocations: 45.59 kB / 0.7468 GB, free: 57.61 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005346/4.463, allocations: 84.12 kB / 0.7469 GB, free: 57.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002361/4.463, allocations: 51.19 kB / 0.747 GB, free: 57.51 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008963/4.472, allocations: 2.859 MB / 0.7498 GB, free: 55.02 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01101/4.483, allocations: 1.052 MB / 0.7508 GB, free: 53.98 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * 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%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008314/4.484, allocations: 142.9 kB / 0.7509 GB, free: 53.84 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01361/4.497, allocations: 5.479 MB / 0.7563 GB, free: 48.89 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/4.498, allocations: 0 / 0.7563 GB, free: 48.89 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003785/4.501, allocations: 1.626 MB / 0.7579 GB, free: 47.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004808/4.506, allocations: 473.2 kB / 0.7583 GB, free: 47 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03115/4.537, allocations: 9.563 MB / 0.7677 GB, free: 38.45 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01406/4.552, allocations: 4.572 MB / 0.7721 GB, free: 34.99 MB / 474.7 MB Notification: Performance of SimCode: time 1.343e-06/4.552, allocations: 0 / 0.7721 GB, free: 34.99 MB / 474.7 MB