Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [: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.818/1.818, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2977/2.115, allocations: 46.82 MB / 249.3 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/2.207, allocations: 44.5 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/2.488, allocations: 75.79 MB / 369.6 MB, free: 7.105 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/2.488, allocations: 73.66 kB / 369.7 MB, free: 7.105 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.03286/2.521, allocations: 7.838 MB / 377.5 MB, free: 5.891 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/2.521, allocations: 11.62 kB / 377.5 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/2.522, allocations: 46.69 kB / 377.6 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005999/2.522, allocations: 315.9 kB / 377.9 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/2.522, allocations: 11.66 kB / 377.9 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.608e-05/2.522, allocations: 23.41 kB / 377.9 MB, free: 5.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007022/2.523, allocations: 229.7 kB / 378.2 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007015/2.524, allocations: 297 kB / 378.4 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/2.524, allocations: 0 / 378.4 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/2.524, allocations: 3.938 kB / 378.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/2.524, allocations: 7.812 kB / 378.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/2.527, allocations: 1.207 MB / 379.7 MB, free: 4.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/2.527, allocations: 170.8 kB / 379.8 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/2.527, allocations: 105.6 kB / 379.9 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/2.528, allocations: 3.844 kB / 379.9 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/2.528, allocations: 41.25 kB / 380 MB, free: 4.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.946e-06/2.528, allocations: 0 / 380 MB, free: 4.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002004/2.53, allocations: 0.905 MB / 380.9 MB, free: 20.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/2.53, allocations: 80.48 kB / 381 MB, free: 19.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004183/2.53, allocations: 256.6 kB / 381.2 MB, free: 19.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/2.53, allocations: 25.7 kB / 381.2 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/2.53, allocations: 182.3 kB / 381.4 MB, free: 19.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.418e-05/2.53, allocations: 107.3 kB / 381.5 MB, free: 19.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/2.53, allocations: 0 / 381.5 MB, free: 19.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/2.531, allocations: 347.8 kB / 381.9 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/2.531, allocations: 103.6 kB / 382 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003103/2.531, allocations: 159.2 kB / 382.1 MB, free: 19.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/2.532, allocations: 100.1 kB / 382.2 MB, free: 19.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/2.532, allocations: 0 / 382.2 MB, free: 19.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007737/2.532, allocations: 324.8 kB / 382.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001964/2.533, allocations: 451.7 kB / 383 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/2.533, allocations: 7.922 kB / 383 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/2.533, allocations: 3.875 kB / 383 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001909/2.535, allocations: 272.4 kB / 383.2 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/2.536, allocations: 0.6914 MB / 383.9 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007002/2.536, allocations: 54.95 kB / 384 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/2.536, allocations: 7.812 kB / 384 MB, free: 17.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/2.536, allocations: 3.938 kB / 384 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000636/2.537, allocations: 247.6 kB / 384.2 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/2.537, allocations: 3.906 kB / 384.3 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/2.537, allocations: 3.875 kB / 384.3 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000943/2.538, allocations: 129.2 kB / 384.4 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/2.538, allocations: 11.78 kB / 384.4 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005457/2.539, allocations: 39.09 kB / 384.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/2.539, allocations: 11.06 kB / 384.4 MB, free: 17.78 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: PI.addSat.u2:VARIABLE() "Connector of Real input signal 2" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002165/2.539, allocations: 112.6 kB / 384.6 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.652e-05/2.539, allocations: 34.19 kB / 384.6 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/2.539, allocations: 36.7 kB / 384.6 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/2.539, allocations: 7.75 kB / 384.6 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/2.539, allocations: 3.984 kB / 384.6 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/2.539, allocations: 7.984 kB / 384.6 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/2.541, allocations: 0.7088 MB / 385.3 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/2.541, allocations: 3.938 kB / 385.4 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009105/2.542, allocations: 104.6 kB / 385.5 MB, free: 17.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.096e-05/2.542, allocations: 7.562 kB / 385.5 MB, free: 17.17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/2.542, allocations: 7.828 kB / 385.5 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/2.542, allocations: 0 / 385.5 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/2.542, allocations: 7.75 kB / 385.5 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001012/2.543, allocations: 0.5271 MB / 386 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001409/2.544, allocations: 1.017 MB / 387 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/2.545, allocations: 133.9 kB / 387.2 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.529e-05/2.545, allocations: 3.906 kB / 387.2 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/2.545, allocations: 50.89 kB / 387.2 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/2.545, allocations: 26.94 kB / 387.2 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/2.546, allocations: 6.562 kB / 387.2 MB, free: 16.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003204/2.546, allocations: 196.7 kB / 387.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002466/2.548, allocations: 116.2 kB / 387.5 MB, free: 15.98 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002153/2.549, allocations: 114.8 kB / 387.7 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002337/2.551, allocations: 0.5932 MB / 388.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.403e-06/2.551, allocations: 0 / 388.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003584/2.551, allocations: 120.1 kB / 388.4 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008568/2.552, allocations: 70.5 kB / 388.4 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/2.555, allocations: 0.8307 MB / 389.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000719/2.556, allocations: 0.855 MB / 390.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of SimCode: time 1.283e-06/2.556, allocations: 0 / 390.1 MB, free: 14.5 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat