Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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 3.23/3.23, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3725/3.603, allocations: 46.83 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/3.712, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4117/4.124, allocations: 92.06 MB / 386 MB, free: 4.48 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/4.124, allocations: 86.72 kB / 386.1 MB, free: 4.465 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: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.5284/4.653, allocations: 74.84 MB / 460.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/4.653, allocations: 12 kB / 460.9 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0229/4.676, allocations: 1.859 MB / 462.8 MB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02219/4.698, allocations: 3.944 MB / 466.7 MB, free: 4.668 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003442/4.698, allocations: 119.9 kB / 466.8 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/4.701, allocations: 211.8 kB / 467 MB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02145/4.722, allocations: 5.652 MB / 472.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03043/4.753, allocations: 8.599 MB / 481.3 MB, free: 5.117 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000298/4.753, allocations: 55.56 kB / 481.4 MB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002012/4.755, allocations: 28 kB / 481.4 MB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003714/4.759, allocations: 1.036 MB / 482.4 MB, free: 3.996 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.303/5.062, allocations: 44.07 MB / 0.5141 GB, free: 55.63 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009746/5.072, allocations: 2.701 MB / 0.5168 GB, free: 54.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006681/5.078, allocations: 1.795 MB / 0.5185 GB, free: 54.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02658/5.105, allocations: 5.593 MB / 0.524 GB, free: 53.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.231e-05/5.105, allocations: 49.59 kB / 0.524 GB, free: 53.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 8.316e-06/5.105, allocations: 0 / 0.524 GB, free: 53.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=156): time 0.1047/5.21, allocations: 15.11 MB / 0.5388 GB, free: 50.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/5.21, allocations: 144.3 kB / 0.5389 GB, free: 50.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007734/5.218, allocations: 2.635 MB / 0.5415 GB, free: 50.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004898/5.218, allocations: 25.7 kB / 0.5415 GB, free: 50.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002457/5.221, allocations: 2.63 MB / 0.5441 GB, free: 48.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001177/5.222, allocations: 0.599 MB / 0.5447 GB, free: 48.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007954/5.223, allocations: 0 / 0.5447 GB, free: 48.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005221/5.223, allocations: 0.5408 MB / 0.5452 GB, free: 48.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006455/5.23, allocations: 1.842 MB / 0.547 GB, free: 48.11 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008825/5.239, allocations: 5.316 MB / 0.5522 GB, free: 42.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009546/5.248, allocations: 3.099 MB / 0.5552 GB, free: 41.91 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/5.249, allocations: 32.69 kB / 0.5553 GB, free: 41.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.03405/5.283, allocations: 7.276 MB / 0.5624 GB, free: 39.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/5.283, allocations: 5.469 kB / 0.5624 GB, free: 39.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002961/5.283, allocations: 125.4 kB / 0.5625 GB, free: 39.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/5.294, allocations: 1.22 MB / 0.5637 GB, free: 39.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01176/5.306, allocations: 1.288 MB / 0.5649 GB, free: 39.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02132/5.327, allocations: 5.786 MB / 0.5706 GB, free: 35.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009878/5.337, allocations: 216.5 kB / 0.5708 GB, free: 35.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001652/5.339, allocations: 351.1 kB / 0.5711 GB, free: 34.97 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.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 (690): * Single equations (assignments): 686 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002119/5.341, allocations: 420.6 kB / 0.5715 GB, free: 34.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009157/5.342, allocations: 280.4 kB / 0.5718 GB, free: 34.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/5.36, allocations: 3.095 MB / 0.5748 GB, free: 31.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/5.36, allocations: 16 kB / 0.5748 GB, free: 31.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/5.36, allocations: 4.656 kB / 0.5748 GB, free: 31.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-05/5.36, allocations: 3.844 kB / 0.5748 GB, free: 31.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03098/5.391, allocations: 6.569 MB / 0.5813 GB, free: 26.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-05/5.391, allocations: 4 kB / 0.5813 GB, free: 26.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003879/5.395, allocations: 215.5 kB / 0.5815 GB, free: 26.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01156/5.407, allocations: 1.027 MB / 0.5825 GB, free: 25.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004861/5.408, allocations: 4 kB / 0.5825 GB, free: 25.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02368/5.431, allocations: 5.377 MB / 0.5877 GB, free: 21.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.679e-05/5.431, allocations: 4 kB / 0.5877 GB, free: 21.03 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03329/5.465, allocations: 5.505 MB / 0.5931 GB, free: 16.3 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04025/5.505, allocations: 7.622 MB / 0.6006 GB, free: 9.645 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003511/5.509, allocations: 0.5378 MB / 0.6011 GB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001769/5.51, allocations: 0 / 0.6011 GB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006282/5.517, allocations: 65.8 kB / 0.6011 GB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000964/5.518, allocations: 65.64 kB / 0.6012 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005315/5.518, allocations: 43.91 kB / 0.6012 GB, free: 9.008 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.008002/5.526, allocations: 1.736 MB / 0.6029 GB, free: 7.492 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01525/5.542, allocations: 0.7689 MB / 0.6037 GB, free: 6.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 116 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001252/5.543, allocations: 150.4 kB / 0.6038 GB, free: 6.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02014/5.563, allocations: 4.443 MB / 0.6082 GB, free: 2.555 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/5.563, allocations: 4 kB / 0.6082 GB, free: 2.551 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007243/5.571, allocations: 1.429 MB / 0.6096 GB, free: 1.246 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004519/5.575, allocations: 241.8 kB / 0.6098 GB, free: 1.027 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04449/5.62, allocations: 6.57 MB / 0.6162 GB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01568/5.636, allocations: 3.129 MB / 0.6193 GB, free: 8.754 MB / 410.7 MB Notification: Performance of SimCode: time 3.196e-06/5.636, allocations: 0 / 0.6193 GB, free: 8.754 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat