Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.654/1.654, allocations: 171.2 MB / 178.1 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1875/1.841, allocations: 41.11 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/1.955, allocations: 38.76 MB / 258 MB, free: 4.355 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/2.347, allocations: 98.9 MB / 356.9 MB, free: 5.641 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004521/2.347, allocations: 80.89 kB / 357 MB, free: 5.602 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.9092/3.256, allocations: 155.3 MB / 0.5003 GB, free: 36.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/3.256, allocations: 8 kB / 0.5003 GB, free: 36.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01142/3.268, allocations: 1.034 MB / 0.5013 GB, free: 35.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02374/3.292, allocations: 4.73 MB / 0.5059 GB, free: 30.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006618/3.292, allocations: 223.9 kB / 0.5062 GB, free: 30.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003459/3.296, allocations: 395.8 kB / 0.5065 GB, free: 30.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03072/3.327, allocations: 6.185 MB / 0.5126 GB, free: 24.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04124/3.368, allocations: 7.539 MB / 0.5199 GB, free: 16.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005266/3.369, allocations: 19.89 kB / 0.52 GB, free: 16.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00311/3.372, allocations: 4 kB / 0.52 GB, free: 16.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004501/3.372, allocations: 293.3 kB / 0.5202 GB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2822/3.654, allocations: 25.38 MB / 0.545 GB, free: 64.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006275/3.661, allocations: 1.686 MB / 0.5467 GB, free: 64.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01005/3.671, allocations: 2.435 MB / 0.5491 GB, free: 64.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000409/3.671, allocations: 33.5 kB / 0.5491 GB, free: 64.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.951e-05/3.672, allocations: 63.45 kB / 0.5491 GB, free: 64.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=256): time 1.023e-05/3.672, allocations: 2.969 kB / 0.5491 GB, free: 64.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=302): time 0.05239/3.724, allocations: 9.481 MB / 0.5584 GB, free: 63.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/3.724, allocations: 86.56 kB / 0.5585 GB, free: 62.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009347/3.733, allocations: 2.271 MB / 0.5607 GB, free: 62.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007854/3.734, allocations: 30.94 kB / 0.5607 GB, free: 62.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002674/3.737, allocations: 2.372 MB / 0.5631 GB, free: 61.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002009/3.739, allocations: 0.9875 MB / 0.564 GB, free: 60.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005853/3.74, allocations: 0 / 0.564 GB, free: 60.83 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005669/3.74, allocations: 448.3 kB / 0.5644 GB, free: 60.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006184/3.747, allocations: 1.438 MB / 0.5659 GB, free: 60.51 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005447/3.752, allocations: 2.378 MB / 0.5682 GB, free: 59.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005939/3.758, allocations: 1.933 MB / 0.5701 GB, free: 59.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.855e-05/3.758, allocations: 6.781 kB / 0.5701 GB, free: 59.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=453) (initialization): time 0.0215/3.78, allocations: 4.986 MB / 0.5749 GB, free: 58.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/3.78, allocations: 3.5 kB / 0.5749 GB, free: 58.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-05/3.78, allocations: 36.12 kB / 0.575 GB, free: 58.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005913/3.786, allocations: 0.9472 MB / 0.5759 GB, free: 58.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007936/3.794, allocations: 0.7191 MB / 0.5766 GB, free: 58.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03291/3.827, allocations: 13.95 MB / 0.5902 GB, free: 51.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/3.832, allocations: 80.55 kB / 0.5903 GB, free: 51.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/3.833, allocations: 141 kB / 0.5904 GB, free: 51.22 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 371 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009876/3.834, allocations: 195.2 kB / 0.5906 GB, free: 51.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/3.835, allocations: 340.5 kB / 0.5909 GB, free: 50.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01476/3.85, allocations: 4.49 MB / 0.5953 GB, free: 50.47 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.958e-05/3.85, allocations: 28.19 kB / 0.5954 GB, free: 50.47 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.814e-05/3.85, allocations: 18.84 kB / 0.5954 GB, free: 50.47 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-05/3.85, allocations: 14.58 kB / 0.5954 GB, free: 50.47 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03693/3.887, allocations: 10.93 MB / 0.6061 GB, free: 45.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.027e-05/3.887, allocations: 10.88 kB / 0.6061 GB, free: 45.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006385/3.894, allocations: 442.1 kB / 0.6065 GB, free: 45.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007905/3.902, allocations: 1.091 MB / 0.6076 GB, free: 45.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008327/3.903, allocations: 31.92 kB / 0.6076 GB, free: 45.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03249/3.935, allocations: 17.05 MB / 0.6242 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.384e-05/3.935, allocations: 13.16 kB / 0.6243 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01845/3.954, allocations: 7.499 MB / 0.6316 GB, free: 28.52 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03529/3.989, allocations: 10.04 MB / 0.6414 GB, free: 22.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004958/3.994, allocations: 0.7428 MB / 0.6421 GB, free: 22.06 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002164/3.996, allocations: 20 kB / 0.6421 GB, free: 22.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006424/4.003, allocations: 94.45 kB / 0.6422 GB, free: 21.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001184/4.004, allocations: 175 kB / 0.6424 GB, free: 21.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006338/4.005, allocations: 86.48 kB / 0.6425 GB, free: 21.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.006943/4.012, allocations: 1.692 MB / 0.6441 GB, free: 20.26 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01192/4.024, allocations: 1.078 MB / 0.6452 GB, free: 19.19 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.port_n.Phi.re,smr3.stator.port_n.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 214 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(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.001676/4.025, allocations: 432.3 kB / 0.6456 GB, free: 18.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01904/4.044, allocations: 4.672 MB / 0.6501 GB, free: 14.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.287e-05/4.045, allocations: 8.062 kB / 0.6502 GB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0134/4.058, allocations: 2.932 MB / 0.653 GB, free: 11.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007416/4.065, allocations: 0.6559 MB / 0.6537 GB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05238/4.118, allocations: 9.987 MB / 0.6634 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1948/4.313, allocations: 4.987 MB / 0.6683 GB, free: 63.46 MB / 346.7 MB Notification: Performance of SimCode: time 1.834e-06/4.313, allocations: 2.969 kB / 0.6683 GB, free: 63.46 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat