Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_JointUSP2",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.548/2.548, allocations: 235 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1831/2.731, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/3.025, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5009/3.526, allocations: 107.6 MB / 461.7 MB, free: 30.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/3.526, allocations: 74.38 kB / 461.8 MB, free: 30.28 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: 1929 * Number of variables: 1929 Notification: Performance of Generate backend data structure: time 0.7103/4.236, allocations: 124.7 MB / 0.5727 GB, free: 10.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/4.236, allocations: 12 kB / 0.5727 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03968/4.276, allocations: 4.302 MB / 0.5769 GB, free: 5.898 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03192/4.308, allocations: 6.69 MB / 0.5834 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000653/4.309, allocations: 260.8 kB / 0.5837 GB, free: 14.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003572/4.312, allocations: 331.8 kB / 0.584 GB, free: 14.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02938/4.342, allocations: 8.713 MB / 0.5925 GB, free: 5.906 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04076/4.383, allocations: 12.3 MB / 0.6045 GB, free: 8.496 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003168/4.383, allocations: 63.41 kB / 0.6045 GB, free: 8.434 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001757/4.385, allocations: 39.98 kB / 0.6046 GB, free: 8.395 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003507/4.388, allocations: 1.371 MB / 0.6059 GB, free: 7.023 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3436/4.732, allocations: 58.72 MB / 0.6633 GB, free: 99.37 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/4.743, allocations: 3.879 MB / 0.6671 GB, free: 98.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008661/4.751, allocations: 2.927 MB / 0.6699 GB, free: 98.66 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04044/4.792, allocations: 12.6 MB / 0.6822 GB, free: 94.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/4.792, allocations: 63.69 kB / 0.6823 GB, free: 94.37 MB / 474.7 MB Notification: Performance of pre-optimization done (n=191): time 6.933e-06/4.792, allocations: 0 / 0.6823 GB, free: 94.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=242): time 0.1827/4.975, allocations: 30.67 MB / 0.7122 GB, free: 85.14 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/4.975, allocations: 228.2 kB / 0.7125 GB, free: 84.88 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01018/4.985, allocations: 3.708 MB / 0.7161 GB, free: 83.54 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000776/4.986, allocations: 25.7 kB / 0.7161 GB, free: 83.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003372/4.989, allocations: 3.66 MB / 0.7197 GB, free: 81 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001763/4.991, allocations: 0.8818 MB / 0.7205 GB, free: 80.35 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/4.992, allocations: 0 / 0.7205 GB, free: 80.35 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007272/4.993, allocations: 0.6182 MB / 0.7211 GB, free: 79.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009726/5.003, allocations: 3.158 MB / 0.7242 GB, free: 78.74 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01364/5.017, allocations: 7.526 MB / 0.7316 GB, free: 71.66 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01456/5.031, allocations: 4.808 MB / 0.7363 GB, free: 70.12 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003103/5.032, allocations: 48.84 kB / 0.7363 GB, free: 70.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=965) (initialization): time 0.05897/5.09, allocations: 12.71 MB / 0.7487 GB, free: 62.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/5.091, allocations: 8 kB / 0.7487 GB, free: 62.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003279/5.091, allocations: 156 kB / 0.7489 GB, free: 62.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02711/5.118, allocations: 3.588 MB / 0.7524 GB, free: 60.01 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01283/5.131, allocations: 1.635 MB / 0.754 GB, free: 58.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05349/5.184, allocations: 16.06 MB / 0.7697 GB, free: 44.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01255/5.197, allocations: 299.2 kB / 0.77 GB, free: 44.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/5.199, allocations: 446.9 kB / 0.7704 GB, free: 44.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (882): * Single equations (assignments): 878 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003698/5.203, allocations: 484.7 kB / 0.7708 GB, free: 43.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001617/5.205, allocations: 398.8 kB / 0.7712 GB, free: 43.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04305/5.248, allocations: 7.761 MB / 0.7788 GB, free: 37.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001267/5.248, allocations: 20 kB / 0.7788 GB, free: 37.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.659e-05/5.248, allocations: 19.77 kB / 0.7788 GB, free: 37.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.214e-05/5.248, allocations: 17.55 kB / 0.7789 GB, free: 37.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06937/5.318, allocations: 15.95 MB / 0.7944 GB, free: 24.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.946e-05/5.318, allocations: 2.188 kB / 0.7944 GB, free: 24.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004787/5.322, allocations: 349.1 kB / 0.7948 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02747/5.35, allocations: 3.505 MB / 0.7982 GB, free: 21.68 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007733/5.351, allocations: 10.06 kB / 0.7982 GB, free: 21.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04724/5.398, allocations: 14.68 MB / 0.8125 GB, free: 8.676 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.667e-06/5.398, allocations: 0 / 0.8125 GB, free: 8.676 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2706/5.669, allocations: 12.24 MB / 0.8245 GB, free: 121.1 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06622/5.735, allocations: 16.33 MB / 0.8404 GB, free: 120.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004026/5.739, allocations: 0.8938 MB / 0.8413 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002082/5.741, allocations: 3.906 kB / 0.8413 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006293/5.748, allocations: 116 kB / 0.8414 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001163/5.749, allocations: 106.4 kB / 0.8415 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005555/5.749, allocations: 59.19 kB / 0.8416 GB, free: 120 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008015/5.757, allocations: 2.492 MB / 0.844 GB, free: 119.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01297/5.77, allocations: 1.253 MB / 0.8452 GB, free: 119.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001345/5.772, allocations: 181.6 kB / 0.8454 GB, free: 119.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02086/5.793, allocations: 7.499 MB / 0.8527 GB, free: 119.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/5.793, allocations: 6.938 kB / 0.8528 GB, free: 119.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01019/5.803, allocations: 2.798 MB / 0.8555 GB, free: 119.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02411/5.827, allocations: 400.7 kB / 0.8559 GB, free: 119.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09093/5.918, allocations: 10.75 MB / 0.8664 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02128/5.94, allocations: 4.505 MB / 0.8708 GB, free: 116.8 MB / 474.7 MB Notification: Performance of SimCode: time 2.244e-06/5.94, allocations: 0 / 0.8708 GB, free: 116.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat