Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.786/2.786, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.134e-05, allocations: 3.75 kB / 249.8 MB, free: 5.234 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6076/0.7139, allocations: 84.54 MB / 378.8 MB, free: 6.41 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004237/0.7144, allocations: 78.27 kB / 378.9 MB, free: 6.398 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1015/0.8159, allocations: 15.34 MB / 394.2 MB, free: 16.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.816, allocations: 0 / 394.2 MB, free: 16.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.506e-05/0.816, allocations: 15.75 kB / 394.2 MB, free: 16.92 MB / 314.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.003205/0.8193, allocations: 0.8535 MB / 395.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.8193, allocations: 7.75 kB / 395.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002376/0.8196, allocations: 75.23 kB / 395.2 MB, free: 16.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003238/0.8199, allocations: 77.89 kB / 395.3 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.8213, allocations: 497.7 kB / 395.7 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.8214, allocations: 58.25 kB / 395.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004151/0.8218, allocations: 49.52 kB / 395.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001663/0.8235, allocations: 446.9 kB / 396.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.8253, allocations: 0.4904 MB / 396.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/0.8254, allocations: 0 / 396.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.8255, allocations: 3.953 kB / 396.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.8255, allocations: 11.66 kB / 396.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007078/0.8326, allocations: 2.226 MB / 399 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.834, allocations: 414.1 kB / 399.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007432/0.8348, allocations: 227 kB / 399.6 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.773e-05/0.8349, allocations: 3.875 kB / 399.6 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.749e-05/0.8349, allocations: 45.45 kB / 399.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 4.668e-06/0.835, allocations: 4 kB / 399.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.02079/0.8558, allocations: 2.539 MB / 402.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.8559, allocations: 88.8 kB / 402.3 MB, free: 13.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.8571, allocations: 436.8 kB / 402.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001752/0.8572, allocations: 29.58 kB / 402.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003392/0.8576, allocations: 310.4 kB / 403.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/0.858, allocations: 203.9 kB / 403.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.718e-05/0.8581, allocations: 0 / 403.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.8583, allocations: 367.4 kB / 403.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007033/0.859, allocations: 214.1 kB / 403.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007991/0.8598, allocations: 300.2 kB / 404.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000819/0.8607, allocations: 249.6 kB / 404.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.8607, allocations: 0 / 404.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01718/0.8779, allocations: 1.723 MB / 406.1 MB, free: 11.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.878, allocations: 7.75 kB / 406.1 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.878, allocations: 0 / 406.1 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01622/0.8943, allocations: 1.163 MB / 407.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.8954, allocations: 91.7 kB / 407.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02813/0.9236, allocations: 5.652 MB / 413 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.9251, allocations: 23.98 kB / 413 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.9252, allocations: 26.11 kB / 413.1 MB, free: 7.117 MB / 314.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.0003912/0.9256, allocations: 128.6 kB / 413.2 MB, free: 6.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002786/0.9259, allocations: 55.34 kB / 413.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.9287, allocations: 0.6987 MB / 413.9 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.9288, allocations: 11.95 kB / 414 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.9288, allocations: 0 / 414 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.9288, allocations: 7.984 kB / 414 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007152/0.936, allocations: 1.695 MB / 415.7 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.9361, allocations: 7.938 kB / 415.7 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.9376, allocations: 116.9 kB / 415.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003924/0.9415, allocations: 329.1 kB / 416.1 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.9417, allocations: 10.61 kB / 416.1 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009226/0.9509, allocations: 2.735 MB / 418.8 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.951, allocations: 0 / 418.8 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005202/0.9562, allocations: 1.231 MB / 420.1 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006421/0.9569, allocations: 204.3 kB / 420.3 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.9571, allocations: 4 kB / 420.3 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/0.9586, allocations: 35.97 kB / 420.3 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.9589, allocations: 52.48 kB / 420.4 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.959, allocations: 16.09 kB / 420.4 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008416/0.9599, allocations: 335 kB / 420.7 MB, free: 452 kB / 314.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.9599, allocations: 4 kB / 420.7 MB, free: 448 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001826/0.9618, allocations: 200.1 kB / 420.9 MB, free: 248 kB / 314.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.006502/0.9683, allocations: 1.884 MB / 422.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002974/0.9713, allocations: 0.7608 MB / 423.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.9714, allocations: 4.062 kB / 423.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.9731, allocations: 464.2 kB / 424 MB, free: 13.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.9743, allocations: 54.12 kB / 424.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005849/0.9802, allocations: 1.173 MB / 425.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008014/0.9811, allocations: 0.9272 MB / 426.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000743/0.9818, allocations: 52.55 kB / 426.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007333/0.9826, allocations: 231.3 kB / 426.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.9826, allocations: 4 kB / 426.4 MB, free: 10.58 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1718/1.154, allocations: 16.52 MB / 443 MB, free: 10.11 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.00583/1.16, allocations: 188.8 kB / 443.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.083/5.243, allocations: 0 / 443.2 MB, free: 9.914 MB / 346.7 MB