Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",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.97/1.97, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2722/2.243, allocations: 46.84 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/2.343, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3774/2.72, allocations: 116.3 MB / 410.3 MB, free: 6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/2.721, allocations: 79.14 kB / 410.3 MB, free: 5.961 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.7148/3.435, allocations: 121.1 MB / 0.519 GB, free: 67.56 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/3.435, allocations: 11.78 kB / 0.519 GB, free: 67.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009266/3.445, allocations: 1.004 MB / 0.52 GB, free: 67.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/3.463, allocations: 4.604 MB / 0.5245 GB, free: 66.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/3.464, allocations: 166.6 kB / 0.5246 GB, free: 66.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001976/3.466, allocations: 314.5 kB / 0.5249 GB, free: 66.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01928/3.485, allocations: 5.239 MB / 0.53 GB, free: 66.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02198/3.507, allocations: 6.064 MB / 0.536 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002546/3.507, allocations: 7.75 kB / 0.536 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001051/3.508, allocations: 3.938 kB / 0.536 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002664/3.509, allocations: 236.2 kB / 0.5362 GB, free: 65.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06144/3.57, allocations: 20.58 MB / 0.5563 GB, free: 58.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00485/3.575, allocations: 1.734 MB / 0.558 GB, free: 58.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006503/3.582, allocations: 2.268 MB / 0.5602 GB, free: 57.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01654/3.598, allocations: 5.205 MB / 0.5653 GB, free: 54.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/3.598, allocations: 63.41 kB / 0.5653 GB, free: 54.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=258): time 8.055e-06/3.598, allocations: 0 / 0.5653 GB, free: 54.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=277): time 0.03329/3.632, allocations: 8.745 MB / 0.5739 GB, free: 50.81 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/3.632, allocations: 81.03 kB / 0.574 GB, free: 50.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006315/3.638, allocations: 2.142 MB / 0.5761 GB, free: 49.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006377/3.639, allocations: 29.7 kB / 0.5761 GB, free: 49.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/3.64, allocations: 1.828 MB / 0.5779 GB, free: 47.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/3.641, allocations: 0.8999 MB / 0.5787 GB, free: 46.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003443/3.642, allocations: 0 / 0.5787 GB, free: 46.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002772/3.642, allocations: 430.7 kB / 0.5792 GB, free: 46.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004366/3.646, allocations: 1.439 MB / 0.5806 GB, free: 45.19 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004848/3.651, allocations: 2.188 MB / 0.5827 GB, free: 42.87 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005742/3.657, allocations: 1.867 MB / 0.5845 GB, free: 41.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.273e-05/3.657, allocations: 8 kB / 0.5845 GB, free: 41.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=403) (initialization): time 0.0153/3.672, allocations: 4.697 MB / 0.5891 GB, free: 37.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/3.672, allocations: 12.12 kB / 0.5891 GB, free: 37.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.974e-05/3.672, allocations: 20 kB / 0.5891 GB, free: 37.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003683/3.676, allocations: 0.7599 MB / 0.5899 GB, free: 36.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006843/3.683, allocations: 0.691 MB / 0.5906 GB, free: 35.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01757/3.701, allocations: 12.52 MB / 0.6028 GB, free: 23.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005018/3.706, allocations: 83.7 kB / 0.6029 GB, free: 23.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000693/3.706, allocations: 127.6 kB / 0.603 GB, free: 23.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (360): * Single equations (assignments): 350 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008326/3.707, allocations: 197.6 kB / 0.6032 GB, free: 22.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/3.708, allocations: 300.2 kB / 0.6035 GB, free: 22.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/3.723, allocations: 4.395 MB / 0.6078 GB, free: 18.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-05/3.723, allocations: 28 kB / 0.6078 GB, free: 18.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.814e-05/3.723, allocations: 12 kB / 0.6078 GB, free: 18.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-05/3.723, allocations: 15.47 kB / 0.6078 GB, free: 18.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02928/3.753, allocations: 9.184 MB / 0.6168 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.34e-05/3.753, allocations: 8.406 kB / 0.6168 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004957/3.758, allocations: 435.8 kB / 0.6172 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0052/3.763, allocations: 0.9173 MB / 0.6181 GB, free: 9.945 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005707/3.764, allocations: 31.59 kB / 0.6181 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02578/3.789, allocations: 15.46 MB / 0.6332 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/3.789, allocations: 4 kB / 0.6332 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02129/3.811, allocations: 6.83 MB / 0.6399 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1846/3.995, allocations: 9.42 MB / 0.6491 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003107/3.998, allocations: 0.7128 MB / 0.6498 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001319/4, allocations: 23.45 kB / 0.6498 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004168/4.004, allocations: 90.41 kB / 0.6499 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006731/4.005, allocations: 167.7 kB / 0.6501 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/4.005, allocations: 75.84 kB / 0.6501 GB, free: 109.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004364/4.009, allocations: 1.595 MB / 0.6517 GB, free: 109.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007395/4.017, allocations: 0.9387 MB / 0.6526 GB, free: 109.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(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.001333/4.018, allocations: 409.3 kB / 0.653 GB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01208/4.03, allocations: 4.611 MB / 0.6575 GB, free: 108.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/4.03, allocations: 0 / 0.6575 GB, free: 108.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008309/4.039, allocations: 2.933 MB / 0.6604 GB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006709/4.046, allocations: 0.6152 MB / 0.661 GB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0298/4.075, allocations: 8.498 MB / 0.6693 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008882/4.084, allocations: 3.788 MB / 0.673 GB, free: 104.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.734e-06/4.084, allocations: 0 / 0.673 GB, free: 104.7 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat