Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_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.852/1.852, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2063/2.059, allocations: 41.11 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09266/2.152, allocations: 38.76 MB / 258 MB, free: 4.355 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3439/2.495, allocations: 102 MB / 360 MB, free: 2.672 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004/2.496, allocations: 89.27 kB / 360.1 MB, free: 2.625 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.8694/3.365, allocations: 164.8 MB / 0.5126 GB, free: 24.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/3.365, allocations: 8 kB / 0.5126 GB, free: 24.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008572/3.374, allocations: 1.1 MB / 0.5136 GB, free: 23.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0191/3.393, allocations: 4.926 MB / 0.5185 GB, free: 18.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005018/3.394, allocations: 223.9 kB / 0.5187 GB, free: 18.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003377/3.397, allocations: 411.8 kB / 0.5191 GB, free: 18.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02907/3.426, allocations: 6.362 MB / 0.5253 GB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03611/3.462, allocations: 7.779 MB / 0.5329 GB, free: 3.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003979/3.463, allocations: 11.91 kB / 0.5329 GB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002256/3.465, allocations: 8 kB / 0.5329 GB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003305/3.466, allocations: 317.7 kB / 0.5332 GB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2365/3.702, allocations: 26.51 MB / 0.5591 GB, free: 62.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004849/3.707, allocations: 1.8 MB / 0.5608 GB, free: 62.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008907/3.716, allocations: 2.54 MB / 0.5633 GB, free: 62.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000464/3.717, allocations: 34.94 kB / 0.5634 GB, free: 62.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001027/3.717, allocations: 60.69 kB / 0.5634 GB, free: 62.42 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 1.673e-05/3.717, allocations: 0 / 0.5634 GB, free: 62.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=322): time 0.04888/3.766, allocations: 10.02 MB / 0.5732 GB, free: 60.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/3.766, allocations: 87.62 kB / 0.5733 GB, free: 60.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007687/3.773, allocations: 2.426 MB / 0.5757 GB, free: 60.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006696/3.774, allocations: 29.55 kB / 0.5757 GB, free: 60.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002091/3.776, allocations: 2.471 MB / 0.5781 GB, free: 59.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001634/3.778, allocations: 1.051 MB / 0.5791 GB, free: 58.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003687/3.778, allocations: 0 / 0.5791 GB, free: 58.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003154/3.779, allocations: 464.3 kB / 0.5796 GB, free: 58.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/3.783, allocations: 1.5 MB / 0.581 GB, free: 58.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005191/3.788, allocations: 2.518 MB / 0.5835 GB, free: 56.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006279/3.794, allocations: 2.028 MB / 0.5855 GB, free: 56.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-05/3.795, allocations: 7.562 kB / 0.5855 GB, free: 56.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01782/3.812, allocations: 5.235 MB / 0.5906 GB, free: 56.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/3.812, allocations: 3.5 kB / 0.5906 GB, free: 56.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.495e-05/3.813, allocations: 30.91 kB / 0.5906 GB, free: 56.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004978/3.818, allocations: 0.9815 MB / 0.5916 GB, free: 56.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006536/3.824, allocations: 0.7768 MB / 0.5923 GB, free: 56.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02436/3.849, allocations: 14.3 MB / 0.6063 GB, free: 46.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005073/3.854, allocations: 83.05 kB / 0.6064 GB, free: 46.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008842/3.855, allocations: 156.3 kB / 0.6065 GB, free: 45.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (405): * Single equations (assignments): 397 * 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%) 22,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 22,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008638/3.856, allocations: 199.7 kB / 0.6067 GB, free: 45.85 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/3.857, allocations: 358.7 kB / 0.6071 GB, free: 45.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/3.871, allocations: 4.698 MB / 0.6116 GB, free: 43.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.434e-05/3.871, allocations: 33.28 kB / 0.6117 GB, free: 43.65 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.856e-05/3.871, allocations: 14.25 kB / 0.6117 GB, free: 43.65 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.967e-05/3.871, allocations: 18.19 kB / 0.6117 GB, free: 43.65 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03383/3.905, allocations: 11.64 MB / 0.6231 GB, free: 38.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.136e-05/3.905, allocations: 7.719 kB / 0.6231 GB, free: 38.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004473/3.909, allocations: 474.2 kB / 0.6235 GB, free: 38.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005507/3.915, allocations: 1.101 MB / 0.6246 GB, free: 38.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008488/3.916, allocations: 29.36 kB / 0.6246 GB, free: 38.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03028/3.946, allocations: 17.06 MB / 0.6413 GB, free: 25.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-05/3.946, allocations: 17.59 kB / 0.6413 GB, free: 25.27 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02092/3.967, allocations: 7.944 MB / 0.6491 GB, free: 18.07 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02704/3.994, allocations: 10.62 MB / 0.6594 GB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003602/3.998, allocations: 0.7924 MB / 0.6602 GB, free: 7.094 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00172/4, allocations: 21.64 kB / 0.6602 GB, free: 7.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004598/4.004, allocations: 97.84 kB / 0.6603 GB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009021/4.005, allocations: 180.2 kB / 0.6605 GB, free: 6.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003276/4.006, allocations: 94.66 kB / 0.6606 GB, free: 6.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00492/4.01, allocations: 1.796 MB / 0.6624 GB, free: 5.195 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008492/4.019, allocations: 1.142 MB / 0.6635 GB, free: 4.059 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.port_n.Phi.re,smpm3.stator.port_n.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 234 * 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.001395/4.02, allocations: 494.8 kB / 0.6639 GB, free: 3.676 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.2037/4.224, allocations: 4.871 MB / 0.6687 GB, free: 61.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.271e-05/4.224, allocations: 6.594 kB / 0.6687 GB, free: 61.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01125/4.236, allocations: 3.023 MB / 0.6717 GB, free: 60.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00787/4.243, allocations: 0.7504 MB / 0.6724 GB, free: 60.47 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05133/4.295, allocations: 10.47 MB / 0.6826 GB, free: 58.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01448/4.309, allocations: 4.694 MB / 0.6872 GB, free: 57.33 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/4.309, allocations: 0 / 0.6872 GB, free: 57.33 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat