Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_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 2.053/2.053, allocations: 171.2 MB / 178.1 MB, free: 8.316 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1986/2.252, allocations: 41.11 MB / 219.3 MB, free: 11.23 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/2.35, allocations: 38.77 MB / 258 MB, free: 4.395 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/2.723, allocations: 101.3 MB / 359.3 MB, free: 3.355 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/2.724, allocations: 83.52 kB / 359.4 MB, free: 3.312 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: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 1.303/4.026, allocations: 217.5 MB / 0.5633 GB, free: 14.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.343e-05/4.026, allocations: 9.219 kB / 0.5634 GB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0165/4.043, allocations: 1.524 MB / 0.5648 GB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04175/4.085, allocations: 7.584 MB / 0.5723 GB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00128/4.086, allocations: 309.2 kB / 0.5725 GB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006272/4.092, allocations: 0.5519 MB / 0.5731 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03739/4.13, allocations: 9.745 MB / 0.5826 GB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04609/4.176, allocations: 11.5 MB / 0.5938 GB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005495/4.177, allocations: 14.84 kB / 0.5939 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004593/4.181, allocations: 7.906 kB / 0.5939 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006165/4.182, allocations: 404.4 kB / 0.5942 GB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1413/4.323, allocations: 39.03 MB / 0.6324 GB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008994/4.332, allocations: 2.876 MB / 0.6352 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01772/4.35, allocations: 4.376 MB / 0.6394 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007434/4.351, allocations: 50.38 kB / 0.6395 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/4.351, allocations: 88.3 kB / 0.6396 GB, free: 10.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=431): time 2.435e-05/4.351, allocations: 0 / 0.6396 GB, free: 10.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=439): time 0.06273/4.414, allocations: 13.48 MB / 0.6527 GB, free: 1.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/4.414, allocations: 94.86 kB / 0.6528 GB, free: 1.043 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0341/4.448, allocations: 4.306 MB / 0.657 GB, free: 15.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001426/4.45, allocations: 25.7 kB / 0.6571 GB, free: 15.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005239/4.455, allocations: 3.256 MB / 0.6602 GB, free: 12.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003828/4.459, allocations: 1.397 MB / 0.6616 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00125/4.46, allocations: 0 / 0.6616 GB, free: 10.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0009101/4.461, allocations: 495.1 kB / 0.6621 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01097/4.472, allocations: 2.253 MB / 0.6643 GB, free: 8.477 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/4.483, allocations: 3.286 MB / 0.6675 GB, free: 5.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01122/4.495, allocations: 2.793 MB / 0.6702 GB, free: 2.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.592e-05/4.495, allocations: 8 kB / 0.6702 GB, free: 2.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.4218/4.917, allocations: 7.384 MB / 0.6774 GB, free: 67.37 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/4.917, allocations: 9.781 kB / 0.6774 GB, free: 67.37 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/4.917, allocations: 32.91 kB / 0.6775 GB, free: 67.37 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006798/4.924, allocations: 1.498 MB / 0.6789 GB, free: 67.24 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009193/4.933, allocations: 0.9707 MB / 0.6799 GB, free: 67.24 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0469/4.98, allocations: 25.54 MB / 0.7048 GB, free: 50.48 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007269/4.987, allocations: 121.9 kB / 0.7049 GB, free: 50.48 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/4.989, allocations: 174 kB / 0.7051 GB, free: 50.48 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (509): * Single equations (assignments): 493 * 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: 14 * 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: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 25,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001978/4.991, allocations: 223.4 kB / 0.7053 GB, free: 50.38 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002207/4.993, allocations: 0.5149 MB / 0.7058 GB, free: 50.38 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02611/5.019, allocations: 7.417 MB / 0.7131 GB, free: 49.71 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.067e-05/5.019, allocations: 42.75 kB / 0.7131 GB, free: 49.71 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.38e-05/5.019, allocations: 30.62 kB / 0.7131 GB, free: 49.71 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/5.019, allocations: 22.12 kB / 0.7132 GB, free: 49.71 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05955/5.079, allocations: 15.91 MB / 0.7287 GB, free: 48.38 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-05/5.079, allocations: 10.8 kB / 0.7287 GB, free: 48.38 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004793/5.084, allocations: 462 kB / 0.7291 GB, free: 48.38 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0102/5.094, allocations: 2.239 MB / 0.7313 GB, free: 48.27 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001141/5.095, allocations: 31.92 kB / 0.7314 GB, free: 48.27 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05758/5.153, allocations: 32.46 MB / 0.7631 GB, free: 32.32 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.45e-05/5.153, allocations: 11.28 kB / 0.7631 GB, free: 32.32 MB / 378.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03301/5.186, allocations: 12.09 MB / 0.7749 GB, free: 26.64 MB / 378.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04407/5.23, allocations: 16.05 MB / 0.7905 GB, free: 18.69 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004748/5.235, allocations: 1.131 MB / 0.7916 GB, free: 18.02 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002193/5.237, allocations: 23.75 kB / 0.7917 GB, free: 18.02 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006188/5.243, allocations: 173.4 kB / 0.7918 GB, free: 18.02 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001582/5.245, allocations: 303.2 kB / 0.7921 GB, free: 17.96 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006875/5.246, allocations: 119.5 kB / 0.7922 GB, free: 17.93 MB / 378.8 MB Notification: Performance of sort global known variables: time 0.008394/5.254, allocations: 2.848 MB / 0.795 GB, free: 16.82 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01387/5.268, allocations: 1.614 MB / 0.7966 GB, free: 16.77 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (255): * Single equations (assignments): 242 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,54.5%) 56,(1,100.0%) 8,(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.001948/5.27, allocations: 478.4 kB / 0.797 GB, free: 16.64 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.02427/5.294, allocations: 7.269 MB / 0.8041 GB, free: 12.12 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-05/5.294, allocations: 4 kB / 0.8042 GB, free: 12.11 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02148/5.316, allocations: 5.398 MB / 0.8094 GB, free: 7.258 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01909/5.335, allocations: 1.123 MB / 0.8105 GB, free: 6.414 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2878/5.623, allocations: 14.86 MB / 0.825 GB, free: 58.96 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02231/5.645, allocations: 6.565 MB / 0.8314 GB, free: 58.07 MB / 378.8 MB Notification: Performance of SimCode: time 1.593e-06/5.645, allocations: 0.9375 kB / 0.8314 GB, free: 58.07 MB / 378.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat