Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_PID_Controller",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.679/1.679, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2339/1.913, allocations: 46.81 MB / 249.4 MB, free: 5.359 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/2.004, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2829/2.287, allocations: 75.79 MB / 369.7 MB, free: 7.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/2.287, allocations: 70.09 kB / 369.8 MB, free: 7.062 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.03479/2.322, allocations: 7.83 MB / 377.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/2.322, allocations: 11.75 kB / 377.6 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/2.322, allocations: 46.66 kB / 377.6 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005819/2.323, allocations: 327.1 kB / 378 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/2.323, allocations: 11.66 kB / 378 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/2.323, allocations: 31.09 kB / 378 MB, free: 5.543 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007102/2.323, allocations: 229.8 kB / 378.2 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007158/2.324, allocations: 282.1 kB / 378.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/2.324, allocations: 3.812 kB / 378.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.633e-05/2.324, allocations: 7.875 kB / 378.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/2.324, allocations: 7.719 kB / 378.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002622/2.327, allocations: 1.197 MB / 379.7 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/2.328, allocations: 175.9 kB / 379.9 MB, free: 4.621 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/2.328, allocations: 96.3 kB / 380 MB, free: 4.613 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/2.328, allocations: 0 / 380 MB, free: 4.613 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/2.328, allocations: 45.86 kB / 380 MB, free: 4.566 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/2.328, allocations: 0 / 380 MB, free: 4.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002007/2.33, allocations: 0.901 MB / 380.9 MB, free: 3.988 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/2.33, allocations: 84.95 kB / 381 MB, free: 19.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/2.33, allocations: 259 kB / 381.3 MB, free: 19.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/2.33, allocations: 25.7 kB / 381.3 MB, free: 19.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/2.331, allocations: 185.7 kB / 381.5 MB, free: 19.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.556e-05/2.331, allocations: 107.8 kB / 381.6 MB, free: 19.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/2.331, allocations: 0 / 381.6 MB, free: 19.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/2.331, allocations: 347 kB / 381.9 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002932/2.331, allocations: 97.08 kB / 382 MB, free: 19.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/2.331, allocations: 165 kB / 382.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/2.332, allocations: 101.7 kB / 382.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/2.332, allocations: 0 / 382.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007908/2.333, allocations: 311.6 kB / 382.6 MB, free: 19.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001655/2.333, allocations: 456.1 kB / 383 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/2.333, allocations: 7.75 kB / 383 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/2.333, allocations: 4 kB / 383 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002077/2.335, allocations: 272.2 kB / 383.3 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/2.336, allocations: 0.6989 MB / 384 MB, free: 17.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000664/2.337, allocations: 47.11 kB / 384 MB, free: 17.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/2.337, allocations: 22.67 kB / 384.1 MB, free: 17.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.234e-06/2.337, allocations: 0 / 384.1 MB, free: 17.82 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006616/2.337, allocations: 250.9 kB / 384.3 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/2.337, allocations: 0 / 384.3 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/2.337, allocations: 7.859 kB / 384.3 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/2.338, allocations: 127.7 kB / 384.4 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/2.338, allocations: 7.844 kB / 384.5 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/2.339, allocations: 42.62 kB / 384.5 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/2.339, allocations: 15.62 kB / 384.5 MB, free: 17.73 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.0001838/2.339, allocations: 120.6 kB / 384.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.988e-05/2.339, allocations: 31 kB / 384.7 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/2.34, allocations: 36.05 kB / 384.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/2.34, allocations: 7.781 kB / 384.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/2.34, allocations: 0 / 384.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/2.34, allocations: 0 / 384.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/2.341, allocations: 0.7144 MB / 385.4 MB, free: 17.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/2.341, allocations: 0 / 385.4 MB, free: 17.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009733/2.342, allocations: 105.6 kB / 385.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/2.342, allocations: 3.938 kB / 385.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/2.342, allocations: 0 / 385.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/2.342, allocations: 3.938 kB / 385.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/2.342, allocations: 3.906 kB / 385.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009721/2.343, allocations: 0.5271 MB / 386.1 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001384/2.345, allocations: 1.024 MB / 387.1 MB, free: 16.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/2.345, allocations: 130.5 kB / 387.2 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/2.345, allocations: 7.75 kB / 387.2 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/2.346, allocations: 47.11 kB / 387.3 MB, free: 16.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/2.346, allocations: 22.72 kB / 387.3 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/2.346, allocations: 11.22 kB / 387.3 MB, free: 16.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002811/2.346, allocations: 194.7 kB / 387.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00271/2.349, allocations: 119.8 kB / 387.6 MB, free: 15.94 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.0001673/2.349, allocations: 106.7 kB / 387.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002433/2.351, allocations: 0.6078 MB / 388.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/2.351, allocations: 0 / 388.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/2.352, allocations: 116.8 kB / 388.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000802/2.353, allocations: 69.88 kB / 388.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/2.355, allocations: 0.8307 MB / 389.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006896/2.356, allocations: 0.8592 MB / 390.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of SimCode: time 8.42e-07/2.356, allocations: 0 / 390.2 MB, free: 14.45 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat