Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 195 MB / 202.8 MB, free: 13.77 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.812e-05/2.821e-05, allocations: 8 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3062, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2139/0.5201, allocations: 123.6 MB / 417.8 MB, free: 6.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.5204, allocations: 91.89 kB / 417.9 MB, free: 6.074 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8136/1.334, allocations: 148.6 MB / 0.5532 GB, free: 1.289 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.334, allocations: 0 / 0.5532 GB, free: 1.289 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008652/1.335, allocations: 183.7 kB / 0.5534 GB, free: 1.109 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.3396/1.675, allocations: 6.559 MB / 0.5598 GB, free: 26.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.675, allocations: 10.19 kB / 0.5598 GB, free: 26.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/1.685, allocations: 1.237 MB / 0.561 GB, free: 26.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02405/1.709, allocations: 6.228 MB / 0.5671 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005259/1.71, allocations: 221.8 kB / 0.5673 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002773/1.712, allocations: 403.9 kB / 0.5677 GB, free: 25.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02172/1.734, allocations: 7.022 MB / 0.5746 GB, free: 25.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02834/1.762, allocations: 8.191 MB / 0.5826 GB, free: 24.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003054/1.763, allocations: 18.58 kB / 0.5826 GB, free: 24.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001898/1.765, allocations: 6.375 kB / 0.5826 GB, free: 24.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003281/1.765, allocations: 295 kB / 0.5829 GB, free: 24.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07231/1.837, allocations: 28.15 MB / 0.6104 GB, free: 18.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01493/1.852, allocations: 11.58 MB / 0.6217 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007374/1.86, allocations: 3.149 MB / 0.6247 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01918/1.879, allocations: 6.598 MB / 0.6312 GB, free: 6.438 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.905e-05/1.879, allocations: 66.81 kB / 0.6312 GB, free: 6.375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=306): time 5.831e-06/1.879, allocations: 0 / 0.6312 GB, free: 6.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=325): time 0.03087/1.91, allocations: 11.06 MB / 0.642 GB, free: 1.332 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/1.91, allocations: 85.88 kB / 0.6421 GB, free: 1.266 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006025/1.916, allocations: 2.785 MB / 0.6449 GB, free: 208 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007474/1.917, allocations: 25.7 kB / 0.6449 GB, free: 176 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003162/1.92, allocations: 3.085 MB / 0.6479 GB, free: 13.86 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001763/1.922, allocations: 1.048 MB / 0.6489 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003543/1.922, allocations: 0 / 0.6489 GB, free: 13.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003217/1.923, allocations: 454.8 kB / 0.6493 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004029/1.927, allocations: 1.715 MB / 0.651 GB, free: 11.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005182/1.932, allocations: 2.602 MB / 0.6536 GB, free: 10.24 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005959/1.938, allocations: 2.266 MB / 0.6558 GB, free: 9.387 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.696e-05/1.938, allocations: 5.844 kB / 0.6558 GB, free: 9.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01637/1.954, allocations: 5.921 MB / 0.6616 GB, free: 7.125 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.608e-05/1.955, allocations: 14.97 kB / 0.6616 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-05/1.955, allocations: 26.44 kB / 0.6616 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004532/1.959, allocations: 1.222 MB / 0.6628 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006265/1.965, allocations: 0.8075 MB / 0.6636 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02717/1.993, allocations: 19.85 MB / 0.683 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00537/1.998, allocations: 123.5 kB / 0.6831 GB, free: 2.824 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/1.999, allocations: 154.9 kB / 0.6832 GB, free: 2.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(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.001011/2, allocations: 209.8 kB / 0.6834 GB, free: 2.523 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02175/2.022, allocations: 5.74 MB / 0.689 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001901/2.024, allocations: 399.1 kB / 0.6894 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01783/2.042, allocations: 5.764 MB / 0.6951 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.721e-05/2.042, allocations: 32 kB / 0.6951 GB, free: 9.156 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-05/2.042, allocations: 16 kB / 0.6951 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-05/2.042, allocations: 13.73 kB / 0.6951 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03419/2.076, allocations: 11.2 MB / 0.706 GB, free: 0 / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.611e-05/2.076, allocations: 4.781 kB / 0.7061 GB, free: 0 / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007211/2.084, allocations: 0.6251 MB / 0.7067 GB, free: 0 / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3089/2.393, allocations: 1.558 MB / 0.7082 GB, free: 69.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000676/2.393, allocations: 31.66 kB / 0.7082 GB, free: 69.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03263/2.426, allocations: 28.97 MB / 0.7365 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/2.426, allocations: 3.781 kB / 0.7365 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/2.445, allocations: 8.64 MB / 0.7449 GB, free: 48.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003402/2.449, allocations: 0.8584 MB / 0.7458 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001508/2.45, allocations: 24.02 kB / 0.7458 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004191/2.454, allocations: 144 kB / 0.7459 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001185/2.456, allocations: 287.3 kB / 0.7462 GB, free: 48.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003397/2.456, allocations: 94.64 kB / 0.7463 GB, free: 48.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004567/2.461, allocations: 2.07 MB / 0.7483 GB, free: 48.24 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.461, allocations: 0 / 0.7483 GB, free: 48.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007262/2.468, allocations: 1.215 MB / 0.7495 GB, free: 48.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02146/2.489, allocations: 10.24 MB / 0.7595 GB, free: 45.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01317/2.503, allocations: 5.904 MB / 0.7653 GB, free: 44.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/2.503, allocations: 0 / 0.7653 GB, free: 44.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009628/2.512, allocations: 4.518 MB / 0.7697 GB, free: 42.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00838/2.521, allocations: 0.9336 MB / 0.7706 GB, free: 42.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03663/2.557, allocations: 12.57 MB / 0.7829 GB, free: 39.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008619/2.566, allocations: 4.615 MB / 0.7874 GB, free: 38.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005958/2.572, allocations: 0.9723 MB / 0.7883 GB, free: 38.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006139/2.578, allocations: 2.654 MB / 0.7909 GB, free: 38.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.954e-06/2.578, allocations: 0 / 0.7909 GB, free: 38.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5826/3.161, allocations: 104.1 MB / 0.8926 GB, free: 64.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/3.161, allocations: 165.5 kB / 0.8928 GB, free: 64.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.585/9.746, allocations: 1.25 kB / 0.8928 GB, free: 64.79 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat