Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.986e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.08839, allocations: 44.51 MB / 299.9 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4345/0.5229, allocations: 110.1 MB / 410 MB, free: 9.566 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.5232, allocations: 86.52 kB / 410.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.089/1.612, allocations: 221 MB / 0.6163 GB, free: 52.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.612, allocations: 0 / 0.6163 GB, free: 52.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001146/1.613, allocations: 249.8 kB / 0.6166 GB, free: 52.57 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04122/1.655, allocations: 9.582 MB / 0.6259 GB, free: 47.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/1.655, allocations: 14.47 kB / 0.6259 GB, free: 47.85 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006024/1.661, allocations: 1.369 MB / 0.6273 GB, free: 46.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01687/1.678, allocations: 2.128 MB / 0.6294 GB, free: 45.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03244/1.71, allocations: 8.911 MB / 0.6381 GB, free: 36.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001043/1.711, allocations: 0.7419 MB / 0.6388 GB, free: 35.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004548/1.716, allocations: 0.983 MB / 0.6397 GB, free: 34.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04603/1.762, allocations: 13.79 MB / 0.6532 GB, free: 20.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005538/1.762, allocations: 23.34 kB / 0.6532 GB, free: 20.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003826/1.766, allocations: 425.9 kB / 0.6536 GB, free: 20.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005058/1.767, allocations: 456.4 kB / 0.6541 GB, free: 19.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03564/1.802, allocations: 11.43 MB / 0.6652 GB, free: 8.254 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4277/2.23, allocations: 44.14 MB / 0.7083 GB, free: 35.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03617/2.266, allocations: 24.52 MB / 0.7323 GB, free: 33.28 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01209/2.279, allocations: 4.911 MB / 0.7371 GB, free: 33.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0376/2.316, allocations: 12.1 MB / 0.7489 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.995e-05/2.316, allocations: 77.89 kB / 0.749 GB, free: 31.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=419): time 7.323e-06/2.316, allocations: 1.844 kB / 0.749 GB, free: 31.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=425): time 0.03948/2.356, allocations: 13.84 MB / 0.7625 GB, free: 25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.064e-05/2.356, allocations: 94.12 kB / 0.7626 GB, free: 24.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01228/2.368, allocations: 4.675 MB / 0.7671 GB, free: 23.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009688/2.369, allocations: 97.73 kB / 0.7672 GB, free: 23.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003532/2.373, allocations: 4.083 MB / 0.7712 GB, free: 19.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002089/2.375, allocations: 1.423 MB / 0.7726 GB, free: 18.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000576/2.376, allocations: 94.19 kB / 0.7727 GB, free: 18.76 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000401/2.376, allocations: 0.4899 MB / 0.7732 GB, free: 18.37 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005865/2.382, allocations: 2.263 MB / 0.7754 GB, free: 17.47 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006894/2.389, allocations: 3.416 MB / 0.7787 GB, free: 15.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007785/2.397, allocations: 2.804 MB / 0.7815 GB, free: 14.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.834e-05/2.397, allocations: 9.844 kB / 0.7815 GB, free: 14.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02003/2.417, allocations: 7.428 MB / 0.7887 GB, free: 11.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/2.417, allocations: 19.41 kB / 0.7888 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-05/2.417, allocations: 36.48 kB / 0.7888 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00573/2.423, allocations: 1.476 MB / 0.7902 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007931/2.431, allocations: 0.9775 MB / 0.7912 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03536/2.466, allocations: 26.68 MB / 0.8172 GB, free: 4.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00708/2.473, allocations: 234.5 kB / 0.8175 GB, free: 4.312 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/2.475, allocations: 190.1 kB / 0.8176 GB, free: 4.133 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (526): * Single equations (assignments): 510 * 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%) 22,(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.001664/2.476, allocations: 401.9 kB / 0.818 GB, free: 3.734 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0022/2.479, allocations: 0.5713 MB / 0.8186 GB, free: 3.156 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03305/2.512, allocations: 8.208 MB / 0.8266 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.794e-05/2.512, allocations: 40 kB / 0.8266 GB, free: 13.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.889e-05/2.512, allocations: 28 kB / 0.8267 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/2.512, allocations: 23.39 kB / 0.8267 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05286/2.565, allocations: 16.37 MB / 0.8427 GB, free: 316 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-05/2.565, allocations: 6.562 kB / 0.8427 GB, free: 312 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004947/2.57, allocations: 473.6 kB / 0.8431 GB, free: 0 / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3394/2.909, allocations: 2.245 MB / 0.8453 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001033/2.91, allocations: 99.53 kB / 0.8454 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05396/2.964, allocations: 34.49 MB / 0.8791 GB, free: 72.87 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.443e-06/2.964, allocations: 6.531 kB / 0.8791 GB, free: 72.87 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02788/2.992, allocations: 11.44 MB / 0.8903 GB, free: 71.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005049/2.997, allocations: 1.21 MB / 0.8915 GB, free: 71.19 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002687/3, allocations: 87.19 kB / 0.8915 GB, free: 71.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006502/3.007, allocations: 260.5 kB / 0.8918 GB, free: 71.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002098/3.009, allocations: 440.7 kB / 0.8922 GB, free: 71.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007308/3.01, allocations: 116 kB / 0.8923 GB, free: 71.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009997/3.02, allocations: 3.568 MB / 0.8958 GB, free: 70.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.72e-07/3.02, allocations: 1.719 kB / 0.8958 GB, free: 70.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01081/3.031, allocations: 1.909 MB / 0.8977 GB, free: 70.98 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,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 (241): * Single equations (assignments): 228 * 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,49.6%) 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.02992/3.061, allocations: 13.2 MB / 0.9106 GB, free: 68.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01703/3.078, allocations: 7.641 MB / 0.918 GB, free: 64.13 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/3.078, allocations: 4.5 kB / 0.918 GB, free: 64.13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01311/3.091, allocations: 5.578 MB / 0.9235 GB, free: 60.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01233/3.103, allocations: 1.607 MB / 0.925 GB, free: 60.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05483/3.158, allocations: 17.87 MB / 0.9425 GB, free: 53.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0131/3.171, allocations: 6.381 MB / 0.9487 GB, free: 51.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008977/3.18, allocations: 3.933 MB / 0.9526 GB, free: 48.38 MB / 458.7 MB Notification: Performance of SimCode: time 4.088e-06/3.18, allocations: 0 / 0.9526 GB, free: 48.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.016/12.2, allocations: 0.8788 GB / 1.831 GB, free: 39.14 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat