Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.125e-05/3.129e-05, allocations: 4 kB / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.09999, allocations: 47.57 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.5732, allocations: 114.6 MB / 431.7 MB, free: 5.648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002983/0.5736, allocations: 85.33 kB / 431.8 MB, free: 5.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.063/1.636, allocations: 220.3 MB / 0.6368 GB, free: 37.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.636, allocations: 0 / 0.6368 GB, free: 37.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001001/1.637, allocations: 243.8 kB / 0.637 GB, free: 37.2 MB / 426.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.03994/1.677, allocations: 9.574 MB / 0.6464 GB, free: 27.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.677, allocations: 12.03 kB / 0.6464 GB, free: 27.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005565/1.683, allocations: 1.374 MB / 0.6477 GB, free: 26.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/1.7, allocations: 2.129 MB / 0.6498 GB, free: 23.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03008/1.73, allocations: 8.9 MB / 0.6585 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009776/1.731, allocations: 0.7581 MB / 0.6593 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004188/1.735, allocations: 0.9764 MB / 0.6602 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4469/2.182, allocations: 13.67 MB / 0.6736 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005806/2.183, allocations: 17.77 kB / 0.6736 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003717/2.186, allocations: 428.2 kB / 0.674 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008365/2.187, allocations: 455 kB / 0.6744 GB, free: 36.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03876/2.226, allocations: 11.3 MB / 0.6855 GB, free: 36.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1153/2.341, allocations: 44.14 MB / 0.7286 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08647/2.428, allocations: 24.44 MB / 0.7524 GB, free: 22.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01166/2.44, allocations: 4.914 MB / 0.7572 GB, free: 20.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03383/2.474, allocations: 12.09 MB / 0.769 GB, free: 15.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.726e-05/2.474, allocations: 87.16 kB / 0.7691 GB, free: 15.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=419): time 6.933e-06/2.474, allocations: 0 / 0.7691 GB, free: 15.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=425): time 0.03548/2.509, allocations: 13.85 MB / 0.7826 GB, free: 8.629 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/2.509, allocations: 98.78 kB / 0.7827 GB, free: 8.562 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01168/2.521, allocations: 4.681 MB / 0.7873 GB, free: 6.848 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009285/2.522, allocations: 100.5 kB / 0.7874 GB, free: 6.762 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004793/2.527, allocations: 4.443 MB / 0.7917 GB, free: 3.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002298/2.529, allocations: 1.411 MB / 0.7931 GB, free: 2.316 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005778/2.53, allocations: 95.72 kB / 0.7932 GB, free: 2.242 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004091/2.53, allocations: 0.4908 MB / 0.7937 GB, free: 1.852 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005837/2.536, allocations: 2.261 MB / 0.7959 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007012/2.543, allocations: 3.381 MB / 0.7992 GB, free: 14.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007225/2.55, allocations: 2.816 MB / 0.8019 GB, free: 13.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.506e-05/2.55, allocations: 10.97 kB / 0.802 GB, free: 13.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02131/2.572, allocations: 7.711 MB / 0.8095 GB, free: 10.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/2.572, allocations: 17.31 kB / 0.8095 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.495e-05/2.572, allocations: 32.53 kB / 0.8095 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006018/2.578, allocations: 1.47 MB / 0.811 GB, free: 10.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007914/2.586, allocations: 0.985 MB / 0.8119 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03703/2.623, allocations: 26.67 MB / 0.838 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00688/2.63, allocations: 238.4 kB / 0.8382 GB, free: 0.6328 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/2.631, allocations: 187 kB / 0.8384 GB, free: 468 kB / 474.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.001323/2.632, allocations: 411.9 kB / 0.8388 GB, free: 60 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001886/2.634, allocations: 0.575 MB / 0.8393 GB, free: 15.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02249/2.657, allocations: 7.667 MB / 0.8468 GB, free: 8.852 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.652e-05/2.657, allocations: 40 kB / 0.8469 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.115e-05/2.657, allocations: 31.95 kB / 0.8469 GB, free: 8.781 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.805e-05/2.657, allocations: 21.05 kB / 0.8469 GB, free: 8.781 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3872/3.044, allocations: 16.48 MB / 0.863 GB, free: 93.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.615e-05/3.044, allocations: 7.422 kB / 0.863 GB, free: 93.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004422/3.049, allocations: 454.5 kB / 0.8634 GB, free: 93.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009829/3.059, allocations: 2.243 MB / 0.8656 GB, free: 93.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009355/3.06, allocations: 96.64 kB / 0.8657 GB, free: 93.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05555/3.115, allocations: 34.49 MB / 0.8994 GB, free: 76.53 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/3.115, allocations: 10.75 kB / 0.8994 GB, free: 76.53 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02762/3.143, allocations: 11.45 MB / 0.9106 GB, free: 74.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004792/3.148, allocations: 1.198 MB / 0.9118 GB, free: 74.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00255/3.15, allocations: 87.48 kB / 0.9118 GB, free: 74.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006668/3.157, allocations: 264.3 kB / 0.9121 GB, free: 74.85 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002011/3.159, allocations: 437.8 kB / 0.9125 GB, free: 74.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006684/3.16, allocations: 115.5 kB / 0.9126 GB, free: 74.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009636/3.169, allocations: 3.577 MB / 0.9161 GB, free: 74.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.162e-06/3.169, allocations: 0 / 0.9161 GB, free: 74.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01041/3.18, allocations: 1.903 MB / 0.918 GB, free: 74.64 MB / 490.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.02918/3.209, allocations: 13.22 MB / 0.9309 GB, free: 71.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01728/3.226, allocations: 7.461 MB / 0.9382 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/3.227, allocations: 3.938 kB / 0.9382 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0135/3.24, allocations: 5.436 MB / 0.9435 GB, free: 66.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01304/3.253, allocations: 1.595 MB / 0.945 GB, free: 66.24 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05808/3.311, allocations: 18.09 MB / 0.9627 GB, free: 59.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01285/3.324, allocations: 6.547 MB / 0.9691 GB, free: 57.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007996/3.332, allocations: 1.269 MB / 0.9704 GB, free: 57.06 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008804/3.341, allocations: 3.9 MB / 0.9742 GB, free: 53.73 MB / 490.7 MB Notification: Performance of SimCode: time 1.703e-06/3.341, allocations: 0 / 0.9742 GB, free: 53.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7349/4.076, allocations: 164.9 MB / 1.135 GB, free: 56.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/4.076, allocations: 205.2 kB / 1.135 GB, free: 56.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.182/13.26, allocations: 3.938 kB / 1.135 GB, free: 56.07 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat