Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.716e-05, allocations: 0 / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 50.41 MB / 342.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4386/0.54, allocations: 95.89 MB / 438.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.5403, allocations: 82.33 kB / 438.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1672/0.7076, allocations: 40.75 MB / 479.4 MB, free: 9.734 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7076, allocations: 0 / 479.4 MB, free: 9.734 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001055/0.7077, allocations: 32 kB / 479.4 MB, free: 9.703 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003991/0.7117, allocations: 1.554 MB / 481 MB, free: 8.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.7118, allocations: 16.03 kB / 481 MB, free: 8.074 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004179/0.7122, allocations: 219.9 kB / 481.2 MB, free: 7.848 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00117/0.7134, allocations: 253.6 kB / 481.4 MB, free: 7.598 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003011/0.7164, allocations: 1.094 MB / 482.5 MB, free: 6.457 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.7166, allocations: 111.1 kB / 482.6 MB, free: 6.348 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003452/0.7169, allocations: 163.9 kB / 482.8 MB, free: 6.188 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003637/0.7206, allocations: 1.407 MB / 484.2 MB, free: 4.707 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.487e-05/0.7207, allocations: 19.83 kB / 484.2 MB, free: 4.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/0.7209, allocations: 64 kB / 484.3 MB, free: 4.625 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.201e-05/0.721, allocations: 36 kB / 484.3 MB, free: 4.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/0.7238, allocations: 0.8878 MB / 485.2 MB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.7375, allocations: 6.66 MB / 491.9 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009939/0.7386, allocations: 359.4 kB / 492.2 MB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.7391, allocations: 209.8 kB / 492.4 MB, free: 12.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.7392, allocations: 4.438 kB / 492.4 MB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005969/0.7398, allocations: 260.8 kB / 492.7 MB, free: 11.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.905e-06/0.7398, allocations: 0 / 492.7 MB, free: 11.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.003896/0.7437, allocations: 1.62 MB / 494.3 MB, free: 10.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.7439, allocations: 184.5 kB / 494.5 MB, free: 9.934 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.7462, allocations: 1.069 MB / 495.5 MB, free: 8.852 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.7463, allocations: 37.7 kB / 495.6 MB, free: 8.809 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009811/0.7472, allocations: 0.8672 MB / 496.5 MB, free: 7.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.7475, allocations: 209.2 kB / 496.7 MB, free: 7.723 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/0.7476, allocations: 24 kB / 496.7 MB, free: 7.699 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.7478, allocations: 353.9 kB / 497 MB, free: 7.348 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006064/0.7484, allocations: 210.6 kB / 497.2 MB, free: 7.141 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.7496, allocations: 0.7736 MB / 498 MB, free: 6.086 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008925/0.7505, allocations: 376.7 kB / 498.4 MB, free: 5.715 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/0.7505, allocations: 8 kB / 498.4 MB, free: 5.707 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002711/0.7532, allocations: 1.091 MB / 499.5 MB, free: 4.598 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.961e-05/0.7533, allocations: 41.69 kB / 499.5 MB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.7533, allocations: 23.94 kB / 499.5 MB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/0.7537, allocations: 70.36 kB / 499.6 MB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.7553, allocations: 267.6 kB / 499.9 MB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.7578, allocations: 2.568 MB / 0.4907 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.7594, allocations: 72.05 kB / 0.4907 GB, free: 1.285 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.7595, allocations: 56 kB / 0.4908 GB, free: 1.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002709/0.7598, allocations: 200.4 kB / 0.491 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/0.7601, allocations: 138.3 kB / 0.4911 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.7615, allocations: 0.5058 MB / 0.4916 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.7615, allocations: 8 kB / 0.4916 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.7615, allocations: 3.984 kB / 0.4916 GB, free: 364 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.7615, allocations: 4 kB / 0.4916 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003968/0.7655, allocations: 1.888 MB / 0.4935 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.7655, allocations: 4 kB / 0.4935 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008699/0.7664, allocations: 112.3 kB / 0.4936 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.7667, allocations: 41.7 kB / 0.4936 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.7667, allocations: 16 kB / 0.4936 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002333/0.7691, allocations: 2.545 MB / 0.4961 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.587e-06/0.7691, allocations: 7.938 kB / 0.4961 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.7712, allocations: 1.073 MB / 0.4972 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006162/0.7718, allocations: 247.5 kB / 0.4974 GB, free: 9.828 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.7721, allocations: 23.98 kB / 0.4974 GB, free: 9.805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.7731, allocations: 35.94 kB / 0.4975 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.7732, allocations: 47.88 kB / 0.4975 GB, free: 9.723 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.245e-05/0.7733, allocations: 27.98 kB / 0.4975 GB, free: 9.695 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001753/0.775, allocations: 0.7819 MB / 0.4983 GB, free: 8.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7751, allocations: 0 / 0.4983 GB, free: 8.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001734/0.7768, allocations: 347.9 kB / 0.4986 GB, free: 8.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003135/0.78, allocations: 2.843 MB / 0.5014 GB, free: 5.598 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001958/0.7819, allocations: 0.8372 MB / 0.5022 GB, free: 4.734 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.782, allocations: 0 / 0.5022 GB, free: 4.734 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009101/0.7829, allocations: 448 kB / 0.5026 GB, free: 4.277 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.7852, allocations: 305.2 kB / 0.5029 GB, free: 3.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00609/0.7914, allocations: 2.108 MB / 0.505 GB, free: 1.777 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.7925, allocations: 1.213 MB / 0.5062 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001078/0.7936, allocations: 171.3 kB / 0.5063 GB, free: 372 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.7947, allocations: 0.5853 MB / 0.5069 GB, free: 15.77 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7947, allocations: 7.938 kB / 0.5069 GB, free: 15.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3991/1.194, allocations: 28.35 MB / 0.5346 GB, free: 122.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/1.194, allocations: 188.5 kB / 0.5348 GB, free: 121.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.398/4.593, allocations: 0 / 0.5348 GB, free: 121.9 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat