Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.932/1.932, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2425/2.174, allocations: 46.84 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09465/2.269, allocations: 44.5 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.41/2.679, allocations: 110.5 MB / 404.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/2.679, allocations: 87.14 kB / 404.5 MB, free: 11.38 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.9136/3.593, allocations: 173.7 MB / 0.5647 GB, free: 61.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/3.593, allocations: 7.875 kB / 0.5647 GB, free: 61.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01682/3.61, allocations: 1.611 MB / 0.5663 GB, free: 60.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02582/3.636, allocations: 5.921 MB / 0.5721 GB, free: 57.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006543/3.636, allocations: 235.9 kB / 0.5723 GB, free: 57.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003358/3.64, allocations: 432.9 kB / 0.5727 GB, free: 57.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03004/3.67, allocations: 7.215 MB / 0.5798 GB, free: 53.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03392/3.704, allocations: 8.382 MB / 0.588 GB, free: 45.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003599/3.704, allocations: 4 kB / 0.588 GB, free: 45.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002351/3.707, allocations: 11.91 kB / 0.588 GB, free: 45.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004018/3.707, allocations: 345.3 kB / 0.5883 GB, free: 45.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08808/3.795, allocations: 29.35 MB / 0.617 GB, free: 17.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006604/3.802, allocations: 2.322 MB / 0.6192 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009461/3.811, allocations: 3.186 MB / 0.6223 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0296/3.841, allocations: 8.71 MB / 0.6308 GB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.191e-05/3.841, allocations: 73.31 kB / 0.6309 GB, free: 3.617 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 8.235e-06/3.841, allocations: 0 / 0.6309 GB, free: 3.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=357): time 0.03696/3.878, allocations: 9.442 MB / 0.6401 GB, free: 10.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/3.878, allocations: 90.22 kB / 0.6402 GB, free: 9.957 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00826/3.886, allocations: 2.536 MB / 0.6427 GB, free: 7.422 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000746/3.887, allocations: 29.7 kB / 0.6427 GB, free: 7.387 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00275/3.89, allocations: 2.569 MB / 0.6452 GB, free: 4.781 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002181/3.892, allocations: 1.158 MB / 0.6464 GB, free: 3.605 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004487/3.893, allocations: 3.938 kB / 0.6464 GB, free: 3.602 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004608/3.893, allocations: 479 kB / 0.6468 GB, free: 3.125 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005829/3.899, allocations: 1.625 MB / 0.6484 GB, free: 1.492 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1776/4.077, allocations: 2.752 MB / 0.6511 GB, free: 103.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008132/4.085, allocations: 2.266 MB / 0.6533 GB, free: 103.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.334e-05/4.085, allocations: 10.66 kB / 0.6533 GB, free: 103.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01864/4.104, allocations: 5.216 MB / 0.6584 GB, free: 103.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/4.104, allocations: 6.469 kB / 0.6584 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-05/4.104, allocations: 40.12 kB / 0.6585 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/4.106, allocations: 394.1 kB / 0.6588 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009645/4.115, allocations: 0.9752 MB / 0.6598 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009694/4.125, allocations: 6.968 MB / 0.6666 GB, free: 98.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006399/4.132, allocations: 100.5 kB / 0.6667 GB, free: 98.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001038/4.133, allocations: 176.3 kB / 0.6669 GB, free: 98.62 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.001063/4.134, allocations: 224.8 kB / 0.6671 GB, free: 98.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001204/4.135, allocations: 374.3 kB / 0.6674 GB, free: 98.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01802/4.153, allocations: 4.866 MB / 0.6722 GB, free: 98.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.343e-05/4.153, allocations: 38.25 kB / 0.6722 GB, free: 98.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-05/4.153, allocations: 13.47 kB / 0.6722 GB, free: 98.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.147e-05/4.153, allocations: 14.72 kB / 0.6722 GB, free: 98.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0351/4.188, allocations: 11 MB / 0.683 GB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-05/4.188, allocations: 14.39 kB / 0.683 GB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006296/4.195, allocations: 0.5348 MB / 0.6835 GB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004789/4.2, allocations: 0.8712 MB / 0.6844 GB, free: 96.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007281/4.2, allocations: 41.58 kB / 0.6844 GB, free: 96.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02731/4.228, allocations: 15.33 MB / 0.6994 GB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/4.228, allocations: 7.062 kB / 0.6994 GB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02233/4.25, allocations: 7.579 MB / 0.7068 GB, free: 86.33 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02866/4.279, allocations: 10.36 MB / 0.7169 GB, free: 81.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003569/4.282, allocations: 0.8363 MB / 0.7177 GB, free: 80.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001602/4.284, allocations: 21.38 kB / 0.7178 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005297/4.289, allocations: 99.52 kB / 0.7178 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009729/4.29, allocations: 196.8 kB / 0.718 GB, free: 80.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004143/4.291, allocations: 103.5 kB / 0.7181 GB, free: 80.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005461/4.296, allocations: 1.863 MB / 0.72 GB, free: 79.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008894/4.305, allocations: 1.201 MB / 0.7211 GB, free: 79.62 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.001664/4.307, allocations: 0.507 MB / 0.7216 GB, free: 79.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01289/4.32, allocations: 4.633 MB / 0.7261 GB, free: 77.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/4.32, allocations: 0 / 0.7261 GB, free: 77.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008973/4.329, allocations: 2.953 MB / 0.729 GB, free: 75.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008172/4.337, allocations: 0.7216 MB / 0.7297 GB, free: 75.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04025/4.377, allocations: 10.58 MB / 0.7401 GB, free: 71.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01315/4.391, allocations: 4.769 MB / 0.7447 GB, free: 69.25 MB / 410.7 MB Notification: Performance of SimCode: time 2.315e-06/4.391, allocations: 0 / 0.7447 GB, free: 69.25 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat