Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",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.599/1.599, allocations: 194.9 MB / 202.5 MB, free: 6.941 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2087/1.807, allocations: 46.84 MB / 249.3 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08713/1.895, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.318/2.213, allocations: 108.8 MB / 402.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/2.213, allocations: 82.7 kB / 402.7 MB, free: 13.48 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: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.3034/2.516, allocations: 78.93 MB / 481.6 MB, free: 5.609 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/2.517, allocations: 12 kB / 481.7 MB, free: 5.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004921/2.521, allocations: 0.6006 MB / 482.3 MB, free: 4.992 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/2.534, allocations: 3.124 MB / 485.4 MB, free: 1.809 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/2.534, allocations: 107.9 kB / 485.5 MB, free: 1.703 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009953/2.535, allocations: 184 kB / 485.7 MB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01118/2.546, allocations: 3.121 MB / 488.8 MB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01214/2.559, allocations: 3.647 MB / 492.4 MB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/2.559, allocations: 11.92 kB / 492.4 MB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004119/2.559, allocations: 4 kB / 492.4 MB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/2.559, allocations: 138.1 kB / 492.6 MB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1668/2.726, allocations: 13.28 MB / 0.494 GB, free: 115 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002617/2.729, allocations: 1.112 MB / 0.4951 GB, free: 114.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002926/2.732, allocations: 1.323 MB / 0.4964 GB, free: 114.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008211/2.74, allocations: 3.198 MB / 0.4995 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/2.74, allocations: 49.84 kB / 0.4996 GB, free: 114.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=164): time 5.089e-06/2.74, allocations: 0 / 0.4996 GB, free: 114.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=168): time 0.01294/2.753, allocations: 4.905 MB / 0.5043 GB, free: 113.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/2.753, allocations: 107.8 kB / 0.5044 GB, free: 113.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/2.757, allocations: 1.405 MB / 0.5058 GB, free: 113.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003738/2.757, allocations: 32 kB / 0.5058 GB, free: 113.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006526/2.758, allocations: 1.148 MB / 0.507 GB, free: 112.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006325/2.758, allocations: 0.5389 MB / 0.5075 GB, free: 112.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/2.758, allocations: 0 / 0.5075 GB, free: 112.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/2.759, allocations: 381.6 kB / 0.5079 GB, free: 112.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/2.761, allocations: 0.8022 MB / 0.5086 GB, free: 112.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00218/2.763, allocations: 1.324 MB / 0.5099 GB, free: 111.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002697/2.765, allocations: 1.048 MB / 0.511 GB, free: 111.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/2.766, allocations: 7.625 kB / 0.511 GB, free: 111.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.007142/2.773, allocations: 2.767 MB / 0.5137 GB, free: 111.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001365/2.774, allocations: 6.532 MB / 0.52 GB, free: 104.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-05/2.774, allocations: 14.38 kB / 0.5201 GB, free: 104.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002078/2.776, allocations: 0.5219 MB / 0.5206 GB, free: 104.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/2.78, allocations: 409.4 kB / 0.521 GB, free: 104.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009388/2.789, allocations: 6.671 MB / 0.5275 GB, free: 100.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/2.792, allocations: 47.78 kB / 0.5275 GB, free: 100.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000257/2.792, allocations: 82.94 kB / 0.5276 GB, free: 100.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/2.792, allocations: 8.125 kB / 0.5276 GB, free: 100.6 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006581/2.799, allocations: 2.54 MB / 0.5301 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.015e-05/2.799, allocations: 16.88 kB / 0.5301 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001839/2.801, allocations: 0.5202 MB / 0.5306 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/2.804, allocations: 403.9 kB / 0.531 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009255/2.813, allocations: 6.66 MB / 0.5375 GB, free: 96.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/2.816, allocations: 50.61 kB / 0.5375 GB, free: 96.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002516/2.816, allocations: 75.38 kB / 0.5376 GB, free: 96.63 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005416/2.817, allocations: 164.1 kB / 0.5378 GB, free: 96.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004556/2.817, allocations: 209 kB / 0.538 GB, free: 96.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006721/2.824, allocations: 2.61 MB / 0.5405 GB, free: 96.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/2.824, allocations: 17.12 kB / 0.5405 GB, free: 96.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/2.824, allocations: 6.438 kB / 0.5405 GB, free: 96.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-05/2.824, allocations: 11.25 kB / 0.5406 GB, free: 96.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/2.837, allocations: 5.393 MB / 0.5458 GB, free: 95.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/2.837, allocations: 2.844 kB / 0.5458 GB, free: 95.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001974/2.839, allocations: 219.8 kB / 0.546 GB, free: 95.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002645/2.842, allocations: 0.6568 MB / 0.5467 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003075/2.842, allocations: 13.44 kB / 0.5467 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/2.857, allocations: 10.44 MB / 0.5569 GB, free: 87.47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/2.857, allocations: 7.594 kB / 0.5569 GB, free: 87.47 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008866/2.866, allocations: 4.046 MB / 0.5608 GB, free: 85.47 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01138/2.877, allocations: 5.705 MB / 0.5664 GB, free: 82.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/2.879, allocations: 476.1 kB / 0.5669 GB, free: 82.22 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004741/2.879, allocations: 7.844 kB / 0.5669 GB, free: 82.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/2.881, allocations: 50.44 kB / 0.5669 GB, free: 82.22 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/2.881, allocations: 98.2 kB / 0.567 GB, free: 82.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/2.882, allocations: 54.22 kB / 0.5671 GB, free: 82.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002313/2.884, allocations: 1.058 MB / 0.5681 GB, free: 81.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007456/2.891, allocations: 1.05 MB / 0.5691 GB, free: 81.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 112 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000896/2.892, allocations: 427.5 kB / 0.5695 GB, free: 81.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009025/2.901, allocations: 4.217 MB / 0.5737 GB, free: 79.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/2.901, allocations: 2.188 kB / 0.5737 GB, free: 79.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003973/2.905, allocations: 1.702 MB / 0.5753 GB, free: 78.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004265/2.91, allocations: 477.4 kB / 0.5758 GB, free: 78.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01672/2.926, allocations: 4.867 MB / 0.5805 GB, free: 76.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00461/2.931, allocations: 2.513 MB / 0.583 GB, free: 74.61 MB / 394.7 MB Notification: Performance of SimCode: time 1.963e-06/2.931, allocations: 0 / 0.583 GB, free: 74.61 MB / 394.7 MB