Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",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.9/1.9, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2272/2.127, allocations: 46.84 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/2.223, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3551/2.578, allocations: 108.8 MB / 402.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003374/2.578, allocations: 88.25 kB / 402.8 MB, free: 13.42 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.3627/2.941, allocations: 78.93 MB / 481.7 MB, free: 5.508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/2.941, allocations: 8 kB / 481.7 MB, free: 5.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005721/2.947, allocations: 0.6084 MB / 482.3 MB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01428/2.961, allocations: 3.124 MB / 485.5 MB, free: 1.707 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/2.961, allocations: 103.9 kB / 485.6 MB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/2.963, allocations: 180 kB / 485.7 MB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01282/2.975, allocations: 3.125 MB / 488.9 MB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/2.989, allocations: 3.647 MB / 492.5 MB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/2.989, allocations: 3.938 kB / 492.5 MB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004948/2.99, allocations: 4 kB / 492.5 MB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/2.99, allocations: 142.1 kB / 492.6 MB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1818/3.172, allocations: 13.28 MB / 0.4941 GB, free: 114.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003059/3.175, allocations: 1.119 MB / 0.4952 GB, free: 114.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00356/3.179, allocations: 1.319 MB / 0.4965 GB, free: 114.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009773/3.188, allocations: 3.202 MB / 0.4996 GB, free: 114.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/3.189, allocations: 48.59 kB / 0.4996 GB, free: 114.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=164): time 5.831e-06/3.189, allocations: 0 / 0.4996 GB, free: 114.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=168): time 0.0155/3.204, allocations: 4.905 MB / 0.5044 GB, free: 113.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/3.204, allocations: 96.3 kB / 0.5045 GB, free: 113.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/3.208, allocations: 1.41 MB / 0.5059 GB, free: 113 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003695/3.208, allocations: 25.7 kB / 0.5059 GB, free: 113 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007375/3.209, allocations: 1.154 MB / 0.507 GB, free: 112.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006786/3.21, allocations: 0.5451 MB / 0.5076 GB, free: 112.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/3.21, allocations: 0 / 0.5076 GB, free: 112.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/3.21, allocations: 380.4 kB / 0.5079 GB, free: 111.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/3.212, allocations: 0.8004 MB / 0.5087 GB, free: 111.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/3.215, allocations: 1.326 MB / 0.51 GB, free: 111.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003169/3.218, allocations: 1.05 MB / 0.511 GB, free: 111.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/3.218, allocations: 3.656 kB / 0.511 GB, free: 111.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.008411/3.227, allocations: 2.764 MB / 0.5137 GB, free: 111 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001378/3.228, allocations: 6.528 MB / 0.5201 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.694e-05/3.228, allocations: 17.41 kB / 0.5201 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002472/3.231, allocations: 0.5232 MB / 0.5206 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/3.234, allocations: 407 kB / 0.521 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/3.246, allocations: 6.68 MB / 0.5275 GB, free: 100.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003285/3.249, allocations: 52.62 kB / 0.5276 GB, free: 100.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005263/3.25, allocations: 82.3 kB / 0.5277 GB, free: 100.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/3.25, allocations: 6.875 kB / 0.5277 GB, free: 100.3 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007879/3.258, allocations: 2.533 MB / 0.5302 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.913e-05/3.258, allocations: 14.56 kB / 0.5302 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002147/3.26, allocations: 0.5211 MB / 0.5307 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/3.264, allocations: 403 kB / 0.5311 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/3.275, allocations: 6.666 MB / 0.5376 GB, free: 96.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003017/3.278, allocations: 44.28 kB / 0.5376 GB, free: 96.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002922/3.278, allocations: 77.38 kB / 0.5377 GB, free: 96.38 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.0006071/3.279, allocations: 162.5 kB / 0.5378 GB, free: 96.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005149/3.279, allocations: 203.8 kB / 0.538 GB, free: 96.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008116/3.288, allocations: 2.612 MB / 0.5406 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/3.288, allocations: 20 kB / 0.5406 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/3.288, allocations: 2.594 kB / 0.5406 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.668e-05/3.288, allocations: 10.36 kB / 0.5406 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/3.303, allocations: 5.399 MB / 0.5459 GB, free: 95.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/3.303, allocations: 0 / 0.5459 GB, free: 95.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00247/3.306, allocations: 218 kB / 0.5461 GB, free: 95.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00323/3.309, allocations: 0.6573 MB / 0.5467 GB, free: 95.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003245/3.31, allocations: 17.95 kB / 0.5468 GB, free: 95.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01738/3.327, allocations: 10.44 MB / 0.557 GB, free: 87.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/3.327, allocations: 7.281 kB / 0.557 GB, free: 87.31 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01065/3.338, allocations: 4.047 MB / 0.5609 GB, free: 85.31 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01366/3.351, allocations: 5.702 MB / 0.5665 GB, free: 82.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/3.353, allocations: 477.9 kB / 0.5669 GB, free: 82.06 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000587/3.354, allocations: 10.72 kB / 0.567 GB, free: 82.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/3.356, allocations: 52.8 kB / 0.567 GB, free: 82.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/3.357, allocations: 96.12 kB / 0.5671 GB, free: 82.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/3.357, allocations: 51.02 kB / 0.5671 GB, free: 82.03 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002636/3.359, allocations: 1.058 MB / 0.5682 GB, free: 81.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008592/3.368, allocations: 1.049 MB / 0.5692 GB, free: 81.52 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.001162/3.369, allocations: 429.4 kB / 0.5696 GB, free: 81.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01075/3.38, allocations: 4.223 MB / 0.5737 GB, free: 79.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.425e-06/3.38, allocations: 3.875 kB / 0.5737 GB, free: 79.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004872/3.385, allocations: 1.686 MB / 0.5754 GB, free: 78.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004961/3.39, allocations: 477.7 kB / 0.5758 GB, free: 78.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01941/3.409, allocations: 4.875 MB / 0.5806 GB, free: 76.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004451/3.414, allocations: 2.51 MB / 0.5831 GB, free: 74.39 MB / 394.7 MB Notification: Performance of SimCode: time 1.723e-06/3.414, allocations: 0 / 0.5831 GB, free: 74.39 MB / 394.7 MB