Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.154e-05, allocations: 6.031 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4394/0.5416, allocations: 93.31 MB / 435.9 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.5419, allocations: 87.94 kB / 436 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07455/0.6165, allocations: 15.85 MB / 451.9 MB, free: 3.043 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.887e-06/0.6165, allocations: 0 / 451.9 MB, free: 3.043 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.664e-05/0.6166, allocations: 23.94 kB / 451.9 MB, free: 3.02 MB / 362.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.002599/0.6192, allocations: 0.8595 MB / 452.8 MB, free: 2.156 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.6193, allocations: 8.031 kB / 452.8 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001806/0.6195, allocations: 97.14 kB / 452.9 MB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.6197, allocations: 79.06 kB / 452.9 MB, free: 2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.6207, allocations: 487.8 kB / 453.4 MB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.6209, allocations: 75.75 kB / 453.5 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003067/0.6212, allocations: 65.2 kB / 453.6 MB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.6226, allocations: 0.571 MB / 454.1 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.6227, allocations: 0 / 454.1 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.743e-05/0.6228, allocations: 21.5 kB / 454.1 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.6228, allocations: 16 kB / 454.2 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.6241, allocations: 471.8 kB / 454.6 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.6296, allocations: 2.332 MB / 457 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.6307, allocations: 433.1 kB / 457.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006331/0.6314, allocations: 242.5 kB / 457.6 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.6314, allocations: 4 kB / 457.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.6315, allocations: 42.5 kB / 457.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 3.707e-06/0.6315, allocations: 0 / 457.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01997/0.6515, allocations: 3.013 MB / 460.7 MB, free: 11.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.6516, allocations: 89.59 kB / 460.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.6526, allocations: 491.1 kB / 461.2 MB, free: 11.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.6528, allocations: 36.89 kB / 461.3 MB, free: 11.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.653, allocations: 340.3 kB / 461.6 MB, free: 11.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.6533, allocations: 218.3 kB / 461.8 MB, free: 10.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.6534, allocations: 14.94 kB / 461.8 MB, free: 10.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6535, allocations: 329.8 kB / 462.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006406/0.6542, allocations: 228.9 kB / 462.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007498/0.6549, allocations: 309.9 kB / 462.7 MB, free: 10.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007421/0.6557, allocations: 259.7 kB / 462.9 MB, free: 10.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.6557, allocations: 0 / 462.9 MB, free: 10.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01308/0.6688, allocations: 1.743 MB / 464.7 MB, free: 8.488 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.6689, allocations: 16.11 kB / 464.7 MB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.6689, allocations: 0 / 464.7 MB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01214/0.681, allocations: 1.176 MB / 465.9 MB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008253/0.6819, allocations: 95.83 kB / 466 MB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02264/0.7046, allocations: 5.764 MB / 471.7 MB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.7058, allocations: 40.05 kB / 471.8 MB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.718e-05/0.7059, allocations: 27.98 kB / 471.8 MB, free: 1.219 MB / 378.7 MB 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.0002329/0.7062, allocations: 132.9 kB / 471.9 MB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/0.7064, allocations: 63.25 kB / 472 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.7088, allocations: 0.7749 MB / 472.8 MB, free: 240 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.7089, allocations: 4 kB / 472.8 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.7089, allocations: 4 kB / 472.8 MB, free: 232 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.7089, allocations: 3.984 kB / 472.8 MB, free: 228 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005974/0.7149, allocations: 1.824 MB / 474.6 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.715, allocations: 3.938 kB / 474.6 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.7161, allocations: 115.8 kB / 474.7 MB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003002/0.7191, allocations: 340.5 kB / 475 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.7193, allocations: 15.98 kB / 475.1 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007088/0.7264, allocations: 2.81 MB / 477.9 MB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.7264, allocations: 7.891 kB / 477.9 MB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004193/0.7306, allocations: 1.271 MB / 479.2 MB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005329/0.7312, allocations: 216.3 kB / 479.4 MB, free: 9.391 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.7314, allocations: 12 kB / 479.4 MB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.7325, allocations: 47.97 kB / 479.4 MB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.7328, allocations: 52.42 kB / 479.5 MB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.709e-05/0.7329, allocations: 16 kB / 479.5 MB, free: 9.266 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000762/0.7336, allocations: 389.6 kB / 479.9 MB, free: 8.887 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7336, allocations: 0 / 479.9 MB, free: 8.887 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001348/0.735, allocations: 216 kB / 480.1 MB, free: 8.676 MB / 394.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.004851/0.7399, allocations: 1.947 MB / 482 MB, free: 6.691 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002344/0.7423, allocations: 0.7957 MB / 482.8 MB, free: 5.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7423, allocations: 0 / 482.8 MB, free: 5.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.7436, allocations: 492.3 kB / 483.3 MB, free: 5.395 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009183/0.7445, allocations: 73.72 kB / 483.4 MB, free: 5.328 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004382/0.7489, allocations: 1.271 MB / 484.6 MB, free: 4.012 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.7496, allocations: 0.9238 MB / 485.6 MB, free: 3.062 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006216/0.7502, allocations: 235.3 kB / 485.8 MB, free: 2.832 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7502, allocations: 0 / 485.8 MB, free: 2.832 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.768/3.519, allocations: 14.05 MB / 499.9 MB, free: 4.789 MB / 410.7 MB