Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.746/1.746, allocations: 171.2 MB / 178.1 MB, free: 8.301 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1971/1.943, allocations: 41.13 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/2.032, allocations: 38.76 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/2.329, allocations: 88.37 MB / 346.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/2.33, allocations: 77.64 kB / 346.5 MB, free: 15.95 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.1356/2.466, allocations: 29.39 MB / 375.9 MB, free: 7.484 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/2.466, allocations: 12 kB / 375.9 MB, free: 7.473 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/2.467, allocations: 202.3 kB / 376.1 MB, free: 7.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002831/2.47, allocations: 0.8165 MB / 376.9 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/2.47, allocations: 32 kB / 376.9 MB, free: 6.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002736/2.47, allocations: 64 kB / 377 MB, free: 6.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001979/2.472, allocations: 0.5351 MB / 377.5 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/2.475, allocations: 0.7551 MB / 378.3 MB, free: 5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.244e-05/2.475, allocations: 8 kB / 378.3 MB, free: 4.992 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/2.475, allocations: 3.984 kB / 378.3 MB, free: 4.988 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.473e-05/2.475, allocations: 24 kB / 378.3 MB, free: 4.965 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/2.485, allocations: 3.768 MB / 382.1 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/2.486, allocations: 182 kB / 382.2 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009505/2.487, allocations: 264.8 kB / 382.5 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-05/2.487, allocations: 7.906 kB / 382.5 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/2.487, allocations: 38.56 kB / 382.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.356e-06/2.487, allocations: 0 / 382.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.004202/2.491, allocations: 1.128 MB / 383.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/2.491, allocations: 89.39 kB / 383.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/2.493, allocations: 0.5977 MB / 384.4 MB, free: 14.6 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000139/2.493, allocations: 25.7 kB / 384.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005835/2.494, allocations: 477.7 kB / 384.9 MB, free: 14.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005141/2.494, allocations: 173.5 kB / 385 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/2.494, allocations: 0 / 385 MB, free: 13.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000557/2.495, allocations: 382.8 kB / 385.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005476/2.495, allocations: 141.6 kB / 385.5 MB, free: 13.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006681/2.496, allocations: 424.4 kB / 385.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006301/2.497, allocations: 223.8 kB / 386.2 MB, free: 12.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/2.497, allocations: 4 kB / 386.2 MB, free: 12.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002123/2.499, allocations: 0.6719 MB / 386.8 MB, free: 11.94 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/2.499, allocations: 8 kB / 386.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/2.499, allocations: 8 kB / 386.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005334/2.5, allocations: 105.9 kB / 387 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/2.501, allocations: 159.7 kB / 387.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004295/2.505, allocations: 2.917 MB / 390 MB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/2.506, allocations: 19.98 kB / 390.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-05/2.506, allocations: 36 kB / 390.1 MB, free: 8.453 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002146/2.507, allocations: 136.6 kB / 390.2 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/2.507, allocations: 82.97 kB / 390.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/2.508, allocations: 461.3 kB / 390.8 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/2.508, allocations: 4 kB / 390.8 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/2.509, allocations: 3.938 kB / 390.8 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/2.509, allocations: 3.984 kB / 390.8 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003936/2.512, allocations: 1.287 MB / 392.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/2.513, allocations: 4.219 kB / 392.1 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/2.513, allocations: 83.89 kB / 392.1 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004769/2.514, allocations: 89.61 kB / 392.2 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/2.514, allocations: 4 kB / 392.2 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004418/2.518, allocations: 2.882 MB / 395.1 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/2.518, allocations: 4.062 kB / 395.1 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002193/2.52, allocations: 0.836 MB / 396 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003077/2.524, allocations: 1.382 MB / 397.3 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005517/2.524, allocations: 192 kB / 397.5 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/2.524, allocations: 3.984 kB / 397.5 MB, free: 492 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008272/2.525, allocations: 31.92 kB / 397.6 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/2.525, allocations: 32.05 kB / 397.6 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/2.525, allocations: 16 kB / 397.6 MB, free: 412 kB / 330.7 MB Notification: Performance of sort global known variables: time 0.001024/2.526, allocations: 455.2 kB / 398 MB, free: 15.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002871/2.529, allocations: 211.9 kB / 398.3 MB, free: 15.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006123/2.53, allocations: 276.1 kB / 398.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002112/2.532, allocations: 0.6308 MB / 399.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/2.532, allocations: 0 / 399.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/2.533, allocations: 416 kB / 399.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/2.535, allocations: 163.2 kB / 399.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004998/2.54, allocations: 1.27 MB / 401 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/2.541, allocations: 1.104 MB / 402.1 MB, free: 11.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/2.541, allocations: 0 / 402.1 MB, free: 11.79 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat