Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.295/2.295, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.424e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3444, allocations: 44.49 MB / 294.3 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2779/0.6223, allocations: 123.6 MB / 417.9 MB, free: 6.152 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000386/0.6228, allocations: 87.94 kB / 417.9 MB, free: 6.066 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9262/1.549, allocations: 148.6 MB / 0.5533 GB, free: 1.258 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.549, allocations: 0 / 0.5533 GB, free: 1.258 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001026/1.55, allocations: 179.8 kB / 0.5535 GB, free: 1.082 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.406/1.956, allocations: 6.556 MB / 0.5599 GB, free: 26.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/1.956, allocations: 9.094 kB / 0.5599 GB, free: 26.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/1.969, allocations: 1.25 MB / 0.5611 GB, free: 26.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02904/1.998, allocations: 6.224 MB / 0.5672 GB, free: 25.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006401/1.999, allocations: 219.8 kB / 0.5674 GB, free: 25.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003336/2.002, allocations: 410 kB / 0.5678 GB, free: 25.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02595/2.028, allocations: 7.027 MB / 0.5746 GB, free: 25.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04195/2.07, allocations: 8.186 MB / 0.5826 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006477/2.071, allocations: 15.28 kB / 0.5826 GB, free: 24.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003124/2.074, allocations: 8.969 kB / 0.5827 GB, free: 24.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005326/2.075, allocations: 295.2 kB / 0.5829 GB, free: 24.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09406/2.169, allocations: 28.15 MB / 0.6104 GB, free: 18.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/2.189, allocations: 11.59 MB / 0.6217 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009992/2.199, allocations: 3.146 MB / 0.6248 GB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02728/2.226, allocations: 6.589 MB / 0.6312 GB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001095/2.226, allocations: 71.94 kB / 0.6313 GB, free: 6.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=306): time 8.345e-06/2.226, allocations: 0 / 0.6313 GB, free: 6.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=325): time 0.04471/2.271, allocations: 11.06 MB / 0.6421 GB, free: 1.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/2.271, allocations: 84 kB / 0.6422 GB, free: 1.254 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009807/2.281, allocations: 2.789 MB / 0.6449 GB, free: 192 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009425/2.282, allocations: 29.42 kB / 0.6449 GB, free: 160 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004763/2.287, allocations: 3.085 MB / 0.648 GB, free: 13.86 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002299/2.289, allocations: 1.053 MB / 0.649 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000857/2.29, allocations: 0 / 0.649 GB, free: 13.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005718/2.29, allocations: 452 kB / 0.6494 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005696/2.296, allocations: 1.718 MB / 0.6511 GB, free: 11.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006947/2.303, allocations: 2.604 MB / 0.6536 GB, free: 10.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008065/2.311, allocations: 2.264 MB / 0.6559 GB, free: 9.383 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.526e-05/2.311, allocations: 6.25 kB / 0.6559 GB, free: 9.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.02263/2.334, allocations: 5.911 MB / 0.6616 GB, free: 7.125 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.541e-05/2.334, allocations: 18.81 kB / 0.6616 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.04e-05/2.334, allocations: 26.22 kB / 0.6617 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005667/2.34, allocations: 1.211 MB / 0.6629 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007671/2.348, allocations: 0.811 MB / 0.6636 GB, free: 6.586 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04182/2.39, allocations: 19.85 MB / 0.683 GB, free: 2.949 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006105/2.396, allocations: 122 kB / 0.6832 GB, free: 2.871 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/2.397, allocations: 151.8 kB / 0.6833 GB, free: 2.727 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.001885/2.399, allocations: 210.2 kB / 0.6835 GB, free: 2.57 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0256/2.425, allocations: 5.716 MB / 0.6891 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002193/2.427, allocations: 399.1 kB / 0.6895 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02318/2.45, allocations: 5.769 MB / 0.6951 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.819e-05/2.45, allocations: 32 kB / 0.6951 GB, free: 9.156 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.611e-05/2.45, allocations: 16 kB / 0.6951 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001041/2.45, allocations: 14.16 kB / 0.6952 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04211/2.493, allocations: 11.19 MB / 0.7061 GB, free: 0 / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-05/2.493, allocations: 8.203 kB / 0.7061 GB, free: 0 / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008568/2.501, allocations: 0.6255 MB / 0.7067 GB, free: 0 / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3651/2.866, allocations: 1.569 MB / 0.7082 GB, free: 69.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007914/2.867, allocations: 29.66 kB / 0.7083 GB, free: 69.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03972/2.907, allocations: 28.96 MB / 0.7365 GB, free: 49.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/2.907, allocations: 3.562 kB / 0.7366 GB, free: 49.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02495/2.932, allocations: 8.645 MB / 0.745 GB, free: 48.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004045/2.936, allocations: 0.8624 MB / 0.7458 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001907/2.938, allocations: 14.44 kB / 0.7459 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005284/2.943, allocations: 150.5 kB / 0.746 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001466/2.945, allocations: 282.4 kB / 0.7463 GB, free: 48.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000449/2.945, allocations: 93.17 kB / 0.7464 GB, free: 48.42 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005846/2.951, allocations: 2.077 MB / 0.7484 GB, free: 48.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.322e-06/2.951, allocations: 0 / 0.7484 GB, free: 48.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008755/2.96, allocations: 1.215 MB / 0.7496 GB, free: 48.28 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.02631/2.986, allocations: 10.24 MB / 0.7596 GB, free: 45.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01502/3.001, allocations: 5.902 MB / 0.7653 GB, free: 44.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/3.001, allocations: 0 / 0.7653 GB, free: 44.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0125/3.014, allocations: 4.519 MB / 0.7697 GB, free: 42.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01009/3.024, allocations: 0.9405 MB / 0.7707 GB, free: 42.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04263/3.067, allocations: 12.58 MB / 0.7829 GB, free: 39.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009512/3.076, allocations: 4.608 MB / 0.7874 GB, free: 38.85 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006716/3.083, allocations: 0.9704 MB / 0.7884 GB, free: 38.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006579/3.09, allocations: 2.663 MB / 0.791 GB, free: 38.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.673e-06/3.09, allocations: 4 kB / 0.791 GB, free: 38.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.73/3.82, allocations: 104.1 MB / 0.8927 GB, free: 64.95 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000316/3.82, allocations: 163.1 kB / 0.8928 GB, free: 64.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.831/11.65, allocations: 0 / 0.8928 GB, free: 64.76 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat