Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.606/1.606, allocations: 194.9 MB / 202.5 MB, free: 6.91 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2069/1.813, allocations: 46.84 MB / 249.3 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08847/1.902, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3033/2.205, allocations: 93.66 MB / 387.5 MB, free: 4.266 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/2.205, allocations: 77.39 kB / 387.6 MB, free: 4.254 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.1388/2.344, allocations: 31.26 MB / 418.8 MB, free: 2.375 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/2.344, allocations: 12 kB / 418.9 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/2.345, allocations: 198.2 kB / 419.1 MB, free: 2.168 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00307/2.349, allocations: 0.8509 MB / 419.9 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/2.349, allocations: 79.83 kB / 420 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003012/2.349, allocations: 64 kB / 420 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002452/2.352, allocations: 0.6342 MB / 420.7 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/2.355, allocations: 0.9331 MB / 421.6 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.54e-05/2.355, allocations: 3.984 kB / 421.6 MB, free: 164 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/2.355, allocations: 4 kB / 421.6 MB, free: 160 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/2.355, allocations: 24 kB / 421.6 MB, free: 136 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0112/2.366, allocations: 3.727 MB / 425.4 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/2.367, allocations: 325.8 kB / 425.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/2.368, allocations: 222.2 kB / 425.9 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.495e-05/2.368, allocations: 12.7 kB / 425.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006413/2.369, allocations: 246.1 kB / 426.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 4.068e-06/2.369, allocations: 0 / 426.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.004921/2.374, allocations: 1.39 MB / 427.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002359/2.374, allocations: 479 kB / 428 MB, free: 10.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/2.376, allocations: 0.7245 MB / 428.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000183/2.376, allocations: 25.7 kB / 428.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005772/2.377, allocations: 0.5079 MB / 429.3 MB, free: 9.777 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/2.377, allocations: 223.4 kB / 429.5 MB, free: 9.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.944e-05/2.377, allocations: 0 / 429.5 MB, free: 9.586 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001818/2.377, allocations: 358.6 kB / 429.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007236/2.378, allocations: 199.9 kB / 430 MB, free: 9.129 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/2.379, allocations: 0.6444 MB / 430.7 MB, free: 8.344 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009408/2.38, allocations: 298.9 kB / 431 MB, free: 8.051 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/2.38, allocations: 4 kB / 431 MB, free: 8.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003332/2.384, allocations: 0.9303 MB / 431.9 MB, free: 7.109 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/2.384, allocations: 6.031 kB / 431.9 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-05/2.384, allocations: 15.91 kB / 431.9 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/2.385, allocations: 181.7 kB / 432.1 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/2.387, allocations: 223.6 kB / 432.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006841/2.393, allocations: 3.357 MB / 435.7 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/2.395, allocations: 59.94 kB / 435.7 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/2.396, allocations: 44 kB / 435.8 MB, free: 3.004 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003022/2.396, allocations: 148.7 kB / 435.9 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/2.396, allocations: 110.7 kB / 436 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002409/2.399, allocations: 0.6172 MB / 436.7 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/2.399, allocations: 8 kB / 436.7 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/2.399, allocations: 4 kB / 436.7 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002046/2.401, allocations: 0.8796 MB / 437.5 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005056/2.406, allocations: 1.572 MB / 439.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/2.406, allocations: 4.219 kB / 439.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/2.407, allocations: 123.8 kB / 439.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008461/2.408, allocations: 125.6 kB / 439.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/2.408, allocations: 7.984 kB / 439.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005114/2.413, allocations: 3.113 MB / 442.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/2.413, allocations: 7.969 kB / 442.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002979/2.416, allocations: 1.026 MB / 443.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003871/2.42, allocations: 1.644 MB / 445.2 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008474/2.421, allocations: 239.7 kB / 445.4 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003219/2.422, allocations: 4 kB / 445.4 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/2.423, allocations: 39.97 kB / 445.4 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/2.423, allocations: 40.44 kB / 445.5 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-05/2.423, allocations: 23.98 kB / 445.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001331/2.425, allocations: 0.5403 MB / 446 MB, free: 8.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003096/2.428, allocations: 304.1 kB / 446.3 MB, free: 7.797 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007652/2.429, allocations: 310 kB / 446.6 MB, free: 7.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003286/2.432, allocations: 0.878 MB / 447.5 MB, free: 6.574 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/2.432, allocations: 4 kB / 447.5 MB, free: 6.57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/2.434, allocations: 481.4 kB / 448 MB, free: 6.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/2.436, allocations: 228.8 kB / 448.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005928/2.442, allocations: 1.58 MB / 449.8 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/2.443, allocations: 1.19 MB / 451 MB, free: 3 MB / 346.7 MB Notification: Performance of SimCode: time 1.273e-06/2.443, allocations: 0 / 451 MB, free: 3 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat