Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.066e-05, allocations: 0 / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4731/0.5796, allocations: 124.2 MB / 424.2 MB, free: 4.082 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5799, allocations: 83.52 kB / 424.2 MB, free: 4.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8616/1.442, allocations: 150.6 MB / 0.5614 GB, free: 64.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/1.442, allocations: 0 / 0.5614 GB, free: 64.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007755/1.442, allocations: 179.6 kB / 0.5616 GB, free: 64.96 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02722/1.47, allocations: 6.559 MB / 0.568 GB, free: 62.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/1.47, allocations: 10.47 kB / 0.568 GB, free: 62.57 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004187/1.474, allocations: 0.9224 MB / 0.5689 GB, free: 62.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00961/1.484, allocations: 1.248 MB / 0.5701 GB, free: 62.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02247/1.506, allocations: 6.229 MB / 0.5762 GB, free: 61.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006904/1.507, allocations: 0.4984 MB / 0.5767 GB, free: 61.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002884/1.51, allocations: 0.6684 MB / 0.5773 GB, free: 61.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02928/1.539, allocations: 9.178 MB / 0.5863 GB, free: 60.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003826/1.539, allocations: 17.16 kB / 0.5863 GB, free: 60.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002441/1.542, allocations: 291.9 kB / 0.5866 GB, free: 60.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003443/1.542, allocations: 290.1 kB / 0.5869 GB, free: 60.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02339/1.566, allocations: 7.439 MB / 0.5941 GB, free: 58.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.076/1.642, allocations: 29.48 MB / 0.6229 GB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01629/1.658, allocations: 11.75 MB / 0.6344 GB, free: 31.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008216/1.666, allocations: 3.273 MB / 0.6376 GB, free: 28.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02053/1.687, allocations: 6.861 MB / 0.6443 GB, free: 22.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.493e-05/1.687, allocations: 68.91 kB / 0.6443 GB, free: 22.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=306): time 5.881e-06/1.687, allocations: 0 / 0.6443 GB, free: 22.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=325): time 0.03632/1.723, allocations: 11.93 MB / 0.656 GB, free: 11.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/1.723, allocations: 85.97 kB / 0.6561 GB, free: 11.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008041/1.731, allocations: 3.448 MB / 0.6594 GB, free: 8.695 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007966/1.732, allocations: 81.7 kB / 0.6595 GB, free: 8.609 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002254/1.735, allocations: 2.834 MB / 0.6623 GB, free: 6.023 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001562/1.736, allocations: 1.087 MB / 0.6633 GB, free: 5.047 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003952/1.737, allocations: 76 kB / 0.6634 GB, free: 4.973 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000249/1.737, allocations: 459.5 kB / 0.6639 GB, free: 4.559 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004472/1.741, allocations: 1.792 MB / 0.6656 GB, free: 2.945 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005241/1.747, allocations: 2.698 MB / 0.6682 GB, free: 108 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3111/2.058, allocations: 2.218 MB / 0.6704 GB, free: 60.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.782e-05/2.058, allocations: 7.469 kB / 0.6704 GB, free: 60.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01775/2.076, allocations: 5.933 MB / 0.6762 GB, free: 60.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/2.076, allocations: 17.42 kB / 0.6762 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.871e-05/2.076, allocations: 27.64 kB / 0.6763 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005293/2.081, allocations: 1.257 MB / 0.6775 GB, free: 60.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006795/2.088, allocations: 0.8142 MB / 0.6783 GB, free: 60.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02386/2.112, allocations: 20.7 MB / 0.6985 GB, free: 46.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005515/2.117, allocations: 199.2 kB / 0.6987 GB, free: 46.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009765/2.118, allocations: 148.4 kB / 0.6988 GB, free: 46.25 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.001108/2.119, allocations: 334.2 kB / 0.6991 GB, free: 46.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/2.121, allocations: 449 kB / 0.6996 GB, free: 46.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01604/2.137, allocations: 5.963 MB / 0.7054 GB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.282e-05/2.137, allocations: 35.05 kB / 0.7054 GB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.454e-05/2.137, allocations: 24.48 kB / 0.7054 GB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-05/2.137, allocations: 12.61 kB / 0.7055 GB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0327/2.17, allocations: 12.27 MB / 0.7174 GB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.631e-05/2.17, allocations: 2.625 kB / 0.7174 GB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004226/2.174, allocations: 465.7 kB / 0.7179 GB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006575/2.181, allocations: 1.607 MB / 0.7195 GB, free: 44.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007004/2.181, allocations: 76.59 kB / 0.7195 GB, free: 44.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03704/2.219, allocations: 30.14 MB / 0.749 GB, free: 36.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/2.219, allocations: 8.594 kB / 0.749 GB, free: 36.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0212/2.24, allocations: 8.86 MB / 0.7576 GB, free: 32.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00349/2.243, allocations: 0.9219 MB / 0.7585 GB, free: 31.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001273/2.245, allocations: 72.48 kB / 0.7586 GB, free: 31.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00422/2.249, allocations: 202.4 kB / 0.7588 GB, free: 31.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/2.25, allocations: 285.1 kB / 0.7591 GB, free: 31.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003476/2.25, allocations: 87.5 kB / 0.7591 GB, free: 31.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00628/2.257, allocations: 2.63 MB / 0.7617 GB, free: 30.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.257, allocations: 0 / 0.7617 GB, free: 30.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007616/2.264, allocations: 1.38 MB / 0.7631 GB, free: 30.2 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.02246/2.287, allocations: 10.54 MB / 0.7734 GB, free: 24.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01433/2.301, allocations: 6.167 MB / 0.7794 GB, free: 21.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/2.301, allocations: 0 / 0.7794 GB, free: 21.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01111/2.312, allocations: 4.706 MB / 0.784 GB, free: 18.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009825/2.322, allocations: 1.253 MB / 0.7852 GB, free: 18.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0415/2.364, allocations: 12.8 MB / 0.7977 GB, free: 7.762 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0102/2.374, allocations: 4.516 MB / 0.8021 GB, free: 4.383 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007961/2.382, allocations: 2.695 MB / 0.8047 GB, free: 1.879 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/2.382, allocations: 3.938 kB / 0.8047 GB, free: 1.875 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.433/9.815, allocations: 0.6213 GB / 1.426 GB, free: 67.34 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat