Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",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.816/1.816, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2602/2.076, allocations: 46.83 MB / 249.4 MB, free: 5.277 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/2.171, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/2.539, allocations: 118.8 MB / 412.8 MB, free: 3.566 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/2.54, allocations: 85.83 kB / 412.8 MB, free: 3.523 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.7138/3.254, allocations: 118.8 MB / 0.5192 GB, free: 67.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/3.254, allocations: 9.25 kB / 0.5192 GB, free: 67.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008768/3.262, allocations: 0.9538 MB / 0.5201 GB, free: 67.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/3.281, allocations: 4.371 MB / 0.5244 GB, free: 66.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/3.281, allocations: 165.4 kB / 0.5245 GB, free: 66.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002061/3.283, allocations: 305.9 kB / 0.5248 GB, free: 66.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01886/3.302, allocations: 4.984 MB / 0.5297 GB, free: 66.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02267/3.325, allocations: 5.853 MB / 0.5354 GB, free: 65.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002745/3.325, allocations: 11.53 kB / 0.5354 GB, free: 65.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001416/3.327, allocations: 7.125 kB / 0.5354 GB, free: 65.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002739/3.327, allocations: 232.4 kB / 0.5356 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06121/3.388, allocations: 20.17 MB / 0.5553 GB, free: 59.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00541/3.393, allocations: 1.724 MB / 0.557 GB, free: 58.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005994/3.4, allocations: 2.072 MB / 0.5591 GB, free: 57.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0207/3.42, allocations: 6.249 MB / 0.5652 GB, free: 54.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.539e-05/3.42, allocations: 62.34 kB / 0.5652 GB, free: 54.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=247): time 6.813e-06/3.42, allocations: 0 / 0.5652 GB, free: 54.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=271): time 0.03472/3.455, allocations: 8.697 MB / 0.5737 GB, free: 50.99 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/3.455, allocations: 79.7 kB / 0.5738 GB, free: 50.92 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006641/3.462, allocations: 2.051 MB / 0.5758 GB, free: 49.76 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006285/3.463, allocations: 25.7 kB / 0.5758 GB, free: 49.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/3.464, allocations: 1.857 MB / 0.5776 GB, free: 48.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/3.465, allocations: 0.8929 MB / 0.5785 GB, free: 47.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/3.465, allocations: 4 kB / 0.5785 GB, free: 47.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002342/3.466, allocations: 437 kB / 0.5789 GB, free: 46.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003859/3.47, allocations: 1.38 MB / 0.5803 GB, free: 45.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004612/3.474, allocations: 2.257 MB / 0.5825 GB, free: 43.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005706/3.48, allocations: 1.837 MB / 0.5843 GB, free: 41.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-05/3.48, allocations: 8 kB / 0.5843 GB, free: 41.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01551/3.496, allocations: 4.611 MB / 0.5888 GB, free: 37.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/3.496, allocations: 4 kB / 0.5888 GB, free: 37.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.717e-05/3.496, allocations: 28.53 kB / 0.5888 GB, free: 37.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003509/3.499, allocations: 0.7186 MB / 0.5895 GB, free: 36.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007106/3.506, allocations: 0.737 MB / 0.5902 GB, free: 36.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0157/3.522, allocations: 8.71 MB / 0.5987 GB, free: 27.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005084/3.527, allocations: 98.64 kB / 0.5988 GB, free: 27.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007051/3.528, allocations: 139.2 kB / 0.599 GB, free: 27.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 376 * 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 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008099/3.529, allocations: 195.7 kB / 0.5991 GB, free: 27.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001058/3.53, allocations: 304.1 kB / 0.5994 GB, free: 27.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/3.544, allocations: 4.256 MB / 0.6036 GB, free: 23.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.34e-05/3.545, allocations: 24 kB / 0.6036 GB, free: 23.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.82e-05/3.545, allocations: 14.91 kB / 0.6036 GB, free: 23.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7e-05/3.545, allocations: 13.31 kB / 0.6036 GB, free: 23.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02855/3.573, allocations: 8.76 MB / 0.6122 GB, free: 16.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-05/3.573, allocations: 4 kB / 0.6122 GB, free: 16.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004814/3.578, allocations: 438.6 kB / 0.6126 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005237/3.583, allocations: 0.9195 MB / 0.6135 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005763/3.584, allocations: 31.45 kB / 0.6135 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02436/3.608, allocations: 14.4 MB / 0.6276 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/3.608, allocations: 4 kB / 0.6276 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02111/3.63, allocations: 6.417 MB / 0.6339 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02705/3.657, allocations: 8.864 MB / 0.6425 GB, free: 2.367 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003217/3.66, allocations: 0.6713 MB / 0.6432 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001356/3.661, allocations: 15.05 kB / 0.6432 GB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0043/3.666, allocations: 98.2 kB / 0.6433 GB, free: 1.664 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007841/3.667, allocations: 144.8 kB / 0.6434 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003692/3.667, allocations: 76.97 kB / 0.6435 GB, free: 1.508 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004954/3.672, allocations: 1.509 MB / 0.645 GB, free: 148 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.1634/3.835, allocations: 1.011 MB / 0.646 GB, free: 113.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 208 * 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 {(6,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(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.001345/3.837, allocations: 432.5 kB / 0.6464 GB, free: 113.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01146/3.848, allocations: 4.11 MB / 0.6504 GB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/3.848, allocations: 0 / 0.6504 GB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008001/3.856, allocations: 2.616 MB / 0.653 GB, free: 112.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006339/3.863, allocations: 0.5633 MB / 0.6535 GB, free: 112.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02918/3.892, allocations: 8.064 MB / 0.6614 GB, free: 110.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008803/3.901, allocations: 3.641 MB / 0.6649 GB, free: 109.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/3.901, allocations: 0 / 0.6649 GB, free: 109.8 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_res.mat does not exist to compare? outputFormat=mat