Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_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.575/1.575, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2278/1.803, allocations: 46.83 MB / 249.3 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/1.888, allocations: 44.51 MB / 293.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3072/2.195, allocations: 110.5 MB / 404.4 MB, free: 11.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/2.196, allocations: 81.39 kB / 404.5 MB, free: 11.77 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1927 * Number of variables: 1927 Notification: Performance of Generate backend data structure: time 0.7555/2.951, allocations: 173.7 MB / 0.5647 GB, free: 61.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/2.951, allocations: 7.844 kB / 0.5647 GB, free: 61.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01406/2.965, allocations: 1.617 MB / 0.5662 GB, free: 60.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02136/2.987, allocations: 5.916 MB / 0.572 GB, free: 57.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005669/2.987, allocations: 239.1 kB / 0.5723 GB, free: 57.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003108/2.99, allocations: 432.1 kB / 0.5727 GB, free: 57.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02587/3.016, allocations: 7.21 MB / 0.5797 GB, free: 53.72 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02869/3.045, allocations: 8.389 MB / 0.5879 GB, free: 46.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002744/3.045, allocations: 3.938 kB / 0.5879 GB, free: 46.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001746/3.047, allocations: 11.91 kB / 0.5879 GB, free: 46.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003306/3.047, allocations: 342.9 kB / 0.5882 GB, free: 45.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07522/3.123, allocations: 29.35 MB / 0.6169 GB, free: 18.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005502/3.128, allocations: 2.322 MB / 0.6192 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007937/3.136, allocations: 3.182 MB / 0.6223 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02384/3.16, allocations: 8.712 MB / 0.6308 GB, free: 3.906 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/3.16, allocations: 73.31 kB / 0.6309 GB, free: 3.824 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 6.893e-06/3.16, allocations: 0 / 0.6309 GB, free: 3.824 MB / 394.7 MB Notification: Performance of matching and sorting (n=357): time 0.03065/3.191, allocations: 9.448 MB / 0.6401 GB, free: 10.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/3.191, allocations: 90.22 kB / 0.6402 GB, free: 10.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006665/3.198, allocations: 2.532 MB / 0.6426 GB, free: 7.633 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006968/3.198, allocations: 29.7 kB / 0.6427 GB, free: 7.598 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/3.201, allocations: 2.565 MB / 0.6452 GB, free: 4.996 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001794/3.202, allocations: 1.162 MB / 0.6463 GB, free: 3.816 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003323/3.203, allocations: 3.938 kB / 0.6463 GB, free: 3.812 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003635/3.203, allocations: 483 kB / 0.6468 GB, free: 3.332 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004923/3.208, allocations: 1.625 MB / 0.6484 GB, free: 1.695 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1553/3.363, allocations: 2.753 MB / 0.6511 GB, free: 104 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006719/3.37, allocations: 2.256 MB / 0.6533 GB, free: 104 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.861e-05/3.37, allocations: 10.44 kB / 0.6533 GB, free: 104 MB / 410.7 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01528/3.386, allocations: 5.224 MB / 0.6584 GB, free: 103.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/3.386, allocations: 3 kB / 0.6584 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-05/3.386, allocations: 38.88 kB / 0.6584 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/3.387, allocations: 396.9 kB / 0.6588 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00807/3.395, allocations: 0.9779 MB / 0.6597 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008115/3.404, allocations: 6.965 MB / 0.6665 GB, free: 98.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005415/3.409, allocations: 96.19 kB / 0.6666 GB, free: 98.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008379/3.41, allocations: 187 kB / 0.6668 GB, free: 98.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (517): * Single equations (assignments): 511 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008709/3.411, allocations: 219.2 kB / 0.667 GB, free: 98.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/3.412, allocations: 384 kB / 0.6674 GB, free: 98.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0146/3.426, allocations: 4.862 MB / 0.6721 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.814e-05/3.427, allocations: 34.78 kB / 0.6722 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.539e-05/3.427, allocations: 14.78 kB / 0.6722 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.113e-05/3.427, allocations: 15.61 kB / 0.6722 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02875/3.455, allocations: 11 MB / 0.6829 GB, free: 97.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/3.456, allocations: 5.531 kB / 0.6829 GB, free: 97.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00518/3.461, allocations: 0.5366 MB / 0.6835 GB, free: 97.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003948/3.465, allocations: 0.8755 MB / 0.6843 GB, free: 96.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006085/3.465, allocations: 38.52 kB / 0.6844 GB, free: 96.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02242/3.488, allocations: 15.31 MB / 0.6993 GB, free: 88.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/3.488, allocations: 9.188 kB / 0.6993 GB, free: 88.34 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01839/3.506, allocations: 7.582 MB / 0.7067 GB, free: 86.49 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02368/3.53, allocations: 10.36 MB / 0.7169 GB, free: 81.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003094/3.533, allocations: 0.8358 MB / 0.7177 GB, free: 80.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/3.534, allocations: 21.19 kB / 0.7177 GB, free: 80.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004082/3.538, allocations: 104.4 kB / 0.7178 GB, free: 80.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005552/3.539, allocations: 186.4 kB / 0.718 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003239/3.539, allocations: 101 kB / 0.7181 GB, free: 80.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004469/3.544, allocations: 1.873 MB / 0.7199 GB, free: 79.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007635/3.552, allocations: 1.197 MB / 0.7211 GB, free: 79.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (286): * Single equations (assignments): 279 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001588/3.553, allocations: 0.5001 MB / 0.7215 GB, free: 79.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0116/3.565, allocations: 4.631 MB / 0.7261 GB, free: 77.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/3.565, allocations: 3.812 kB / 0.7261 GB, free: 77.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007918/3.573, allocations: 2.958 MB / 0.729 GB, free: 76.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007145/3.58, allocations: 0.736 MB / 0.7297 GB, free: 75.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03629/3.616, allocations: 10.58 MB / 0.74 GB, free: 71.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01231/3.629, allocations: 4.766 MB / 0.7447 GB, free: 69.58 MB / 410.7 MB Notification: Performance of SimCode: time 1.794e-06/3.629, allocations: 0 / 0.7447 GB, free: 69.58 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat