Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_1_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.689/1.689, allocations: 171.2 MB / 178.1 MB, free: 8.273 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2163/1.906, allocations: 41.1 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/2.019, allocations: 38.76 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.31/2.329, allocations: 70.89 MB / 328.9 MB, free: 1.238 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/2.329, allocations: 69.22 kB / 329 MB, free: 1.207 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.04442/2.374, allocations: 8.672 MB / 337.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/2.374, allocations: 12 kB / 337.6 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/2.374, allocations: 47.44 kB / 337.7 MB, free: 9.848 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/2.375, allocations: 372 kB / 338.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-05/2.375, allocations: 38.36 kB / 338.1 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/2.375, allocations: 23.94 kB / 338.1 MB, free: 9.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008262/2.376, allocations: 231.2 kB / 338.3 MB, free: 9.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008385/2.377, allocations: 302.8 kB / 338.6 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.159e-05/2.377, allocations: 7.656 kB / 338.6 MB, free: 9.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/2.377, allocations: 4 kB / 338.6 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/2.377, allocations: 8 kB / 338.7 MB, free: 9.012 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/2.381, allocations: 1.184 MB / 339.8 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/2.382, allocations: 168.4 kB / 340 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000421/2.383, allocations: 111.5 kB / 340.1 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/2.383, allocations: 4 kB / 340.1 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/2.383, allocations: 37.8 kB / 340.2 MB, free: 7.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 6.262e-06/2.383, allocations: 0 / 340.2 MB, free: 7.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.00236/2.385, allocations: 0.9053 MB / 341.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/2.385, allocations: 106.8 kB / 341.2 MB, free: 6.734 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004461/2.386, allocations: 258.4 kB / 341.4 MB, free: 6.527 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/2.386, allocations: 29.64 kB / 341.4 MB, free: 6.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/2.386, allocations: 181.2 kB / 341.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/2.386, allocations: 101.5 kB / 341.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/2.386, allocations: 0 / 341.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/2.386, allocations: 352.8 kB / 342.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/2.386, allocations: 99.42 kB / 342.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003647/2.387, allocations: 155.4 kB / 342.3 MB, free: 5.711 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/2.387, allocations: 115.6 kB / 342.4 MB, free: 5.637 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/2.387, allocations: 4.031 kB / 342.4 MB, free: 5.633 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009166/2.388, allocations: 313.8 kB / 342.7 MB, free: 5.391 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/2.388, allocations: 8 kB / 342.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/2.388, allocations: 0 / 342.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/2.388, allocations: 4 kB / 342.7 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/2.39, allocations: 167.8 kB / 342.9 MB, free: 5.219 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-05/2.39, allocations: 7.906 kB / 342.9 MB, free: 5.211 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000699/2.39, allocations: 39.97 kB / 343 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/2.39, allocations: 15.92 kB / 343 MB, free: 5.16 MB / 282.7 MB 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): 46 * 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 prepare postOptimizeDAE: time 0.0001921/2.391, allocations: 112.9 kB / 343.1 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/2.391, allocations: 31.62 kB / 343.1 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/2.391, allocations: 39.17 kB / 343.2 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/2.391, allocations: 4 kB / 343.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/2.391, allocations: 3.906 kB / 343.2 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.547e-06/2.391, allocations: 0 / 343.2 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/2.393, allocations: 0.7244 MB / 343.9 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/2.393, allocations: 4 kB / 343.9 MB, free: 4.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/2.394, allocations: 111.9 kB / 344 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/2.394, allocations: 0 / 344 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/2.394, allocations: 4 kB / 344 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/2.394, allocations: 4 kB / 344 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/2.394, allocations: 7.984 kB / 344 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001209/2.395, allocations: 0.5339 MB / 344.5 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001692/2.397, allocations: 1.021 MB / 345.6 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000312/2.397, allocations: 135.6 kB / 345.7 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.604e-05/2.397, allocations: 11.89 kB / 345.7 MB, free: 2.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008121/2.398, allocations: 63.89 kB / 345.8 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/2.398, allocations: 19.22 kB / 345.8 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/2.398, allocations: 11.44 kB / 345.8 MB, free: 2.625 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0003319/2.399, allocations: 201.5 kB / 346 MB, free: 2.465 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001502/2.4, allocations: 68 kB / 346.1 MB, free: 2.398 MB / 282.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.0002411/2.401, allocations: 107.2 kB / 346.2 MB, free: 2.281 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007465/2.401, allocations: 242.4 kB / 346.4 MB, free: 2.121 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/2.401, allocations: 7.938 kB / 346.4 MB, free: 2.113 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/2.402, allocations: 114 kB / 346.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008874/2.403, allocations: 68.64 kB / 346.6 MB, free: 1.984 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00324/2.406, allocations: 0.8132 MB / 347.4 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007899/2.407, allocations: 0.8548 MB / 348.3 MB, free: 328 kB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/2.407, allocations: 0 / 348.3 MB, free: 328 kB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat