Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.63/1.63, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2294/1.859, allocations: 46.84 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/1.947, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2961/2.244, allocations: 93.66 MB / 387.6 MB, free: 4.281 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/2.244, allocations: 79.98 kB / 387.7 MB, free: 4.27 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.1337/2.378, allocations: 31.26 MB / 418.9 MB, free: 2.316 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/2.378, allocations: 12 kB / 418.9 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009877/2.379, allocations: 194.2 kB / 419.1 MB, free: 2.113 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002534/2.381, allocations: 0.8476 MB / 420 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/2.381, allocations: 79.83 kB / 420 MB, free: 1.328 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002283/2.382, allocations: 71.62 kB / 420.1 MB, free: 1.262 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002185/2.384, allocations: 0.6336 MB / 420.7 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/2.386, allocations: 0.9299 MB / 421.7 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.266e-05/2.387, allocations: 2.875 kB / 421.7 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/2.387, allocations: 3.938 kB / 421.7 MB, free: 104 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-05/2.387, allocations: 28 kB / 421.7 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009511/2.396, allocations: 3.724 MB / 425.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009866/2.397, allocations: 327.5 kB / 425.7 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006209/2.398, allocations: 229.2 kB / 426 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.794e-05/2.398, allocations: 16.42 kB / 426 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006438/2.399, allocations: 244 kB / 426.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.497e-06/2.399, allocations: 4 kB / 426.2 MB, free: 12.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.004524/2.403, allocations: 1.38 MB / 427.6 MB, free: 11.31 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002415/2.403, allocations: 483 kB / 428.1 MB, free: 10.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/2.405, allocations: 0.7282 MB / 428.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.383e-05/2.405, allocations: 25.7 kB / 428.8 MB, free: 10.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005569/2.406, allocations: 0.5087 MB / 429.3 MB, free: 9.695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/2.406, allocations: 226.8 kB / 429.6 MB, free: 9.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/2.406, allocations: 0 / 429.6 MB, free: 9.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/2.406, allocations: 347.5 kB / 429.9 MB, free: 9.172 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006995/2.407, allocations: 197.6 kB / 430.1 MB, free: 9.059 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/2.408, allocations: 0.6515 MB / 430.8 MB, free: 8.277 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000909/2.409, allocations: 302.9 kB / 431 MB, free: 7.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/2.409, allocations: 0 / 431 MB, free: 7.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003174/2.412, allocations: 0.9223 MB / 432 MB, free: 7.047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/2.412, allocations: 8.406 kB / 432 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/2.412, allocations: 19.91 kB / 432 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/2.414, allocations: 185.7 kB / 432.2 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/2.415, allocations: 211.6 kB / 432.4 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006618/2.422, allocations: 3.354 MB / 435.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/2.424, allocations: 60.03 kB / 435.8 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/2.424, allocations: 47.98 kB / 435.8 MB, free: 2.934 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.0002679/2.424, allocations: 148.7 kB / 436 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/2.424, allocations: 110.7 kB / 436.1 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002372/2.427, allocations: 0.6172 MB / 436.7 MB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/2.427, allocations: 8 kB / 436.7 MB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/2.427, allocations: 0 / 436.7 MB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001919/2.429, allocations: 0.8796 MB / 437.6 MB, free: 1.043 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004438/2.433, allocations: 1.58 MB / 439.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/2.433, allocations: 4 kB / 439.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/2.434, allocations: 120.1 kB / 439.3 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007818/2.435, allocations: 121.6 kB / 439.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.868e-05/2.435, allocations: 11.98 kB / 439.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00485/2.44, allocations: 3.105 MB / 442.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/2.44, allocations: 3.938 kB / 442.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002894/2.443, allocations: 1.033 MB / 443.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003603/2.447, allocations: 1.651 MB / 445.2 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006834/2.447, allocations: 235.7 kB / 445.5 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/2.448, allocations: 4 kB / 445.5 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/2.449, allocations: 39.91 kB / 445.5 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/2.449, allocations: 56.34 kB / 445.6 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.235e-05/2.449, allocations: 16 kB / 445.6 MB, free: 8.566 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001265/2.45, allocations: 0.5364 MB / 446.1 MB, free: 8.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002689/2.453, allocations: 300.1 kB / 446.4 MB, free: 7.727 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.0006371/2.454, allocations: 318.5 kB / 446.7 MB, free: 7.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0031/2.457, allocations: 0.8779 MB / 447.6 MB, free: 6.496 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/2.457, allocations: 4 kB / 447.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/2.458, allocations: 477.9 kB / 448.1 MB, free: 6.004 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/2.46, allocations: 235.6 kB / 448.3 MB, free: 5.773 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005456/2.466, allocations: 1.584 MB / 449.9 MB, free: 4.133 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/2.467, allocations: 1.182 MB / 451.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of SimCode: time 1.593e-06/2.467, allocations: 0 / 451.1 MB, free: 2.922 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat