Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.715/1.715, allocations: 194.9 MB / 202.5 MB, free: 6.91 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2414/1.957, allocations: 46.84 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/2.044, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/2.383, allocations: 123.7 MB / 417.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/2.384, allocations: 90.19 kB / 417.7 MB, free: 14.74 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.6611/3.045, allocations: 127.1 MB / 0.532 GB, free: 69.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/3.045, allocations: 11.16 kB / 0.532 GB, free: 69.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008543/3.053, allocations: 1.016 MB / 0.533 GB, free: 68.92 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01811/3.071, allocations: 4.568 MB / 0.5375 GB, free: 68.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003721/3.072, allocations: 171.2 kB / 0.5376 GB, free: 68.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002208/3.074, allocations: 324.8 kB / 0.5379 GB, free: 68.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01854/3.093, allocations: 5.154 MB / 0.543 GB, free: 68.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0228/3.115, allocations: 6.087 MB / 0.5489 GB, free: 67.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003731/3.116, allocations: 14.81 kB / 0.5489 GB, free: 67.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001889/3.118, allocations: 7.688 kB / 0.5489 GB, free: 67.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000283/3.118, allocations: 251.8 kB / 0.5492 GB, free: 67.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06268/3.181, allocations: 21.52 MB / 0.5702 GB, free: 56.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005654/3.187, allocations: 1.809 MB / 0.572 GB, free: 56.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006815/3.193, allocations: 2.159 MB / 0.5741 GB, free: 55.46 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02275/3.216, allocations: 6.548 MB / 0.5805 GB, free: 50.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/3.216, allocations: 68.58 kB / 0.5805 GB, free: 49.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=264): time 5.781e-06/3.216, allocations: 0 / 0.5805 GB, free: 49.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=291): time 0.03288/3.249, allocations: 9.133 MB / 0.5895 GB, free: 41.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/3.249, allocations: 77.7 kB / 0.5895 GB, free: 41.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006181/3.256, allocations: 2.206 MB / 0.5917 GB, free: 39.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000679/3.256, allocations: 25.7 kB / 0.5917 GB, free: 39.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/3.258, allocations: 1.967 MB / 0.5936 GB, free: 37.92 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001362/3.259, allocations: 0.9538 MB / 0.5946 GB, free: 37.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003722/3.26, allocations: 0 / 0.5946 GB, free: 37.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002732/3.26, allocations: 450.9 kB / 0.595 GB, free: 36.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004141/3.264, allocations: 1.441 MB / 0.5964 GB, free: 35.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00497/3.269, allocations: 2.411 MB / 0.5988 GB, free: 32.65 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005783/3.275, allocations: 1.942 MB / 0.6006 GB, free: 30.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.51e-05/3.275, allocations: 8 kB / 0.6007 GB, free: 30.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.01574/3.291, allocations: 4.855 MB / 0.6054 GB, free: 26.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/3.291, allocations: 4 kB / 0.6054 GB, free: 26.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-05/3.291, allocations: 42.75 kB / 0.6054 GB, free: 26.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003265/3.294, allocations: 0.7198 MB / 0.6061 GB, free: 25.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006694/3.301, allocations: 0.8022 MB / 0.6069 GB, free: 25.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01468/3.316, allocations: 9.02 MB / 0.6157 GB, free: 16.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005084/3.321, allocations: 106.4 kB / 0.6158 GB, free: 16.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009402/3.322, allocations: 147.8 kB / 0.616 GB, free: 16.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (415): * Single equations (assignments): 409 * 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 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009796/3.323, allocations: 211.5 kB / 0.6162 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/3.324, allocations: 327.3 kB / 0.6165 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01583/3.34, allocations: 4.444 MB / 0.6208 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.576e-05/3.34, allocations: 28.52 kB / 0.6209 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.622e-05/3.34, allocations: 11.91 kB / 0.6209 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.046e-05/3.34, allocations: 25.34 kB / 0.6209 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0299/3.37, allocations: 9.267 MB / 0.6299 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.261e-05/3.37, allocations: 4 kB / 0.6299 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004537/3.375, allocations: 463.9 kB / 0.6304 GB, free: 3.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004751/3.379, allocations: 0.9394 MB / 0.6313 GB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007113/3.38, allocations: 31.97 kB / 0.6313 GB, free: 2.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02731/3.407, allocations: 14.82 MB / 0.6458 GB, free: 2.703 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/3.407, allocations: 4 kB / 0.6458 GB, free: 2.699 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1682/3.576, allocations: 6.85 MB / 0.6525 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02374/3.599, allocations: 9.373 MB / 0.6617 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002992/3.603, allocations: 0.7217 MB / 0.6624 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001603/3.604, allocations: 19.84 kB / 0.6624 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004414/3.609, allocations: 95.42 kB / 0.6625 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008912/3.61, allocations: 161.6 kB / 0.6626 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003614/3.61, allocations: 82.97 kB / 0.6627 GB, free: 110.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004895/3.615, allocations: 1.624 MB / 0.6643 GB, free: 110.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007485/3.622, allocations: 0.9993 MB / 0.6653 GB, free: 110.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 225 * 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 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001578/3.624, allocations: 484.1 kB / 0.6657 GB, free: 110.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/3.636, allocations: 4.297 MB / 0.6699 GB, free: 110 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/3.636, allocations: 6.312 kB / 0.6699 GB, free: 110 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007992/3.644, allocations: 2.725 MB / 0.6726 GB, free: 109.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006749/3.651, allocations: 0.6535 MB / 0.6732 GB, free: 109.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02976/3.68, allocations: 8.434 MB / 0.6815 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009332/3.69, allocations: 3.772 MB / 0.6852 GB, free: 106.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.914e-06/3.69, allocations: 0 / 0.6852 GB, free: 106.6 MB / 410.7 MB