Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.817/1.817, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2605/2.078, allocations: 46.83 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/2.172, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3531/2.526, allocations: 107.1 MB / 401 MB, free: 15.08 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/2.526, allocations: 86.8 kB / 401.1 MB, free: 15.05 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.8655/3.391, allocations: 163.7 MB / 0.5516 GB, free: 60.47 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/3.392, allocations: 10.34 kB / 0.5516 GB, free: 60.47 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01547/3.407, allocations: 1.519 MB / 0.5531 GB, free: 60.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02303/3.43, allocations: 5.711 MB / 0.5586 GB, free: 59.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004854/3.431, allocations: 227.2 kB / 0.5588 GB, free: 59.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00282/3.433, allocations: 415.2 kB / 0.5592 GB, free: 59.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0268/3.46, allocations: 6.997 MB / 0.5661 GB, free: 56.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0345/3.495, allocations: 8.108 MB / 0.574 GB, free: 53.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003711/3.495, allocations: 6.938 kB / 0.574 GB, free: 53.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002304/3.498, allocations: 4.438 kB / 0.574 GB, free: 53.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005925/3.498, allocations: 323.4 kB / 0.5743 GB, free: 53.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08481/3.583, allocations: 27.63 MB / 0.6013 GB, free: 31.63 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006031/3.589, allocations: 2.14 MB / 0.6034 GB, free: 29.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008983/3.598, allocations: 3.007 MB / 0.6063 GB, free: 26.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02747/3.626, allocations: 8.261 MB / 0.6144 GB, free: 19.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.899e-05/3.626, allocations: 65.11 kB / 0.6145 GB, free: 19.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=323): time 7.414e-06/3.626, allocations: 0 / 0.6145 GB, free: 19.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=329): time 0.03108/3.657, allocations: 8.883 MB / 0.6231 GB, free: 10.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/3.657, allocations: 90 kB / 0.6232 GB, free: 10.42 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006373/3.663, allocations: 2.365 MB / 0.6255 GB, free: 8.051 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006922/3.664, allocations: 25.7 kB / 0.6255 GB, free: 8.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/3.666, allocations: 2.463 MB / 0.628 GB, free: 5.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001505/3.667, allocations: 1.074 MB / 0.629 GB, free: 4.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003841/3.668, allocations: 0 / 0.629 GB, free: 4.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002857/3.668, allocations: 462.3 kB / 0.6294 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004546/3.672, allocations: 1.535 MB / 0.6309 GB, free: 2.438 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00581/3.678, allocations: 2.566 MB / 0.6334 GB, free: 15.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008125/3.687, allocations: 2.13 MB / 0.6355 GB, free: 13.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.272e-05/3.687, allocations: 8 kB / 0.6355 GB, free: 13.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=500) (initialization): time 0.01873/3.705, allocations: 4.915 MB / 0.6403 GB, free: 8.293 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/3.705, allocations: 4 kB / 0.6403 GB, free: 8.289 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.598e-05/3.706, allocations: 32 kB / 0.6404 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/3.708, allocations: 404.8 kB / 0.6408 GB, free: 7.848 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009119/3.717, allocations: 0.8893 MB / 0.6416 GB, free: 6.957 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1779/3.895, allocations: 6.959 MB / 0.6484 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005787/3.9, allocations: 87.92 kB / 0.6485 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009179/3.901, allocations: 165.9 kB / 0.6487 GB, free: 103 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.0009485/3.902, allocations: 216 kB / 0.6489 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/3.904, allocations: 346.4 kB / 0.6492 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01669/3.92, allocations: 4.581 MB / 0.6537 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.784e-05/3.92, allocations: 32.56 kB / 0.6537 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.172e-05/3.92, allocations: 16.47 kB / 0.6537 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.989e-05/3.92, allocations: 14.81 kB / 0.6537 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03243/3.953, allocations: 10.35 MB / 0.6638 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.96e-05/3.953, allocations: 5.719 kB / 0.6638 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00579/3.959, allocations: 0.4977 MB / 0.6643 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004609/3.963, allocations: 0.8411 MB / 0.6652 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006701/3.964, allocations: 38.81 kB / 0.6652 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02619/3.99, allocations: 15.07 MB / 0.6799 GB, free: 92.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/3.99, allocations: 8 kB / 0.6799 GB, free: 92.54 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02052/4.011, allocations: 7.021 MB / 0.6868 GB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02641/4.037, allocations: 9.659 MB / 0.6962 GB, free: 90.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003227/4.041, allocations: 0.7784 MB / 0.697 GB, free: 89.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00145/4.042, allocations: 18.28 kB / 0.697 GB, free: 89.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004805/4.047, allocations: 97.41 kB / 0.6971 GB, free: 89.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00084/4.048, allocations: 181.6 kB / 0.6973 GB, free: 89.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003707/4.048, allocations: 93.23 kB / 0.6973 GB, free: 89.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005018/4.053, allocations: 1.748 MB / 0.6991 GB, free: 89.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008294/4.062, allocations: 1.125 MB / 0.7001 GB, free: 89.49 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.001492/4.063, allocations: 467.6 kB / 0.7006 GB, free: 89.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0121/4.075, allocations: 4.385 MB / 0.7049 GB, free: 87.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/4.075, allocations: 1.281 kB / 0.7049 GB, free: 87.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008519/4.084, allocations: 2.821 MB / 0.7076 GB, free: 85.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007076/4.091, allocations: 0.6326 MB / 0.7083 GB, free: 85.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03787/4.129, allocations: 10.21 MB / 0.7182 GB, free: 81.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01141/4.14, allocations: 4.656 MB / 0.7228 GB, free: 80.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.783e-06/4.141, allocations: 0 / 0.7228 GB, free: 80.36 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.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat