Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.914/1.914, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2634/2.178, allocations: 46.84 MB / 249.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/2.273, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3874/2.661, allocations: 129.5 MB / 423.4 MB, free: 9.117 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/2.661, allocations: 82.58 kB / 423.5 MB, free: 9.078 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.7634/3.424, allocations: 134.4 MB / 0.5448 GB, free: 32.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/3.425, allocations: 11.25 kB / 0.5449 GB, free: 32.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01112/3.436, allocations: 1.164 MB / 0.546 GB, free: 32.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02082/3.457, allocations: 4.896 MB / 0.5508 GB, free: 31.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003876/3.457, allocations: 181.2 kB / 0.5509 GB, free: 31.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/3.459, allocations: 340.5 kB / 0.5513 GB, free: 31.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02053/3.48, allocations: 5.311 MB / 0.5565 GB, free: 31.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0238/3.504, allocations: 6.259 MB / 0.5626 GB, free: 29.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002473/3.504, allocations: 15.62 kB / 0.5626 GB, free: 29.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009997/3.505, allocations: 3.719 kB / 0.5626 GB, free: 29.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002763/3.505, allocations: 255.6 kB / 0.5628 GB, free: 29.81 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06806/3.573, allocations: 22.88 MB / 0.5852 GB, free: 17.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005562/3.579, allocations: 1.888 MB / 0.587 GB, free: 16.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006173/3.585, allocations: 2.267 MB / 0.5892 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02334/3.609, allocations: 7.183 MB / 0.5963 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/3.609, allocations: 60.38 kB / 0.5963 GB, free: 11.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=277): time 7.334e-06/3.609, allocations: 0 / 0.5963 GB, free: 11.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=329): time 0.04286/3.652, allocations: 10.77 MB / 0.6068 GB, free: 7.426 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/3.652, allocations: 88.22 kB / 0.6069 GB, free: 7.355 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007076/3.659, allocations: 2.397 MB / 0.6093 GB, free: 6.402 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007408/3.659, allocations: 27.48 kB / 0.6093 GB, free: 6.371 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001431/3.661, allocations: 2.105 MB / 0.6113 GB, free: 4.848 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001577/3.663, allocations: 1.074 MB / 0.6124 GB, free: 4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000389/3.663, allocations: 0 / 0.6124 GB, free: 4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002957/3.663, allocations: 467 kB / 0.6128 GB, free: 3.621 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004983/3.668, allocations: 1.602 MB / 0.6144 GB, free: 2.969 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006165/3.674, allocations: 2.766 MB / 0.6171 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007843/3.682, allocations: 2.174 MB / 0.6192 GB, free: 15.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.78e-05/3.682, allocations: 14.88 kB / 0.6192 GB, free: 15.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=514) (initialization): time 0.02138/3.704, allocations: 5.456 MB / 0.6246 GB, free: 12.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/3.704, allocations: 11.91 kB / 0.6246 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/3.704, allocations: 44.72 kB / 0.6246 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004841/3.709, allocations: 0.8563 MB / 0.6254 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009284/3.718, allocations: 0.9166 MB / 0.6263 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02209/3.74, allocations: 8.963 MB / 0.6351 GB, free: 2.723 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006467/3.747, allocations: 145.8 kB / 0.6352 GB, free: 2.609 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008459/3.748, allocations: 181.5 kB / 0.6354 GB, free: 2.438 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (461): * Single equations (assignments): 452 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001023/3.749, allocations: 215.9 kB / 0.6356 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001393/3.75, allocations: 361.7 kB / 0.636 GB, free: 1.863 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01923/3.769, allocations: 4.837 MB / 0.6407 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.754e-05/3.77, allocations: 32 kB / 0.6407 GB, free: 13.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.193e-05/3.77, allocations: 8 kB / 0.6407 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-05/3.77, allocations: 16.27 kB / 0.6407 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03663/3.806, allocations: 10.06 MB / 0.6506 GB, free: 5.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01479/3.821, allocations: 4.013 MB / 0.6545 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006713/3.828, allocations: 0.5617 MB / 0.655 GB, free: 0.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1628/3.991, allocations: 0.9211 MB / 0.6559 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006897/3.992, allocations: 29.77 kB / 0.656 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02464/4.016, allocations: 12.43 MB / 0.6681 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/4.016, allocations: 10.97 kB / 0.6681 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02183/4.038, allocations: 7.525 MB / 0.6755 GB, free: 120 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0281/4.066, allocations: 10.33 MB / 0.6855 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00322/4.07, allocations: 0.7838 MB / 0.6863 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/4.071, allocations: 17.66 kB / 0.6863 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004835/4.076, allocations: 137.2 kB / 0.6865 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000638/4.076, allocations: 173.3 kB / 0.6866 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003816/4.077, allocations: 94.03 kB / 0.6867 GB, free: 118.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004772/4.082, allocations: 1.762 MB / 0.6884 GB, free: 118.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008538/4.09, allocations: 1.077 MB / 0.6895 GB, free: 118.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 257 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001529/4.092, allocations: 484.1 kB / 0.6899 GB, free: 118.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01385/4.106, allocations: 4.816 MB / 0.6946 GB, free: 117.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/4.106, allocations: 0 / 0.6946 GB, free: 117.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009165/4.115, allocations: 2.867 MB / 0.6974 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006402/4.121, allocations: 0.5749 MB / 0.698 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03166/4.153, allocations: 8.773 MB / 0.7066 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008595/4.162, allocations: 3.882 MB / 0.7104 GB, free: 114 MB / 426.7 MB Notification: Performance of SimCode: time 1.502e-06/4.162, allocations: 0 / 0.7104 GB, free: 114 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat