Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.186/2.186, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.43e-05, allocations: 7.984 kB / 292.3 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 50.41 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5444/0.6497, allocations: 149 MB / 491.7 MB, free: 9.969 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003775/0.6502, allocations: 101.2 kB / 491.8 MB, free: 9.914 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.379/2.029, allocations: 233.4 MB / 0.7082 GB, free: 40.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.275e-06/2.03, allocations: 0 / 0.7082 GB, free: 40.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006972/2.03, allocations: 157.2 kB / 0.7083 GB, free: 40.88 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.0359/2.066, allocations: 6.804 MB / 0.715 GB, free: 38.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/2.066, allocations: 13.72 kB / 0.715 GB, free: 38.6 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006316/2.073, allocations: 1.139 MB / 0.7161 GB, free: 38.49 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03246/2.105, allocations: 3.658 MB / 0.7197 GB, free: 38.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02274/2.128, allocations: 6.029 MB / 0.7256 GB, free: 37.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007238/2.129, allocations: 0.5231 MB / 0.7261 GB, free: 37.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003499/2.132, allocations: 0.6992 MB / 0.7268 GB, free: 37.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03765/2.17, allocations: 10.94 MB / 0.7374 GB, free: 36.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004979/2.17, allocations: 11.59 kB / 0.7375 GB, free: 36.46 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003181/2.174, allocations: 303.4 kB / 0.7377 GB, free: 36.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008691/2.175, allocations: 0.5143 MB / 0.7383 GB, free: 36.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03305/2.208, allocations: 9.969 MB / 0.748 GB, free: 36.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09311/2.301, allocations: 37.89 MB / 0.785 GB, free: 21.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02766/2.329, allocations: 28.08 MB / 0.8124 GB, free: 9.969 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006199/2.335, allocations: 2.566 MB / 0.8149 GB, free: 8.969 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02294/2.358, allocations: 7.938 MB / 0.8227 GB, free: 4.934 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.684e-05/2.358, allocations: 55.56 kB / 0.8227 GB, free: 4.879 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 5.31e-06/2.358, allocations: 0 / 0.8227 GB, free: 4.879 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.02653/2.384, allocations: 8.319 MB / 0.8308 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003078/2.388, allocations: 1.927 MB / 0.8327 GB, free: 15.23 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01018/2.398, allocations: 3.325 MB / 0.836 GB, free: 13.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005783/2.398, allocations: 65.17 kB / 0.836 GB, free: 13.81 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00413/2.403, allocations: 3.539 MB / 0.8395 GB, free: 11.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001495/2.404, allocations: 0.8301 MB / 0.8403 GB, free: 10.49 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006539/2.405, allocations: 100.8 kB / 0.8404 GB, free: 10.41 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005364/2.405, allocations: 499.9 kB / 0.8409 GB, free: 10.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005392/2.411, allocations: 1.838 MB / 0.8427 GB, free: 9.301 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008132/2.419, allocations: 4.23 MB / 0.8468 GB, free: 4.855 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007531/2.427, allocations: 2.794 MB / 0.8495 GB, free: 2.523 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.289e-05/2.427, allocations: 24 kB / 0.8495 GB, free: 2.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.02199/2.449, allocations: 6.602 MB / 0.856 GB, free: 13.14 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.025e-05/2.449, allocations: 40 kB / 0.856 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/2.449, allocations: 84 kB / 0.8561 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004076/2.453, allocations: 0.7506 MB / 0.8568 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007971/2.461, allocations: 1.104 MB / 0.8579 GB, free: 11.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01249/2.474, allocations: 5.203 MB / 0.863 GB, free: 6.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007182/2.481, allocations: 304 kB / 0.8633 GB, free: 6.648 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/2.482, allocations: 267.1 kB / 0.8636 GB, free: 6.395 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * 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: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00213/2.485, allocations: 450.3 kB / 0.864 GB, free: 5.996 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/2.486, allocations: 386.3 kB / 0.8643 GB, free: 5.617 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01511/2.501, allocations: 4.208 MB / 0.8685 GB, free: 2.102 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.683e-05/2.501, allocations: 28 kB / 0.8685 GB, free: 2.074 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/2.501, allocations: 4 kB / 0.8685 GB, free: 2.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-05/2.501, allocations: 10.55 kB / 0.8685 GB, free: 2.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.421/2.922, allocations: 14.31 MB / 0.8825 GB, free: 80.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-05/2.923, allocations: 10.34 kB / 0.8825 GB, free: 80.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004193/2.927, allocations: 470.3 kB / 0.8829 GB, free: 80.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004071/2.931, allocations: 0.6954 MB / 0.8836 GB, free: 80.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007078/2.932, allocations: 66.84 kB / 0.8837 GB, free: 80.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01461/2.946, allocations: 6.924 MB / 0.8904 GB, free: 77.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002423/2.949, allocations: 1.87 MB / 0.8923 GB, free: 76.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/2.967, allocations: 7.73 MB / 0.8998 GB, free: 74.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003505/2.97, allocations: 0.794 MB / 0.9006 GB, free: 74.22 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001796/2.972, allocations: 58.41 kB / 0.9006 GB, free: 74.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004901/2.977, allocations: 176.2 kB / 0.9008 GB, free: 74.22 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009807/2.978, allocations: 216 kB / 0.901 GB, free: 74.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003545/2.979, allocations: 87.03 kB / 0.9011 GB, free: 74.21 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007143/2.986, allocations: 2.433 MB / 0.9035 GB, free: 74.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.204e-06/2.986, allocations: 0 / 0.9035 GB, free: 74.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009173/2.995, allocations: 1.342 MB / 0.9048 GB, free: 74.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 235 * 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: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01986/3.015, allocations: 11.38 MB / 0.9159 GB, free: 68.86 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0129/3.028, allocations: 4.835 MB / 0.9206 GB, free: 68.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.691e-05/3.028, allocations: 5 kB / 0.9206 GB, free: 68.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006617/3.034, allocations: 2.301 MB / 0.9229 GB, free: 68.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008426/3.043, allocations: 0.9077 MB / 0.9238 GB, free: 68.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04434/3.087, allocations: 12.41 MB / 0.9359 GB, free: 65.51 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/3.098, allocations: 4.616 MB / 0.9404 GB, free: 64.67 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008552/3.106, allocations: 1.362 MB / 0.9417 GB, free: 64.63 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006993/3.113, allocations: 2.525 MB / 0.9442 GB, free: 64.62 MB / 490.7 MB Notification: Performance of SimCode: time 2.244e-06/3.113, allocations: 0 / 0.9442 GB, free: 64.62 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6172/3.73, allocations: 107.9 MB / 1.05 GB, free: 53.09 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002873/3.731, allocations: 249.2 kB / 1.05 GB, free: 52.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.682/10.41, allocations: 0 / 1.05 GB, free: 52.77 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat