Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_1_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.733/1.733, allocations: 171.2 MB / 178.1 MB, free: 8.297 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2196/1.953, allocations: 41.11 MB / 219.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/2.05, allocations: 38.76 MB / 258 MB, free: 4.375 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3797/2.429, allocations: 98.92 MB / 356.9 MB, free: 5.668 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/2.43, allocations: 84.02 kB / 357 MB, free: 5.625 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2059 * Number of variables: 2059 Notification: Performance of Generate backend data structure: time 0.8959/3.326, allocations: 181.2 MB / 0.5256 GB, free: 10.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/3.326, allocations: 15.94 kB / 0.5256 GB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/3.336, allocations: 1.282 MB / 0.5269 GB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02269/3.359, allocations: 5.848 MB / 0.5326 GB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005908/3.359, allocations: 252 kB / 0.5328 GB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00345/3.363, allocations: 467.8 kB / 0.5333 GB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2114/3.574, allocations: 7.914 MB / 0.541 GB, free: 54.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03823/3.612, allocations: 9.295 MB / 0.5501 GB, free: 54.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005068/3.613, allocations: 12.41 kB / 0.5501 GB, free: 54.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003066/3.616, allocations: 11.06 kB / 0.5501 GB, free: 54.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004056/3.617, allocations: 347.3 kB / 0.5504 GB, free: 54.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09765/3.714, allocations: 31.43 MB / 0.5811 GB, free: 48.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00778/3.722, allocations: 2.41 MB / 0.5835 GB, free: 48.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01435/3.736, allocations: 3.723 MB / 0.5871 GB, free: 48.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004083/3.737, allocations: 40.33 kB / 0.5871 GB, free: 48.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.244e-05/3.737, allocations: 73.36 kB / 0.5872 GB, free: 48.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=351): time 6.152e-06/3.737, allocations: 0 / 0.5872 GB, free: 48.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=415): time 0.05799/3.795, allocations: 13.8 MB / 0.6007 GB, free: 43.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/3.795, allocations: 98.95 kB / 0.6008 GB, free: 43.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009657/3.805, allocations: 3.121 MB / 0.6038 GB, free: 42.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001127/3.806, allocations: 29.11 kB / 0.6039 GB, free: 42.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002463/3.809, allocations: 2.699 MB / 0.6065 GB, free: 40.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002279/3.811, allocations: 1.325 MB / 0.6078 GB, free: 39.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000451/3.811, allocations: 0 / 0.6078 GB, free: 39.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003781/3.812, allocations: 478.5 kB / 0.6083 GB, free: 39.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006592/3.818, allocations: 2.089 MB / 0.6103 GB, free: 38.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007173/3.826, allocations: 3.007 MB / 0.6132 GB, free: 36.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007616/3.833, allocations: 2.649 MB / 0.6158 GB, free: 35.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.668e-05/3.833, allocations: 11.34 kB / 0.6158 GB, free: 35.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=554) (initialization): time 0.02312/3.856, allocations: 6.871 MB / 0.6225 GB, free: 32.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/3.857, allocations: 8.219 kB / 0.6225 GB, free: 32.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-05/3.857, allocations: 26.53 kB / 0.6226 GB, free: 32.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006482/3.863, allocations: 1.508 MB / 0.624 GB, free: 32.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007348/3.871, allocations: 0.8172 MB / 0.6248 GB, free: 32.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03824/3.909, allocations: 19.1 MB / 0.6435 GB, free: 19.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006476/3.915, allocations: 85.58 kB / 0.6436 GB, free: 19.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/3.917, allocations: 161.1 kB / 0.6437 GB, free: 19.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 120 * 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 (429): * Single equations (assignments): 421 * 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: 6 * 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: 6 {(4,100.0%) 32,(1,100.0%) 5,(1,100.0%) 1,(6,77.8%) 48,(1,100.0%) 1,(4,56.2%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001262/3.918, allocations: 210.6 kB / 0.6439 GB, free: 19.06 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001585/3.92, allocations: 438.3 kB / 0.6443 GB, free: 18.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02548/3.945, allocations: 6.865 MB / 0.6511 GB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001471/3.945, allocations: 40 kB / 0.6511 GB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001449/3.946, allocations: 26.95 kB / 0.6511 GB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001678/3.946, allocations: 21.14 kB / 0.6511 GB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05648/4.002, allocations: 15.71 MB / 0.6665 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.99e-05/4.002, allocations: 11.75 kB / 0.6665 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006427/4.009, allocations: 495.1 kB / 0.667 GB, free: 1.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1823/4.191, allocations: 1.842 MB / 0.6688 GB, free: 48.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009625/4.192, allocations: 41.22 kB / 0.6688 GB, free: 48.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04769/4.24, allocations: 26.13 MB / 0.6943 GB, free: 37.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.656e-05/4.24, allocations: 19.33 kB / 0.6943 GB, free: 37.05 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03024/4.27, allocations: 11.21 MB / 0.7053 GB, free: 34.84 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03556/4.306, allocations: 14.89 MB / 0.7198 GB, free: 32.24 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004398/4.31, allocations: 1.041 MB / 0.7208 GB, free: 32.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002171/4.313, allocations: 34.25 kB / 0.7209 GB, free: 32.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005674/4.318, allocations: 122.4 kB / 0.721 GB, free: 32.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00142/4.32, allocations: 265.2 kB / 0.7212 GB, free: 32.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005079/4.32, allocations: 119.3 kB / 0.7214 GB, free: 32.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.006597/4.327, allocations: 2.343 MB / 0.7236 GB, free: 32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01093/4.338, allocations: 1.37 MB / 0.725 GB, free: 32 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcM.rotorCage.strayInductor.inductor[4].i,aimcM.rotorCage.strayInductor.inductor[5].i,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.port_n.Phi.re,aimc3.stator.port_n.Phi.im,aimc3.stator.strayReluctance.Phi.re,aimc3.stator.strayReluctance.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 (261): * Single equations (assignments): 252 * 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 {(6,77.8%) 42,(6,72.2%) 45,(1,100.0%) 1,(1,100.0%) 8,(4,100.0%) 28,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/4.34, allocations: 409.3 kB / 0.7254 GB, free: 31.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01782/4.358, allocations: 6.364 MB / 0.7316 GB, free: 31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/4.358, allocations: 0 / 0.7316 GB, free: 31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01379/4.371, allocations: 4.659 MB / 0.7361 GB, free: 30.03 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008655/4.38, allocations: 0.8256 MB / 0.7369 GB, free: 30.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05553/4.436, allocations: 13.07 MB / 0.7497 GB, free: 25.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01643/4.452, allocations: 5.617 MB / 0.7552 GB, free: 23.51 MB / 346.7 MB Notification: Performance of SimCode: time 1.613e-06/4.452, allocations: 4 kB / 0.7552 GB, free: 23.51 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat