Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_1_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.719/1.719, allocations: 171.2 MB / 178.1 MB, free: 8.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2365/1.955, allocations: 41.12 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/2.047, allocations: 38.76 MB / 258 MB, free: 4.367 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3296/2.377, allocations: 88.8 MB / 346.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/2.377, allocations: 81.58 kB / 346.9 MB, free: 15.49 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.1535/2.531, allocations: 31.3 MB / 378.2 MB, free: 5.121 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/2.531, allocations: 12 kB / 378.2 MB, free: 5.109 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/2.532, allocations: 206.1 kB / 378.4 MB, free: 4.906 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/2.535, allocations: 0.8439 MB / 379.3 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001905/2.535, allocations: 79.84 kB / 379.3 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/2.535, allocations: 67.91 kB / 379.4 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002281/2.537, allocations: 0.6369 MB / 380 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003038/2.54, allocations: 0.9315 MB / 381 MB, free: 2.203 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.696e-05/2.541, allocations: 7.906 kB / 381 MB, free: 2.195 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/2.541, allocations: 7.938 kB / 381 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/2.541, allocations: 24 kB / 381 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01404/2.555, allocations: 3.715 MB / 384.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/2.557, allocations: 324.5 kB / 385 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/2.558, allocations: 222.8 kB / 385.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/2.558, allocations: 12.5 kB / 385.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/2.559, allocations: 239.6 kB / 385.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 7.124e-06/2.559, allocations: 0 / 385.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.007995/2.567, allocations: 1.387 MB / 386.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002802/2.568, allocations: 483.2 kB / 387.4 MB, free: 11.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/2.57, allocations: 0.7271 MB / 388.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002453/2.57, allocations: 25.7 kB / 388.1 MB, free: 10.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008254/2.571, allocations: 0.5132 MB / 388.6 MB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004878/2.571, allocations: 216.8 kB / 388.8 MB, free: 9.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.631e-05/2.571, allocations: 4 kB / 388.8 MB, free: 9.914 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/2.572, allocations: 353.9 kB / 389.2 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006761/2.572, allocations: 198.6 kB / 389.4 MB, free: 9.371 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/2.574, allocations: 0.6446 MB / 390 MB, free: 8.512 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/2.575, allocations: 306.8 kB / 390.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/2.576, allocations: 4 kB / 390.3 MB, free: 8.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.005545/2.581, allocations: 0.9225 MB / 391.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/2.581, allocations: 7.984 kB / 391.3 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.752e-05/2.581, allocations: 12 kB / 391.3 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/2.583, allocations: 183.2 kB / 391.5 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/2.586, allocations: 219.6 kB / 391.7 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007178/2.593, allocations: 3.355 MB / 395 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/2.595, allocations: 55.97 kB / 395.1 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/2.595, allocations: 47.98 kB / 395.1 MB, free: 3.164 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.0003169/2.595, allocations: 144.8 kB / 395.3 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/2.595, allocations: 110.7 kB / 395.4 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/2.598, allocations: 0.6056 MB / 396 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/2.598, allocations: 11.91 kB / 396 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/2.598, allocations: 0 / 396 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002017/2.6, allocations: 0.8913 MB / 396.9 MB, free: 1.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004717/2.605, allocations: 1.565 MB / 398.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/2.605, allocations: 4.219 kB / 398.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/2.606, allocations: 115.8 kB / 398.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008191/2.607, allocations: 129.6 kB / 398.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.721e-05/2.607, allocations: 4 kB / 398.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004915/2.612, allocations: 3.124 MB / 401.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/2.612, allocations: 0 / 401.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003011/2.615, allocations: 1.033 MB / 402.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003917/2.619, allocations: 1.647 MB / 404.5 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008265/2.62, allocations: 235.7 kB / 404.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/2.62, allocations: 4 kB / 404.7 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/2.621, allocations: 39.88 kB / 404.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/2.621, allocations: 44.42 kB / 404.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.606e-05/2.621, allocations: 24 kB / 404.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002558/2.624, allocations: 0.5326 MB / 405.4 MB, free: 8.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003736/2.628, allocations: 296.1 kB / 405.7 MB, free: 7.977 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.001175/2.629, allocations: 322.2 kB / 406 MB, free: 7.656 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005291/2.634, allocations: 0.8743 MB / 406.9 MB, free: 6.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.676e-05/2.634, allocations: 0 / 406.9 MB, free: 6.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/2.637, allocations: 477.5 kB / 407.3 MB, free: 6.266 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/2.641, allocations: 224.8 kB / 407.5 MB, free: 6.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006439/2.647, allocations: 1.626 MB / 409.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/2.649, allocations: 1.182 MB / 410.3 MB, free: 3.145 MB / 346.7 MB Notification: Performance of SimCode: time 2.174e-06/2.649, allocations: 0 / 410.3 MB, free: 3.145 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat