Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_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.583/1.583, allocations: 194.9 MB / 202.5 MB, free: 6.941 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2394/1.823, allocations: 46.85 MB / 249.3 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/1.946, allocations: 44.5 MB / 293.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3394/2.285, allocations: 106 MB / 399.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/2.286, allocations: 88.53 kB / 400 MB, free: 15.49 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.8236/3.109, allocations: 188.6 MB / 0.5748 GB, free: 22.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/3.109, allocations: 7.812 kB / 0.5748 GB, free: 22.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01607/3.125, allocations: 1.824 MB / 0.5766 GB, free: 21.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02486/3.15, allocations: 6.995 MB / 0.5834 GB, free: 17.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005182/3.151, allocations: 261.2 kB / 0.5836 GB, free: 17.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003191/3.154, allocations: 483.2 kB / 0.5841 GB, free: 17.92 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02846/3.182, allocations: 8.691 MB / 0.5926 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03504/3.218, allocations: 9.739 MB / 0.6021 GB, free: 9.969 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003811/3.218, allocations: 7.844 kB / 0.6021 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002601/3.221, allocations: 6.219 kB / 0.6021 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004693/3.221, allocations: 373.5 kB / 0.6025 GB, free: 9.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09762/3.319, allocations: 33.23 MB / 0.6349 GB, free: 1.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00732/3.326, allocations: 2.648 MB / 0.6375 GB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01038/3.336, allocations: 3.694 MB / 0.6411 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03365/3.37, allocations: 10.2 MB / 0.6511 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.938e-05/3.37, allocations: 81.62 kB / 0.6511 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of pre-optimization done (n=397): time 7.585e-06/3.37, allocations: 0 / 0.6511 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of matching and sorting (n=403): time 0.3823/3.753, allocations: 11.53 MB / 0.6624 GB, free: 56.11 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/3.753, allocations: 95.27 kB / 0.6625 GB, free: 56.04 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00789/3.761, allocations: 3.196 MB / 0.6656 GB, free: 55.8 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008494/3.762, allocations: 25.7 kB / 0.6656 GB, free: 55.77 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/3.764, allocations: 2.789 MB / 0.6684 GB, free: 54.26 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00182/3.766, allocations: 1.289 MB / 0.6696 GB, free: 53.4 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000421/3.766, allocations: 2.062 kB / 0.6696 GB, free: 53.4 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003107/3.766, allocations: 490.8 kB / 0.6701 GB, free: 53.08 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005104/3.771, allocations: 2.023 MB / 0.6721 GB, free: 53.07 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006254/3.778, allocations: 3.065 MB / 0.6751 GB, free: 51.89 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007719/3.785, allocations: 2.662 MB / 0.6777 GB, free: 51.84 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.597e-05/3.786, allocations: 9.281 kB / 0.6777 GB, free: 51.84 MB / 426.8 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.01914/3.805, allocations: 6.344 MB / 0.6839 GB, free: 51.32 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/3.805, allocations: 6.438 kB / 0.6839 GB, free: 51.32 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-05/3.805, allocations: 32 kB / 0.6839 GB, free: 51.32 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003348/3.808, allocations: 0.8045 MB / 0.6847 GB, free: 51.25 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007925/3.816, allocations: 0.9394 MB / 0.6856 GB, free: 51.25 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01901/3.835, allocations: 13.95 MB / 0.6992 GB, free: 42.57 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005922/3.841, allocations: 106.4 kB / 0.6993 GB, free: 42.57 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/3.842, allocations: 178 kB / 0.6995 GB, free: 42.57 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 500 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001008/3.843, allocations: 222.8 kB / 0.6997 GB, free: 42.44 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/3.845, allocations: 444.9 kB / 0.7001 GB, free: 42.21 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0192/3.864, allocations: 6.108 MB / 0.7061 GB, free: 41.73 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-05/3.864, allocations: 35.91 kB / 0.7061 GB, free: 41.73 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.381e-05/3.864, allocations: 22.75 kB / 0.7062 GB, free: 41.73 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.15e-05/3.864, allocations: 20.25 kB / 0.7062 GB, free: 41.73 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03714/3.901, allocations: 13.41 MB / 0.7193 GB, free: 36.92 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/3.901, allocations: 5.906 kB / 0.7193 GB, free: 36.92 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004764/3.906, allocations: 498 kB / 0.7197 GB, free: 36.91 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006185/3.912, allocations: 1.363 MB / 0.7211 GB, free: 36.48 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008249/3.913, allocations: 46.75 kB / 0.7211 GB, free: 36.47 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03581/3.949, allocations: 22.47 MB / 0.7431 GB, free: 19.97 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/3.949, allocations: 7.875 kB / 0.7431 GB, free: 19.97 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0232/3.972, allocations: 9.39 MB / 0.7522 GB, free: 15.61 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02966/4.002, allocations: 12.82 MB / 0.7648 GB, free: 9.539 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003941/4.006, allocations: 1 MB / 0.7657 GB, free: 8.914 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001685/4.008, allocations: 30.17 kB / 0.7658 GB, free: 8.902 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005105/4.013, allocations: 136.3 kB / 0.7659 GB, free: 8.902 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001092/4.014, allocations: 262.5 kB / 0.7661 GB, free: 8.859 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003977/4.014, allocations: 112.4 kB / 0.7663 GB, free: 8.832 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.006093/4.021, allocations: 2.38 MB / 0.7686 GB, free: 7.902 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.009495/4.03, allocations: 1.365 MB / 0.7699 GB, free: 7.855 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (275): * Single equations (assignments): 266 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001515/4.032, allocations: 427 kB / 0.7703 GB, free: 7.695 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01528/4.047, allocations: 5.917 MB / 0.7761 GB, free: 4.984 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/4.047, allocations: 2.812 kB / 0.7761 GB, free: 4.984 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01131/4.058, allocations: 3.976 MB / 0.78 GB, free: 2.91 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0077/4.066, allocations: 0.802 MB / 0.7808 GB, free: 2.273 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04365/4.11, allocations: 12.43 MB / 0.7929 GB, free: 7.117 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01385/4.124, allocations: 5.555 MB / 0.7983 GB, free: 2.906 MB / 442.8 MB Notification: Performance of SimCode: time 1.763e-06/4.124, allocations: 4 kB / 0.7983 GB, free: 2.902 MB / 442.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat