Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_UniversalSpherical",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.72/2.72, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2062/2.926, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/3.238, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5001/3.738, allocations: 114.4 MB / 468.5 MB, free: 30.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/3.739, allocations: 82.73 kB / 468.5 MB, free: 30.23 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: 4698 * Number of variables: 4698 Notification: Performance of Generate backend data structure: time 1.576/5.315, allocations: 235.2 MB / 0.6873 GB, free: 47.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.853e-05/5.315, allocations: 9.531 kB / 0.6873 GB, free: 47.91 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08875/5.404, allocations: 10.09 MB / 0.6971 GB, free: 47.01 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06191/5.466, allocations: 14.04 MB / 0.7108 GB, free: 45.59 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009958/5.467, allocations: 474.7 kB / 0.7113 GB, free: 45.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008238/5.475, allocations: 0.8469 MB / 0.7121 GB, free: 45.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07477/5.55, allocations: 19.88 MB / 0.7315 GB, free: 39.46 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1031/5.653, allocations: 28.37 MB / 0.7592 GB, free: 12.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001139/5.654, allocations: 149.1 kB / 0.7594 GB, free: 12.64 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008189/5.662, allocations: 64 kB / 0.7594 GB, free: 12.58 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006155/5.669, allocations: 2.687 MB / 0.762 GB, free: 10.34 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7649/6.434, allocations: 128.3 MB / 0.8873 GB, free: 54.68 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02021/6.454, allocations: 8.459 MB / 0.8955 GB, free: 54.03 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02127/6.475, allocations: 7.169 MB / 0.9025 GB, free: 53.98 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09794/6.573, allocations: 32.09 MB / 0.9339 GB, free: 52.92 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/6.573, allocations: 85.56 kB / 0.934 GB, free: 52.85 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=424): time 1.018e-05/6.573, allocations: 0 / 0.934 GB, free: 52.85 MB / 0.5262 GB Notification: Performance of matching and sorting (n=554): time 0.6314/7.205, allocations: 89.74 MB / 1.022 GB, free: 8.078 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002523/7.205, allocations: 338.4 kB / 1.022 GB, free: 7.68 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0297/7.235, allocations: 7.506 MB / 1.029 GB, free: 1.188 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002538/7.237, allocations: 28.38 kB / 1.029 GB, free: 1.156 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.2488/7.486, allocations: 8.36 MB / 1.037 GB, free: 134.8 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.005818/7.492, allocations: 2.081 MB / 1.039 GB, free: 133.5 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004249/7.497, allocations: 3.25 kB / 1.039 GB, free: 133.5 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.002865/7.499, allocations: 1 MB / 1.04 GB, free: 133.2 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03029/7.53, allocations: 9.216 MB / 1.049 GB, free: 133.2 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03386/7.564, allocations: 18.65 MB / 1.068 GB, free: 120.9 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03716/7.601, allocations: 12.89 MB / 1.08 GB, free: 120.8 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0008535/7.602, allocations: 94.66 kB / 1.08 GB, free: 120.8 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2136) (initialization): time 0.1618/7.764, allocations: 33.02 MB / 1.113 GB, free: 116.1 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/7.764, allocations: 4.531 kB / 1.113 GB, free: 116.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.124/7.888, allocations: 21.59 MB / 1.134 GB, free: 109.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08018/7.968, allocations: 8.854 MB / 1.142 GB, free: 107.7 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.032/8, allocations: 3.853 MB / 1.146 GB, free: 107.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1382/8.138, allocations: 42.03 MB / 1.187 GB, free: 77.01 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03745/8.176, allocations: 0.999 MB / 1.188 GB, free: 76.3 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005641/8.182, allocations: 1.004 MB / 1.189 GB, free: 75.36 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1530 * Number of states: 0 () * Number of discrete variables: 69 (init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (2001): * Single equations (assignments): 1974 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 5 {1,1,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008196/8.19, allocations: 0.9245 MB / 1.19 GB, free: 74.43 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003306/8.193, allocations: 0.8214 MB / 1.191 GB, free: 73.59 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1531/8.346, allocations: 26.17 MB / 1.216 GB, free: 54 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4088/8.755, allocations: 24.89 MB / 1.241 GB, free: 117.7 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001612/8.755, allocations: 19.59 kB / 1.241 GB, free: 117.7 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002343/8.756, allocations: 29.78 kB / 1.241 GB, free: 117.7 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3282/9.084, allocations: 54.78 MB / 1.294 GB, free: 112.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001117/9.084, allocations: 0 / 1.294 GB, free: 112.1 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01768/9.102, allocations: 0.942 MB / 1.295 GB, free: 112.1 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1586/9.26, allocations: 12.85 MB / 1.308 GB, free: 109.9 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003052/9.263, allocations: 98.84 kB / 1.308 GB, free: 109.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.198/9.462, allocations: 53.29 MB / 1.36 GB, free: 84.85 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.06249/9.524, allocations: 20.07 MB / 1.379 GB, free: 73.61 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.4604/9.985, allocations: 38.31 MB / 1.417 GB, free: 111 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2758/10.26, allocations: 73.74 MB / 1.489 GB, free: 101.1 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01157/10.27, allocations: 2.409 MB / 1.491 GB, free: 100.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005113/10.28, allocations: 43.41 kB / 1.491 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01882/10.3, allocations: 490.1 kB / 1.492 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003024/10.3, allocations: 297 kB / 1.492 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002352/10.3, allocations: 170.5 kB / 1.492 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.01604/10.32, allocations: 5.013 MB / 1.497 GB, free: 98.48 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0327/10.35, allocations: 4.062 MB / 1.501 GB, free: 98.47 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (435): * Single equations (assignments): 420 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003243/10.35, allocations: 193.8 kB / 1.501 GB, free: 98.38 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.08536/10.44, allocations: 23.02 MB / 1.524 GB, free: 89.88 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/10.44, allocations: 0 / 1.524 GB, free: 89.88 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0398/10.48, allocations: 10.62 MB / 1.534 GB, free: 85.19 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01369/10.49, allocations: 1.033 MB / 1.535 GB, free: 84.82 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1489/10.64, allocations: 31.41 MB / 1.566 GB, free: 61.72 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04212/10.68, allocations: 10.36 MB / 1.576 GB, free: 54.1 MB / 0.5262 GB Notification: Performance of SimCode: time 2.304e-06/10.68, allocations: 0 / 1.576 GB, free: 54.1 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat