Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.076/2.076, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.309e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2939, allocations: 44.5 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1449/0.4388, allocations: 84.55 MB / 378.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.4392, allocations: 83.95 kB / 378.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07056/0.5097, allocations: 15.27 MB / 394.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5098, allocations: 0 / 394.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.145e-05/0.5099, allocations: 20 kB / 394.2 MB, free: 13.84 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002555/0.5124, allocations: 0.8526 MB / 395 MB, free: 12.94 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5125, allocations: 12.03 kB / 395 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002694/0.5128, allocations: 79.11 kB / 395.1 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.5139, allocations: 0.4923 MB / 395.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.5141, allocations: 51.02 kB / 395.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003163/0.5144, allocations: 43.98 kB / 395.7 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001308/0.5157, allocations: 446.5 kB / 396.1 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.517, allocations: 0.494 MB / 396.6 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.517, allocations: 4 kB / 396.6 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.099e-05/0.5171, allocations: 0 / 396.6 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.5172, allocations: 15.95 kB / 396.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005254/0.5224, allocations: 2.217 MB / 398.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009739/0.5234, allocations: 413.8 kB / 399.3 MB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005698/0.524, allocations: 226.2 kB / 399.5 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.185e-05/0.5241, allocations: 8 kB / 399.5 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.5241, allocations: 38.55 kB / 399.5 MB, free: 8.227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.437e-06/0.5241, allocations: 3.938 kB / 399.5 MB, free: 8.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.01516/0.5393, allocations: 2.54 MB / 402.1 MB, free: 5.621 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.5394, allocations: 85.67 kB / 402.1 MB, free: 5.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008908/0.5403, allocations: 441.2 kB / 402.6 MB, free: 5.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.5404, allocations: 29.7 kB / 402.6 MB, free: 5.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.5407, allocations: 312.2 kB / 402.9 MB, free: 4.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/0.541, allocations: 208.9 kB / 403.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.715e-05/0.5411, allocations: 0 / 403.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.5413, allocations: 366.7 kB / 403.5 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005687/0.5418, allocations: 213.5 kB / 403.7 MB, free: 3.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006539/0.5425, allocations: 299.4 kB / 404 MB, free: 3.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006687/0.5432, allocations: 250 kB / 404.2 MB, free: 3.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.5432, allocations: 4 kB / 404.2 MB, free: 3.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01243/0.5556, allocations: 1.713 MB / 405.9 MB, free: 1.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.5557, allocations: 11.98 kB / 405.9 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.5557, allocations: 0 / 405.9 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01153/0.5673, allocations: 1.164 MB / 407.1 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/0.5681, allocations: 91.89 kB / 407.2 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02084/0.589, allocations: 5.649 MB / 412.8 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.5901, allocations: 32.03 kB / 412.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.966e-05/0.5902, allocations: 27.98 kB / 412.9 MB, free: 10.54 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0003017/0.5905, allocations: 128.6 kB / 413 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004556/0.5951, allocations: 0.8855 MB / 413.9 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.5953, allocations: 55.34 kB / 414 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/0.5974, allocations: 0.7048 MB / 414.7 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.5974, allocations: 8 kB / 414.7 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.5974, allocations: 0 / 414.7 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.5974, allocations: 7.984 kB / 414.7 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005209/0.6027, allocations: 1.696 MB / 416.4 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.6027, allocations: 0 / 416.4 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.6038, allocations: 115.9 kB / 416.5 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/0.6066, allocations: 333 kB / 416.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.011e-05/0.6067, allocations: 7.984 kB / 416.8 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006651/0.6133, allocations: 2.726 MB / 419.6 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/0.6134, allocations: 11.86 kB / 419.6 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003656/0.6171, allocations: 1.22 MB / 420.8 MB, free: 2.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.6175, allocations: 204.4 kB / 421 MB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.6177, allocations: 3.953 kB / 421 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.6187, allocations: 43.95 kB / 421 MB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.619, allocations: 48.44 kB / 421.1 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.069e-05/0.619, allocations: 23.98 kB / 421.1 MB, free: 2.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006128/0.6197, allocations: 339 kB / 421.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6197, allocations: 3.938 kB / 421.4 MB, free: 1.777 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001231/0.6209, allocations: 200.1 kB / 421.6 MB, free: 1.582 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.2432/0.8641, allocations: 1.869 MB / 423.5 MB, free: 106.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002281/0.8665, allocations: 0.7668 MB / 424.3 MB, free: 106.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.8665, allocations: 0.875 kB / 424.3 MB, free: 106.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.8676, allocations: 473.3 kB / 424.7 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008102/0.8684, allocations: 48.78 kB / 424.8 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.8723, allocations: 1.173 MB / 426 MB, free: 105.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004744/0.8728, allocations: 0.9217 MB / 426.9 MB, free: 105.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005044/0.8733, allocations: 52.36 kB / 426.9 MB, free: 105.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/0.8738, allocations: 236.6 kB / 427.2 MB, free: 105.1 MB / 362.7 MB Notification: Performance of SimCode: time 2.104e-06/0.8738, allocations: 0 / 427.2 MB, free: 105.1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07947/0.9533, allocations: 15.76 MB / 442.9 MB, free: 102 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002565/0.9536, allocations: 180.2 kB / 443.1 MB, free: 101.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.871/3.824, allocations: 5.875 kB / 443.1 MB, free: 101.8 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat