Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_SphericalDoublePendulum",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.429/2.429, allocations: 235.1 MB / 242 MB, free: 9.672 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1938/2.623, allocations: 57.18 MB / 299.2 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/2.919, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/3.4, allocations: 94.57 MB / 448.6 MB, free: 31.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003922/3.4, allocations: 68.39 kB / 448.7 MB, free: 31.14 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: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 1.03/4.43, allocations: 176.2 MB / 0.6102 GB, free: 5.496 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.02e-05/4.43, allocations: 12 kB / 0.6102 GB, free: 5.484 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5439/4.974, allocations: 19.96 MB / 0.6297 GB, free: 105.5 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1192/5.093, allocations: 19.9 MB / 0.6492 GB, free: 104.8 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007445/5.094, allocations: 245.5 kB / 0.6494 GB, free: 104.8 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005882/5.1, allocations: 481.2 kB / 0.6499 GB, free: 104.8 MB / 474.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03931/5.139, allocations: 10.88 MB / 0.6605 GB, free: 104.8 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07144/5.211, allocations: 16.7 MB / 0.6768 GB, free: 100 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001247/5.212, allocations: 132.2 kB / 0.6769 GB, free: 100 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00497/5.217, allocations: 54.09 kB / 0.677 GB, free: 100 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005506/5.223, allocations: 1.79 MB / 0.6787 GB, free: 100 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1818/5.404, allocations: 90.68 MB / 0.7673 GB, free: 39.55 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01682/5.421, allocations: 6.529 MB / 0.7736 GB, free: 36.1 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01272/5.434, allocations: 5.512 MB / 0.779 GB, free: 30.98 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06223/5.496, allocations: 19.56 MB / 0.7981 GB, free: 13.88 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.228e-05/5.497, allocations: 71.34 kB / 0.7982 GB, free: 13.8 MB / 474.8 MB Notification: Performance of pre-optimization done (n=316): time 1.166e-05/5.497, allocations: 0 / 0.7982 GB, free: 13.8 MB / 474.8 MB Notification: Performance of matching and sorting (n=387): time 0.5675/6.064, allocations: 51.48 MB / 0.8485 GB, free: 97.49 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/6.064, allocations: 482.1 kB / 0.8489 GB, free: 96.96 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01901/6.083, allocations: 6.865 MB / 0.8556 GB, free: 96.38 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001566/6.085, allocations: 25.7 kB / 0.8557 GB, free: 96.34 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00584/6.091, allocations: 5.106 MB / 0.8607 GB, free: 93.6 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004803/6.096, allocations: 1.475 MB / 0.8621 GB, free: 92.73 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003575/6.099, allocations: 3.406 kB / 0.8621 GB, free: 92.73 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001798/6.101, allocations: 0.7813 MB / 0.8629 GB, free: 92.4 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0227/6.124, allocations: 5.588 MB / 0.8683 GB, free: 92.38 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02116/6.145, allocations: 11.94 MB / 0.88 GB, free: 84.18 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02241/6.168, allocations: 8.001 MB / 0.8878 GB, free: 84.12 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003094/6.168, allocations: 62.5 kB / 0.8878 GB, free: 84.12 MB / 474.8 MB Notification: Performance of matching and sorting (n=1466) (initialization): time 0.2037/6.372, allocations: 29.28 MB / 0.9164 GB, free: 81.46 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/6.372, allocations: 3.75 kB / 0.9164 GB, free: 81.46 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1424/6.514, allocations: 19.6 MB / 0.9356 GB, free: 76.68 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1582/6.673, allocations: 13.28 MB / 0.9486 GB, free: 68.32 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03232/6.705, allocations: 2.647 MB / 0.9511 GB, free: 66.08 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3469/7.052, allocations: 33.73 MB / 0.9841 GB, free: 85.72 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.036/7.088, allocations: 0.6837 MB / 0.9848 GB, free: 85.72 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005365/7.093, allocations: 0.6827 MB / 0.9854 GB, free: 85.72 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1020 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.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 (1318): * Single equations (assignments): 1294 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.007911/7.101, allocations: 0.6608 MB / 0.9861 GB, free: 85.61 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004337/7.106, allocations: 0.7502 MB / 0.9868 GB, free: 85.61 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08446/7.19, allocations: 13.38 MB / 0.9999 GB, free: 85.3 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06262/7.253, allocations: 11.97 MB / 1.012 GB, free: 85.09 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.084e-05/7.253, allocations: 18.67 kB / 1.012 GB, free: 85.09 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001371/7.253, allocations: 20.81 kB / 1.012 GB, free: 85.09 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1225/7.376, allocations: 27.49 MB / 1.038 GB, free: 83.72 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.425e-05/7.376, allocations: 0 / 1.038 GB, free: 83.72 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01079/7.387, allocations: 0.7533 MB / 1.039 GB, free: 83.7 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04259/7.429, allocations: 5.362 MB / 1.044 GB, free: 82.75 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00179/7.431, allocations: 55.38 kB / 1.044 GB, free: 82.75 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07955/7.511, allocations: 25.71 MB / 1.07 GB, free: 70.18 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00444/7.515, allocations: 4.374 MB / 1.074 GB, free: 66.12 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0824/7.598, allocations: 20.14 MB / 1.094 GB, free: 58.9 MB / 474.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1001/7.698, allocations: 27.07 MB / 1.12 GB, free: 35.68 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003194/7.701, allocations: 0.7845 MB / 1.121 GB, free: 34.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004059/7.705, allocations: 27.45 kB / 1.121 GB, free: 34.88 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.013/7.718, allocations: 277.7 kB / 1.121 GB, free: 34.72 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002123/7.721, allocations: 211.2 kB / 1.121 GB, free: 34.61 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001685/7.722, allocations: 109.9 kB / 1.121 GB, free: 34.52 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.01521/7.737, allocations: 4.767 MB / 1.126 GB, free: 30.4 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02255/7.76, allocations: 2.648 MB / 1.129 GB, free: 27.96 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 271 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.227/7.987, allocations: 184.1 kB / 1.129 GB, free: 88.09 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0538/8.041, allocations: 15.32 MB / 1.144 GB, free: 86.46 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/8.041, allocations: 7.312 kB / 1.144 GB, free: 86.46 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02741/8.068, allocations: 6.949 MB / 1.15 GB, free: 85.16 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01298/8.081, allocations: 1.039 MB / 1.151 GB, free: 85.13 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1029/8.184, allocations: 20.58 MB / 1.172 GB, free: 81.56 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03494/8.219, allocations: 6.974 MB / 1.178 GB, free: 80.61 MB / 474.8 MB Notification: Performance of SimCode: time 2.414e-06/8.219, allocations: 0 / 1.178 GB, free: 80.61 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat