Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.873/1.873, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2565/2.129, allocations: 46.84 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/2.222, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3809/2.603, allocations: 123.7 MB / 417.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/2.603, allocations: 85.33 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.7479/3.351, allocations: 127.1 MB / 0.5321 GB, free: 54.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/3.351, allocations: 10.53 kB / 0.5321 GB, free: 54.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00935/3.361, allocations: 1.012 MB / 0.5331 GB, free: 53.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01898/3.38, allocations: 4.576 MB / 0.5375 GB, free: 53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003752/3.38, allocations: 171.4 kB / 0.5377 GB, free: 53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002204/3.382, allocations: 326.5 kB / 0.538 GB, free: 53 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01956/3.402, allocations: 5.152 MB / 0.543 GB, free: 52.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02335/3.425, allocations: 6.087 MB / 0.549 GB, free: 52.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002847/3.426, allocations: 9.938 kB / 0.549 GB, free: 52.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001299/3.427, allocations: 7.812 kB / 0.549 GB, free: 52.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002817/3.427, allocations: 250.6 kB / 0.5492 GB, free: 52.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06513/3.493, allocations: 21.52 MB / 0.5703 GB, free: 42.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006087/3.499, allocations: 1.812 MB / 0.572 GB, free: 41.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00704/3.506, allocations: 2.154 MB / 0.5741 GB, free: 41.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02359/3.529, allocations: 6.551 MB / 0.5805 GB, free: 37.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.637e-05/3.53, allocations: 64.34 kB / 0.5806 GB, free: 37.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=264): time 7.184e-06/3.53, allocations: 4 kB / 0.5806 GB, free: 37.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=291): time 0.03349/3.563, allocations: 9.129 MB / 0.5895 GB, free: 28.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/3.563, allocations: 81.7 kB / 0.5896 GB, free: 28.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005899/3.569, allocations: 2.21 MB / 0.5917 GB, free: 26.88 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006367/3.57, allocations: 25.7 kB / 0.5918 GB, free: 26.85 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/3.571, allocations: 1.961 MB / 0.5937 GB, free: 25.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001392/3.572, allocations: 0.9558 MB / 0.5946 GB, free: 24.26 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003775/3.573, allocations: 0 / 0.5946 GB, free: 24.26 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002755/3.573, allocations: 445.5 kB / 0.595 GB, free: 23.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004234/3.577, allocations: 1.446 MB / 0.5965 GB, free: 22.53 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004944/3.582, allocations: 2.415 MB / 0.5988 GB, free: 19.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006178/3.588, allocations: 1.939 MB / 0.6007 GB, free: 18.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.016e-05/3.589, allocations: 12 kB / 0.6007 GB, free: 18.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.01618/3.605, allocations: 4.858 MB / 0.6055 GB, free: 13.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/3.605, allocations: 4 kB / 0.6055 GB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-05/3.605, allocations: 35.91 kB / 0.6055 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003584/3.609, allocations: 0.7207 MB / 0.6062 GB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00775/3.616, allocations: 0.7952 MB / 0.607 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01659/3.633, allocations: 9.023 MB / 0.6158 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005457/3.638, allocations: 110.3 kB / 0.6159 GB, free: 3.559 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007396/3.639, allocations: 147.8 kB / 0.616 GB, free: 3.418 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.0008497/3.64, allocations: 211.5 kB / 0.6162 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/3.641, allocations: 323.2 kB / 0.6166 GB, free: 2.887 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01608/3.657, allocations: 4.453 MB / 0.6209 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.245e-05/3.657, allocations: 28 kB / 0.6209 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.061e-05/3.657, allocations: 11.91 kB / 0.6209 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.337e-05/3.657, allocations: 14.77 kB / 0.621 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03395/3.691, allocations: 9.274 MB / 0.63 GB, free: 7.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.382e-05/3.692, allocations: 4.5 kB / 0.63 GB, free: 7.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005486/3.697, allocations: 460.8 kB / 0.6305 GB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006044/3.703, allocations: 0.9433 MB / 0.6314 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006599/3.704, allocations: 31.41 kB / 0.6314 GB, free: 6.039 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03131/3.735, allocations: 14.82 MB / 0.6459 GB, free: 7.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/3.735, allocations: 7.672 kB / 0.6459 GB, free: 7.426 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02209/3.757, allocations: 6.846 MB / 0.6526 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1888/3.946, allocations: 9.373 MB / 0.6617 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003083/3.949, allocations: 0.7222 MB / 0.6624 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/3.951, allocations: 20.38 kB / 0.6625 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004383/3.955, allocations: 103.3 kB / 0.6626 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007787/3.956, allocations: 153.2 kB / 0.6627 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003741/3.956, allocations: 82.28 kB / 0.6628 GB, free: 127.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004544/3.961, allocations: 1.629 MB / 0.6644 GB, free: 127.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007453/3.968, allocations: 0.9968 MB / 0.6653 GB, free: 127.2 MB / 426.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.001506/3.97, allocations: 483.6 kB / 0.6658 GB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01232/3.982, allocations: 4.302 MB / 0.67 GB, free: 126.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/3.982, allocations: 3.594 kB / 0.67 GB, free: 126.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008774/3.991, allocations: 2.735 MB / 0.6727 GB, free: 125.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007275/3.998, allocations: 0.6464 MB / 0.6733 GB, free: 125.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02995/4.028, allocations: 8.428 MB / 0.6815 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008815/4.037, allocations: 3.78 MB / 0.6852 GB, free: 123.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.763e-06/4.037, allocations: 0 / 0.6852 GB, free: 123.1 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat