Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_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.592/1.592, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.213/1.805, allocations: 46.83 MB / 249.4 MB, free: 5.387 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/1.891, allocations: 44.5 MB / 293.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3254/2.216, allocations: 116.1 MB / 410 MB, free: 6.336 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/2.217, allocations: 85.33 kB / 410.1 MB, free: 6.293 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.8512/3.068, allocations: 198.6 MB / 0.5944 GB, free: 42.34 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/3.068, allocations: 11.94 kB / 0.5945 GB, free: 42.33 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01685/3.085, allocations: 1.929 MB / 0.5963 GB, free: 40.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02614/3.111, allocations: 7.097 MB / 0.6033 GB, free: 33.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005292/3.112, allocations: 280 kB / 0.6035 GB, free: 33.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00317/3.115, allocations: 0.4998 MB / 0.604 GB, free: 32.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02791/3.143, allocations: 8.329 MB / 0.6122 GB, free: 24.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03492/3.178, allocations: 9.747 MB / 0.6217 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003884/3.178, allocations: 7.938 kB / 0.6217 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002597/3.181, allocations: 11.91 kB / 0.6217 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003501/3.181, allocations: 381.5 kB / 0.6221 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3769/3.558, allocations: 34.55 MB / 0.6558 GB, free: 68.92 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006249/3.564, allocations: 2.469 MB / 0.6582 GB, free: 68.9 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008799/3.573, allocations: 3.428 MB / 0.6616 GB, free: 68.86 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0297/3.603, allocations: 10.03 MB / 0.6714 GB, free: 67.06 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.94e-05/3.603, allocations: 69.83 kB / 0.6714 GB, free: 67.02 MB / 394.8 MB Notification: Performance of pre-optimization done (n=366): time 7.154e-06/3.603, allocations: 0 / 0.6714 GB, free: 67.02 MB / 394.8 MB Notification: Performance of matching and sorting (n=420): time 0.04572/3.649, allocations: 12.79 MB / 0.6839 GB, free: 65.04 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/3.649, allocations: 93.78 kB / 0.684 GB, free: 64.98 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008244/3.657, allocations: 3.182 MB / 0.6871 GB, free: 64.68 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007823/3.658, allocations: 25.7 kB / 0.6871 GB, free: 64.65 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002014/3.66, allocations: 3.127 MB / 0.6902 GB, free: 62.86 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001897/3.662, allocations: 1.359 MB / 0.6915 GB, free: 61.95 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004521/3.662, allocations: 0 / 0.6915 GB, free: 61.95 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0003295/3.663, allocations: 0.4942 MB / 0.692 GB, free: 61.64 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005179/3.668, allocations: 1.952 MB / 0.6939 GB, free: 61.62 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006529/3.674, allocations: 3.392 MB / 0.6972 GB, free: 59.64 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007987/3.683, allocations: 2.684 MB / 0.6998 GB, free: 58.6 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.325e-05/3.683, allocations: 12.62 kB / 0.6999 GB, free: 58.6 MB / 394.8 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.02001/3.703, allocations: 6.449 MB / 0.7062 GB, free: 56.28 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/3.703, allocations: 3.781 kB / 0.7062 GB, free: 56.28 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/3.703, allocations: 45.09 kB / 0.7062 GB, free: 56.28 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003347/3.706, allocations: 0.7239 MB / 0.7069 GB, free: 56.04 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009399/3.716, allocations: 1.173 MB / 0.7081 GB, free: 56 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/3.73, allocations: 9.43 MB / 0.7173 GB, free: 48.78 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006905/3.737, allocations: 158 kB / 0.7174 GB, free: 48.77 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/3.739, allocations: 222.3 kB / 0.7176 GB, free: 48.72 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (591): * Single equations (assignments): 583 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001073/3.74, allocations: 244.5 kB / 0.7179 GB, free: 48.57 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001471/3.741, allocations: 468 kB / 0.7183 GB, free: 48.34 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/3.759, allocations: 5.644 MB / 0.7238 GB, free: 46.02 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.541e-05/3.759, allocations: 40.59 kB / 0.7239 GB, free: 46.02 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.029e-05/3.759, allocations: 15.16 kB / 0.7239 GB, free: 46.01 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.768e-05/3.759, allocations: 20.02 kB / 0.7239 GB, free: 46.01 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03567/3.795, allocations: 12.9 MB / 0.7365 GB, free: 40.17 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.795e-05/3.795, allocations: 6.156 kB / 0.7365 GB, free: 40.17 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006785/3.802, allocations: 0.7272 MB / 0.7372 GB, free: 40.14 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004065/3.806, allocations: 0.8872 MB / 0.7381 GB, free: 39.85 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007876/3.807, allocations: 46.88 kB / 0.7381 GB, free: 39.84 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02198/3.829, allocations: 13.09 MB / 0.7509 GB, free: 30.14 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/3.829, allocations: 9.281 kB / 0.7509 GB, free: 30.14 MB / 394.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02269/3.852, allocations: 9.034 MB / 0.7597 GB, free: 23 MB / 394.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02852/3.88, allocations: 12.36 MB / 0.7718 GB, free: 11.41 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003826/3.884, allocations: 0.994 MB / 0.7728 GB, free: 10.5 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/3.886, allocations: 19.05 kB / 0.7728 GB, free: 10.48 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005632/3.892, allocations: 157.2 kB / 0.7729 GB, free: 10.37 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001107/3.893, allocations: 245.5 kB / 0.7732 GB, free: 10.22 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004075/3.893, allocations: 110.7 kB / 0.7733 GB, free: 10.12 MB / 394.8 MB Notification: Performance of sort global known variables: time 0.00596/3.899, allocations: 2.345 MB / 0.7756 GB, free: 8.016 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.009484/3.909, allocations: 1.415 MB / 0.7769 GB, free: 6.613 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (343): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/3.91, allocations: 0.5081 MB / 0.7774 GB, free: 6.238 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01368/3.924, allocations: 5.65 MB / 0.783 GB, free: 0.9922 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/3.924, allocations: 8.125 kB / 0.783 GB, free: 0.9844 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.1735/4.098, allocations: 3.68 MB / 0.7866 GB, free: 73.27 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007269/4.105, allocations: 0.7231 MB / 0.7873 GB, free: 73.25 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0417/4.147, allocations: 12.35 MB / 0.7993 GB, free: 70.74 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01327/4.16, allocations: 5.536 MB / 0.8047 GB, free: 69.89 MB / 394.8 MB Notification: Performance of SimCode: time 1.573e-06/4.16, allocations: 3.5 kB / 0.8047 GB, free: 69.89 MB / 394.8 MB