Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.638/1.638, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2209/1.859, allocations: 46.83 MB / 249.3 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08881/1.947, allocations: 44.51 MB / 293.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/2.284, allocations: 118.8 MB / 412.7 MB, free: 3.668 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/2.284, allocations: 90.38 kB / 412.8 MB, free: 3.621 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.646/2.93, allocations: 118.8 MB / 0.5191 GB, free: 67.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/2.93, allocations: 14.78 kB / 0.5191 GB, free: 67.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008046/2.939, allocations: 0.9501 MB / 0.52 GB, free: 67.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01726/2.956, allocations: 4.38 MB / 0.5243 GB, free: 66.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/2.956, allocations: 169.4 kB / 0.5245 GB, free: 66.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002171/2.958, allocations: 303.6 kB / 0.5248 GB, free: 66.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01779/2.976, allocations: 4.988 MB / 0.5296 GB, free: 66.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02223/2.999, allocations: 5.849 MB / 0.5354 GB, free: 65.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003622/2.999, allocations: 7.875 kB / 0.5354 GB, free: 65.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001827/3.001, allocations: 3.844 kB / 0.5354 GB, free: 65.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002738/3.001, allocations: 241.2 kB / 0.5356 GB, free: 65.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0583/3.059, allocations: 20.16 MB / 0.5553 GB, free: 59.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004855/3.064, allocations: 1.722 MB / 0.557 GB, free: 58.81 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005439/3.07, allocations: 2.068 MB / 0.559 GB, free: 58.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02079/3.091, allocations: 6.257 MB / 0.5651 GB, free: 54.94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.142e-05/3.091, allocations: 61.88 kB / 0.5651 GB, free: 54.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=247): time 7.414e-06/3.091, allocations: 0 / 0.5651 GB, free: 54.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=271): time 0.03399/3.125, allocations: 8.7 MB / 0.5736 GB, free: 51.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/3.125, allocations: 79.77 kB / 0.5737 GB, free: 51.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00683/3.132, allocations: 2.042 MB / 0.5757 GB, free: 49.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006641/3.133, allocations: 29.7 kB / 0.5757 GB, free: 49.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/3.134, allocations: 1.861 MB / 0.5776 GB, free: 48.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001376/3.135, allocations: 0.8847 MB / 0.5784 GB, free: 47.33 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003992/3.136, allocations: 0 / 0.5784 GB, free: 47.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002942/3.136, allocations: 436.2 kB / 0.5788 GB, free: 46.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003887/3.14, allocations: 1.379 MB / 0.5802 GB, free: 45.67 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004709/3.145, allocations: 2.257 MB / 0.5824 GB, free: 43.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005446/3.15, allocations: 1.837 MB / 0.5842 GB, free: 41.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.806e-05/3.15, allocations: 11.89 kB / 0.5842 GB, free: 41.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01537/3.166, allocations: 4.614 MB / 0.5887 GB, free: 37.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/3.166, allocations: 4 kB / 0.5887 GB, free: 37.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.718e-05/3.166, allocations: 28 kB / 0.5887 GB, free: 37.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003233/3.169, allocations: 0.7203 MB / 0.5894 GB, free: 36.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006163/3.175, allocations: 0.7362 MB / 0.5902 GB, free: 36.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01414/3.19, allocations: 8.705 MB / 0.5987 GB, free: 27.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00487/3.195, allocations: 99.48 kB / 0.5988 GB, free: 27.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009062/3.196, allocations: 142.5 kB / 0.5989 GB, free: 27.63 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 376 * 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%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001075/3.197, allocations: 203.6 kB / 0.5991 GB, free: 27.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/3.198, allocations: 296.3 kB / 0.5994 GB, free: 27.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01497/3.213, allocations: 4.269 MB / 0.6035 GB, free: 23.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.283e-05/3.213, allocations: 24 kB / 0.6036 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.811e-05/3.213, allocations: 12 kB / 0.6036 GB, free: 23.4 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.136e-05/3.213, allocations: 10.59 kB / 0.6036 GB, free: 23.4 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02805/3.241, allocations: 8.772 MB / 0.6121 GB, free: 16.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-05/3.241, allocations: 4.031 kB / 0.6121 GB, free: 16.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004201/3.245, allocations: 426 kB / 0.6126 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004701/3.25, allocations: 0.9212 MB / 0.6135 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006379/3.251, allocations: 27.7 kB / 0.6135 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02225/3.273, allocations: 14.41 MB / 0.6276 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.151e-05/3.273, allocations: 7.938 kB / 0.6276 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02621/3.299, allocations: 6.797 MB / 0.6342 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02597/3.325, allocations: 8.857 MB / 0.6428 GB, free: 3.418 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003119/3.329, allocations: 0.6772 MB / 0.6435 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001598/3.33, allocations: 19.23 kB / 0.6435 GB, free: 2.777 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00424/3.335, allocations: 94.06 kB / 0.6436 GB, free: 2.711 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009368/3.336, allocations: 148.9 kB / 0.6438 GB, free: 2.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003976/3.336, allocations: 75.22 kB / 0.6438 GB, free: 2.555 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004747/3.341, allocations: 1.505 MB / 0.6453 GB, free: 1.195 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007292/3.348, allocations: 0.9372 MB / 0.6462 GB, free: 268 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 208 * 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,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1445/3.493, allocations: 431.6 kB / 0.6466 GB, free: 115.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01103/3.504, allocations: 4.113 MB / 0.6506 GB, free: 114.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.998e-06/3.504, allocations: 6.438 kB / 0.6506 GB, free: 114.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007469/3.511, allocations: 2.612 MB / 0.6532 GB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006083/3.517, allocations: 0.5643 MB / 0.6538 GB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02896/3.546, allocations: 8.06 MB / 0.6616 GB, free: 112.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009072/3.556, allocations: 3.643 MB / 0.6652 GB, free: 111.7 MB / 410.7 MB Notification: Performance of SimCode: time 3.086e-06/3.556, allocations: 0 / 0.6652 GB, free: 111.7 MB / 410.7 MB