Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.784/1.784, allocations: 194.9 MB / 202.5 MB, free: 6.828 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2203/2.005, allocations: 46.83 MB / 249.3 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0876/2.092, allocations: 44.5 MB / 293.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3129/2.405, allocations: 107.1 MB / 401 MB, free: 14.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003024/2.406, allocations: 81.73 kB / 401 MB, free: 14.74 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.7462/3.152, allocations: 163.7 MB / 0.5515 GB, free: 60.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/3.152, allocations: 13.27 kB / 0.5515 GB, free: 60.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/3.165, allocations: 1.524 MB / 0.553 GB, free: 59.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/3.186, allocations: 5.71 MB / 0.5586 GB, free: 58.92 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/3.186, allocations: 226.6 kB / 0.5588 GB, free: 58.92 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002657/3.189, allocations: 416.1 kB / 0.5592 GB, free: 58.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02362/3.213, allocations: 6.996 MB / 0.566 GB, free: 56.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03108/3.244, allocations: 8.098 MB / 0.5739 GB, free: 53.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003132/3.244, allocations: 10.41 kB / 0.5739 GB, free: 53.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002034/3.246, allocations: 15.58 kB / 0.5739 GB, free: 53.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004573/3.247, allocations: 333.4 kB / 0.5743 GB, free: 53.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07569/3.322, allocations: 27.62 MB / 0.6012 GB, free: 31.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005285/3.328, allocations: 2.144 MB / 0.6033 GB, free: 29.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007817/3.336, allocations: 2.999 MB / 0.6063 GB, free: 26.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02487/3.36, allocations: 8.255 MB / 0.6143 GB, free: 19.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.28e-05/3.361, allocations: 77.03 kB / 0.6144 GB, free: 19.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=323): time 7.104e-06/3.361, allocations: 0 / 0.6144 GB, free: 19.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=329): time 0.0284/3.389, allocations: 8.882 MB / 0.6231 GB, free: 10.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/3.389, allocations: 86 kB / 0.6231 GB, free: 10.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005886/3.395, allocations: 2.365 MB / 0.6255 GB, free: 8.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006853/3.396, allocations: 29.64 kB / 0.6255 GB, free: 7.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/3.397, allocations: 2.463 MB / 0.6279 GB, free: 5.496 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001427/3.399, allocations: 1.078 MB / 0.6289 GB, free: 4.402 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003632/3.399, allocations: 0 / 0.6289 GB, free: 4.402 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002766/3.399, allocations: 458.4 kB / 0.6294 GB, free: 3.949 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004093/3.404, allocations: 1.538 MB / 0.6309 GB, free: 2.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005226/3.409, allocations: 2.562 MB / 0.6334 GB, free: 15.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007205/3.416, allocations: 2.126 MB / 0.6355 GB, free: 13.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.258e-05/3.416, allocations: 11.19 kB / 0.6355 GB, free: 13.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=500) (initialization): time 0.01663/3.433, allocations: 4.917 MB / 0.6403 GB, free: 8.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/3.433, allocations: 4 kB / 0.6403 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.671e-05/3.433, allocations: 36.06 kB / 0.6403 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/3.435, allocations: 392.4 kB / 0.6407 GB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007747/3.443, allocations: 0.901 MB / 0.6416 GB, free: 6.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1606/3.603, allocations: 6.948 MB / 0.6483 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005029/3.608, allocations: 93.03 kB / 0.6484 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009295/3.609, allocations: 164 kB / 0.6486 GB, free: 103.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (475): * Single equations (assignments): 469 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009182/3.61, allocations: 215.5 kB / 0.6488 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/3.611, allocations: 346.4 kB / 0.6491 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/3.627, allocations: 4.583 MB / 0.6536 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.686e-05/3.627, allocations: 32.72 kB / 0.6536 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.689e-05/3.627, allocations: 16.45 kB / 0.6537 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-05/3.627, allocations: 17.25 kB / 0.6537 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02964/3.656, allocations: 10.36 MB / 0.6638 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.509e-05/3.657, allocations: 3.625 kB / 0.6638 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004865/3.661, allocations: 498.6 kB / 0.6643 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003995/3.665, allocations: 0.8481 MB / 0.6651 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006746/3.666, allocations: 39.5 kB / 0.6651 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02284/3.689, allocations: 15.07 MB / 0.6798 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/3.689, allocations: 3.438 kB / 0.6798 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01824/3.707, allocations: 7.029 MB / 0.6867 GB, free: 91.57 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02341/3.731, allocations: 9.657 MB / 0.6961 GB, free: 90.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003001/3.734, allocations: 0.774 MB / 0.6969 GB, free: 89.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/3.735, allocations: 17.69 kB / 0.6969 GB, free: 89.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004363/3.74, allocations: 101 kB / 0.697 GB, free: 89.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008464/3.741, allocations: 183.5 kB / 0.6972 GB, free: 89.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000335/3.741, allocations: 89.56 kB / 0.6973 GB, free: 89.85 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004685/3.746, allocations: 1.748 MB / 0.699 GB, free: 89.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00768/3.753, allocations: 1.132 MB / 0.7001 GB, free: 89.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (262): * Single equations (assignments): 255 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001408/3.755, allocations: 460.7 kB / 0.7005 GB, free: 89.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01084/3.766, allocations: 4.38 MB / 0.7048 GB, free: 87.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/3.766, allocations: 0 / 0.7048 GB, free: 87.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00749/3.773, allocations: 2.825 MB / 0.7076 GB, free: 86.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00636/3.78, allocations: 0.6413 MB / 0.7082 GB, free: 85.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03283/3.813, allocations: 10.22 MB / 0.7182 GB, free: 82.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0102/3.823, allocations: 4.648 MB / 0.7227 GB, free: 80.44 MB / 410.7 MB Notification: Performance of SimCode: time 2.104e-06/3.823, allocations: 0 / 0.7227 GB, free: 80.44 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat