Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_JointUSR",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.689/2.689, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1858/2.875, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/3.151, allocations: 54.84 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/3.596, allocations: 100.1 MB / 454.2 MB, free: 33.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/3.596, allocations: 78.23 kB / 454.3 MB, free: 33.42 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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.3992/3.996, allocations: 76.81 MB / 0.5187 GB, free: 3.816 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/3.996, allocations: 8 kB / 0.5187 GB, free: 3.809 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00849/4.004, allocations: 0.6309 MB / 0.5193 GB, free: 3.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/4.015, allocations: 2.204 MB / 0.5214 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000338/4.015, allocations: 128 kB / 0.5216 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002379/4.018, allocations: 220 kB / 0.5218 GB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01974/4.037, allocations: 5.57 MB / 0.5272 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02925/4.067, allocations: 7.2 MB / 0.5342 GB, free: 3.418 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004151/4.067, allocations: 19.81 kB / 0.5343 GB, free: 3.398 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002964/4.07, allocations: 12 kB / 0.5343 GB, free: 3.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005452/4.076, allocations: 0.8544 MB / 0.5351 GB, free: 2.527 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09549/4.171, allocations: 27.74 MB / 0.5622 GB, free: 6.098 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004413/4.176, allocations: 1.372 MB / 0.5635 GB, free: 4.688 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003158/4.179, allocations: 1.025 MB / 0.5645 GB, free: 3.652 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02237/4.201, allocations: 7.388 MB / 0.5718 GB, free: 11.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.073e-05/4.202, allocations: 47.16 kB / 0.5718 GB, free: 11.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=74): time 5.009e-06/4.202, allocations: 0 / 0.5718 GB, free: 11.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=87): time 0.03176/4.233, allocations: 5.863 MB / 0.5775 GB, free: 5.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/4.234, allocations: 145 kB / 0.5777 GB, free: 5.578 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006661/4.24, allocations: 2 MB / 0.5796 GB, free: 3.551 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002622/4.241, allocations: 29.8 kB / 0.5796 GB, free: 3.516 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003033/4.244, allocations: 2.369 MB / 0.582 GB, free: 1.109 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007065/4.244, allocations: 355.6 kB / 0.5823 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00056/4.245, allocations: 0 / 0.5823 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005168/4.245, allocations: 470.6 kB / 0.5827 GB, free: 296 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004207/4.25, allocations: 1.004 MB / 0.5837 GB, free: 15.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006938/4.257, allocations: 3.478 MB / 0.5871 GB, free: 10.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006462/4.263, allocations: 1.877 MB / 0.589 GB, free: 8.652 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001305/4.263, allocations: 24 kB / 0.589 GB, free: 8.629 MB / 458.7 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.02067/4.284, allocations: 3.93 MB / 0.5928 GB, free: 4.695 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.025e-05/4.284, allocations: 7.984 kB / 0.5928 GB, free: 4.688 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002605/4.284, allocations: 88 kB / 0.5929 GB, free: 4.602 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003194/4.285, allocations: 132 kB / 0.593 GB, free: 4.473 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009249/4.294, allocations: 0.9552 MB / 0.594 GB, free: 3.516 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003393/4.294, allocations: 183.2 kB / 0.5941 GB, free: 3.336 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007424/4.302, allocations: 115.9 kB / 0.5943 GB, free: 3.223 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001428/4.303, allocations: 248 kB / 0.5945 GB, free: 2.98 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 406 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (513): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001737/4.305, allocations: 330.7 kB / 0.5948 GB, free: 2.648 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00098/4.306, allocations: 209.4 kB / 0.595 GB, free: 2.441 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005433/4.312, allocations: 1.134 MB / 0.5961 GB, free: 1.293 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.849e-05/4.312, allocations: 12 kB / 0.5961 GB, free: 1.281 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/4.312, allocations: 0 / 0.5961 GB, free: 1.281 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-05/4.312, allocations: 7.891 kB / 0.5961 GB, free: 1.273 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01867/4.331, allocations: 4.712 MB / 0.6007 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-05/4.331, allocations: 16 kB / 0.6007 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/4.333, allocations: 219.6 kB / 0.601 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-05/4.334, allocations: 24 kB / 0.601 GB, free: 11.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000262/4.334, allocations: 23.98 kB / 0.601 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-05/4.334, allocations: 27.94 kB / 0.601 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.291e-05/4.334, allocations: 27.86 kB / 0.6011 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007244/4.341, allocations: 2.965 MB / 0.604 GB, free: 8.156 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006825/4.348, allocations: 3.372 MB / 0.6072 GB, free: 3.992 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/4.349, allocations: 290.3 kB / 0.6075 GB, free: 3.688 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007893/4.35, allocations: 20 kB / 0.6075 GB, free: 3.668 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003275/4.353, allocations: 31.97 kB / 0.6076 GB, free: 3.637 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005633/4.354, allocations: 104 kB / 0.6077 GB, free: 3.535 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002676/4.354, allocations: 48 kB / 0.6077 GB, free: 3.488 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.006379/4.361, allocations: 1.32 MB / 0.609 GB, free: 2.152 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01068/4.372, allocations: 0.582 MB / 0.6096 GB, free: 1.57 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00106/4.373, allocations: 178.7 kB / 0.6097 GB, free: 1.387 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2268/4.6, allocations: 2.309 MB / 0.612 GB, free: 162.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-05/4.6, allocations: 3.906 kB / 0.612 GB, free: 162.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001378/4.601, allocations: 0.5178 MB / 0.6125 GB, free: 162.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002328/4.603, allocations: 210.5 kB / 0.6127 GB, free: 162.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02032/4.624, allocations: 5.434 MB / 0.618 GB, free: 161 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008679/4.633, allocations: 2.992 MB / 0.6209 GB, free: 160.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.483e-06/4.633, allocations: 2.625 kB / 0.6209 GB, free: 160.2 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat