Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",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(Modelica): time 1.76/1.76, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2031/1.963, allocations: 46.84 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/2.053, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.302/2.355, allocations: 85.94 MB / 379.9 MB, free: 6.047 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/2.355, allocations: 86.55 kB / 379.9 MB, free: 6.035 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.392/2.747, allocations: 83.73 MB / 463.7 MB, free: 7.055 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/2.747, allocations: 8 kB / 463.7 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0543/2.801, allocations: 6.242 MB / 469.9 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02518/2.827, allocations: 5.894 MB / 475.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/2.827, allocations: 123.9 kB / 475.9 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/2.828, allocations: 215.9 kB / 476.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01608/2.844, allocations: 5.44 MB / 481.6 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02242/2.867, allocations: 8.366 MB / 490 MB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/2.867, allocations: 63.45 kB / 490 MB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008007/2.868, allocations: 32 kB / 490.1 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002277/2.87, allocations: 0.95 MB / 491 MB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.198/3.068, allocations: 41.72 MB / 0.5202 GB, free: 97.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006676/3.075, allocations: 3.219 MB / 0.5234 GB, free: 96.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004209/3.079, allocations: 2.183 MB / 0.5255 GB, free: 96.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/3.094, allocations: 6.388 MB / 0.5318 GB, free: 94.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/3.094, allocations: 49.97 kB / 0.5318 GB, free: 94.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=154): time 5.921e-06/3.094, allocations: 3.469 kB / 0.5318 GB, free: 94.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=184): time 0.06705/3.162, allocations: 17.27 MB / 0.5487 GB, free: 91.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/3.162, allocations: 255.7 kB / 0.5489 GB, free: 91.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006599/3.168, allocations: 3.048 MB / 0.5519 GB, free: 89.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004434/3.169, allocations: 25.7 kB / 0.5519 GB, free: 89.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001764/3.171, allocations: 2.6 MB / 0.5545 GB, free: 88.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009826/3.172, allocations: 0.6812 MB / 0.5551 GB, free: 87.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004191/3.172, allocations: 0 / 0.5551 GB, free: 87.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003828/3.172, allocations: 0.5422 MB / 0.5556 GB, free: 87.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004973/3.177, allocations: 2.015 MB / 0.5576 GB, free: 86.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006763/3.184, allocations: 5.343 MB / 0.5628 GB, free: 81.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007789/3.192, allocations: 3.287 MB / 0.566 GB, free: 80.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.38e-05/3.192, allocations: 38.03 kB / 0.5661 GB, free: 80.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=730) (initialization): time 0.02602/3.218, allocations: 7.685 MB / 0.5736 GB, free: 78.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/3.218, allocations: 4.594 kB / 0.5736 GB, free: 78.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/3.218, allocations: 119.2 kB / 0.5737 GB, free: 78.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007985/3.226, allocations: 1.34 MB / 0.575 GB, free: 77.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008788/3.235, allocations: 1.243 MB / 0.5762 GB, free: 77.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02199/3.257, allocations: 7.497 MB / 0.5835 GB, free: 74.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007419/3.265, allocations: 177.8 kB / 0.5837 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001126/3.266, allocations: 339.4 kB / 0.584 GB, free: 74.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 27 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.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 (669): * Single equations (assignments): 665 * 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 {(5,72.0%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001112/3.267, allocations: 408.2 kB / 0.5844 GB, free: 73.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008442/3.268, allocations: 323.8 kB / 0.5847 GB, free: 73.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/3.283, allocations: 3.758 MB / 0.5884 GB, free: 70.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/3.283, allocations: 19.23 kB / 0.5884 GB, free: 70.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.92e-05/3.283, allocations: 15.84 kB / 0.5884 GB, free: 70.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.644e-05/3.283, allocations: 6.797 kB / 0.5884 GB, free: 70.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02661/3.309, allocations: 7.856 MB / 0.5961 GB, free: 63.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/3.309, allocations: 4 kB / 0.5961 GB, free: 63.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/3.312, allocations: 236 kB / 0.5963 GB, free: 63.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007612/3.32, allocations: 1.154 MB / 0.5975 GB, free: 62.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003056/3.32, allocations: 12 kB / 0.5975 GB, free: 62.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01813/3.339, allocations: 6.771 MB / 0.6041 GB, free: 56.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/3.339, allocations: 0 / 0.6041 GB, free: 56.84 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01899/3.358, allocations: 6.629 MB / 0.6106 GB, free: 51.04 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02414/3.382, allocations: 9.164 MB / 0.6195 GB, free: 42.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/3.384, allocations: 0.6317 MB / 0.6201 GB, free: 42.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008223/3.385, allocations: 4 kB / 0.6201 GB, free: 42.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002971/3.388, allocations: 59.03 kB / 0.6202 GB, free: 42.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/3.388, allocations: 83.44 kB / 0.6203 GB, free: 42.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002465/3.389, allocations: 48 kB / 0.6203 GB, free: 42.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004569/3.393, allocations: 2.078 MB / 0.6224 GB, free: 40.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007788/3.401, allocations: 0.8412 MB / 0.6232 GB, free: 39.54 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (130): * Single equations (assignments): 126 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006079/3.402, allocations: 155.7 kB / 0.6233 GB, free: 39.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01475/3.416, allocations: 5.05 MB / 0.6283 GB, free: 34.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/3.417, allocations: 7.891 kB / 0.6283 GB, free: 34.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005569/3.422, allocations: 1.813 MB / 0.63 GB, free: 33.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003668/3.426, allocations: 373.4 kB / 0.6304 GB, free: 32.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/3.45, allocations: 7.551 MB / 0.6378 GB, free: 26.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007681/3.457, allocations: 3.406 MB / 0.6411 GB, free: 23.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.543e-06/3.457, allocations: 4 kB / 0.6411 GB, free: 23.47 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat