Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_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.608/1.608, allocations: 171.2 MB / 178.1 MB, free: 8.281 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.178/1.786, allocations: 41.12 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/1.891, allocations: 38.77 MB / 258 MB, free: 4.344 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3106/2.202, allocations: 106.5 MB / 364.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/2.202, allocations: 81.64 kB / 364.6 MB, free: 14.2 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: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 1.124/3.327, allocations: 187.1 MB / 0.5388 GB, free: 44.82 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/3.327, allocations: 13.38 kB / 0.5388 GB, free: 44.82 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/3.337, allocations: 1.342 MB / 0.5401 GB, free: 44.35 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02128/3.358, allocations: 5.89 MB / 0.5459 GB, free: 43.84 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005374/3.359, allocations: 264.5 kB / 0.5461 GB, free: 43.84 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003372/3.362, allocations: 486.1 kB / 0.5466 GB, free: 43.83 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02694/3.389, allocations: 7.382 MB / 0.5538 GB, free: 43.79 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03602/3.425, allocations: 9.081 MB / 0.5627 GB, free: 42.93 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004199/3.426, allocations: 0 / 0.5627 GB, free: 42.93 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002563/3.428, allocations: 12.23 kB / 0.5627 GB, free: 42.93 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003827/3.429, allocations: 340.9 kB / 0.563 GB, free: 42.91 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08801/3.517, allocations: 31.71 MB / 0.594 GB, free: 36.32 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005015/3.522, allocations: 1.977 MB / 0.5959 GB, free: 36.3 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008265/3.53, allocations: 2.958 MB / 0.5988 GB, free: 36.27 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003555/3.53, allocations: 42.84 kB / 0.5988 GB, free: 36.27 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/3.53, allocations: 68.73 kB / 0.5989 GB, free: 36.22 MB / 346.8 MB Notification: Performance of pre-optimization done (n=297): time 6.001e-06/3.53, allocations: 0 / 0.5989 GB, free: 36.22 MB / 346.8 MB Notification: Performance of matching and sorting (n=355): time 0.04137/3.572, allocations: 11.19 MB / 0.6098 GB, free: 31.81 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/3.572, allocations: 89.81 kB / 0.6099 GB, free: 31.74 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009075/3.581, allocations: 3.103 MB / 0.6129 GB, free: 30.52 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008403/3.582, allocations: 27.92 kB / 0.613 GB, free: 30.48 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/3.584, allocations: 2.96 MB / 0.6158 GB, free: 28.37 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001903/3.586, allocations: 1.153 MB / 0.617 GB, free: 27.45 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000403/3.587, allocations: 0 / 0.617 GB, free: 27.45 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0003106/3.587, allocations: 481.8 kB / 0.6174 GB, free: 27.07 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004984/3.592, allocations: 1.7 MB / 0.6191 GB, free: 26.35 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006163/3.598, allocations: 2.955 MB / 0.622 GB, free: 24.04 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006218/3.605, allocations: 2.267 MB / 0.6242 GB, free: 23.14 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.191e-05/3.605, allocations: 15.22 kB / 0.6242 GB, free: 23.14 MB / 346.8 MB Notification: Performance of matching and sorting (n=543) (initialization): time 0.01881/3.624, allocations: 5.789 MB / 0.6299 GB, free: 21.02 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/3.624, allocations: 3.875 kB / 0.6299 GB, free: 21.02 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.721e-05/3.624, allocations: 41.97 kB / 0.6299 GB, free: 21.02 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004126/3.628, allocations: 0.9386 MB / 0.6308 GB, free: 20.71 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007619/3.636, allocations: 0.9541 MB / 0.6318 GB, free: 20.68 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02151/3.657, allocations: 11.58 MB / 0.6431 GB, free: 12.51 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006193/3.663, allocations: 140.1 kB / 0.6432 GB, free: 12.49 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/3.665, allocations: 186.6 kB / 0.6434 GB, free: 12.45 MB / 346.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 183 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (467): * Single equations (assignments): 459 * 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 {(4,93.8%) 21,(1,100.0%) 5,(4,93.8%) 21,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001045/3.666, allocations: 225.8 kB / 0.6436 GB, free: 12.3 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/3.667, allocations: 436.3 kB / 0.644 GB, free: 12.08 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/3.684, allocations: 5.039 MB / 0.6489 GB, free: 9.953 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.718e-05/3.685, allocations: 37.36 kB / 0.649 GB, free: 9.953 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-05/3.685, allocations: 15.94 kB / 0.649 GB, free: 9.953 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.688e-05/3.685, allocations: 18.58 kB / 0.649 GB, free: 9.949 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2086/3.893, allocations: 12.94 MB / 0.6616 GB, free: 37.54 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.54e-05/3.893, allocations: 8.781 kB / 0.6616 GB, free: 37.54 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006089/3.9, allocations: 0.5776 MB / 0.6622 GB, free: 37.54 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005019/3.905, allocations: 1.078 MB / 0.6632 GB, free: 37.5 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007358/3.905, allocations: 32.8 kB / 0.6633 GB, free: 37.5 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02708/3.933, allocations: 14.67 MB / 0.6776 GB, free: 31.21 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.599e-05/3.933, allocations: 20.16 kB / 0.6776 GB, free: 31.21 MB / 346.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02212/3.955, allocations: 9.046 MB / 0.6865 GB, free: 28.74 MB / 346.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02795/3.983, allocations: 12.01 MB / 0.6982 GB, free: 25.86 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003862/3.987, allocations: 0.9054 MB / 0.6991 GB, free: 25.77 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001614/3.988, allocations: 23.39 kB / 0.6991 GB, free: 25.77 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004821/3.993, allocations: 152.5 kB / 0.6992 GB, free: 25.77 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007933/3.994, allocations: 222.1 kB / 0.6995 GB, free: 25.76 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003497/3.994, allocations: 106.8 kB / 0.6996 GB, free: 25.76 MB / 346.8 MB Notification: Performance of sort global known variables: time 0.007487/4.002, allocations: 2.311 MB / 0.7018 GB, free: 25.58 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.009166/4.011, allocations: 1.294 MB / 0.7031 GB, free: 25.58 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.port_n.Phi.re,smee3.stator.port_n.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 (264): * Single equations (assignments): 257 * 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 {(4,93.8%) 19,(4,93.8%) 32,(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/4.013, allocations: 482.2 kB / 0.7035 GB, free: 25.49 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.01401/4.027, allocations: 5.184 MB / 0.7086 GB, free: 24.74 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/4.027, allocations: 7.328 kB / 0.7086 GB, free: 24.74 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01367/4.04, allocations: 3.427 MB / 0.712 GB, free: 24.13 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03675/4.077, allocations: 0.7436 MB / 0.7127 GB, free: 24.11 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04736/4.125, allocations: 11.87 MB / 0.7243 GB, free: 21.32 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01469/4.139, allocations: 5.391 MB / 0.7295 GB, free: 36.37 MB / 362.8 MB Notification: Performance of SimCode: time 2.374e-06/4.139, allocations: 1.844 kB / 0.7295 GB, free: 36.37 MB / 362.8 MB