Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.141e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 50.4 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4386/0.5417, allocations: 89.21 MB / 431.8 MB, free: 4.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.542, allocations: 85.02 kB / 431.9 MB, free: 4.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04786/0.5899, allocations: 9.472 MB / 441.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.5899, allocations: 0 / 441.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.5899, allocations: 4 kB / 441.4 MB, free: 12.41 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001645/0.5916, allocations: 0.5813 MB / 442 MB, free: 11.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.5916, allocations: 8.031 kB / 442 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.5918, allocations: 65.53 kB / 442.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.5919, allocations: 39.53 kB / 442.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.5925, allocations: 328 kB / 442.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.5926, allocations: 48.14 kB / 442.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002476/0.5929, allocations: 46.36 kB / 442.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007109/0.5936, allocations: 293.9 kB / 442.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.5936, allocations: 0 / 442.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.784e-05/0.5937, allocations: 13.94 kB / 442.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.5937, allocations: 12 kB / 442.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007124/0.5944, allocations: 246.7 kB / 443.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.5971, allocations: 1.174 MB / 444.2 MB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.5978, allocations: 259 kB / 444.5 MB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.5982, allocations: 145 kB / 444.6 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.5982, allocations: 4 kB / 444.6 MB, free: 9.602 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.5983, allocations: 42.94 kB / 444.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 3.256e-06/0.5983, allocations: 0 / 444.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0152/0.6135, allocations: 2.149 MB / 446.8 MB, free: 7.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.6136, allocations: 84.89 kB / 446.9 MB, free: 7.582 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005054/0.6141, allocations: 264.6 kB / 447.2 MB, free: 7.375 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.585e-05/0.6142, allocations: 40.64 kB / 447.2 MB, free: 7.336 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.6144, allocations: 223.4 kB / 447.4 MB, free: 7.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.6145, allocations: 144 kB / 447.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.6146, allocations: 11.06 kB / 447.6 MB, free: 7.012 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.6147, allocations: 329.2 kB / 447.9 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.6152, allocations: 141.9 kB / 448 MB, free: 6.609 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.6156, allocations: 197.6 kB / 448.2 MB, free: 6.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.6161, allocations: 157.4 kB / 448.4 MB, free: 6.371 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.6161, allocations: 4 kB / 448.4 MB, free: 6.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01186/0.628, allocations: 1.449 MB / 449.8 MB, free: 5.117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.6281, allocations: 4 kB / 449.8 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.6281, allocations: 0 / 449.8 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01136/0.6395, allocations: 1.046 MB / 450.9 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.64, allocations: 55.91 kB / 450.9 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01824/0.6583, allocations: 4.356 MB / 455.3 MB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008227/0.6592, allocations: 35.61 kB / 455.3 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.008e-05/0.6592, allocations: 19.73 kB / 455.4 MB, free: 0.6641 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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 {1 20} Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.6594, allocations: 121.9 kB / 455.5 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.6596, allocations: 35.69 kB / 455.5 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002529/0.6621, allocations: 0.5948 MB / 456.1 MB, free: 92 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.6622, allocations: 4 kB / 456.1 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6622, allocations: 0 / 456.1 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.6622, allocations: 3.953 kB / 456.1 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004962/0.6672, allocations: 1.232 MB / 457.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/0.6672, allocations: 7.953 kB / 457.3 MB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009727/0.6682, allocations: 90.5 kB / 457.4 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002571/0.6708, allocations: 261.2 kB / 457.7 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.592e-05/0.6709, allocations: 19.67 kB / 457.7 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005132/0.6761, allocations: 2.133 MB / 459.8 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.6761, allocations: 0 / 459.8 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003076/0.6792, allocations: 0.9336 MB / 460.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.6795, allocations: 156.6 kB / 460.9 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.511e-05/0.6796, allocations: 8 kB / 460.9 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008042/0.6804, allocations: 31.98 kB / 461 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.6806, allocations: 36.38 kB / 461 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.225e-05/0.6807, allocations: 12 kB / 461 MB, free: 11.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003417/0.6811, allocations: 221.3 kB / 461.2 MB, free: 11.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6811, allocations: 0 / 461.2 MB, free: 11.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009802/0.6821, allocations: 140 kB / 461.4 MB, free: 11.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.003649/0.6857, allocations: 1.598 MB / 463 MB, free: 9.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.6873, allocations: 0.5251 MB / 463.5 MB, free: 9.309 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.6873, allocations: 4 kB / 463.5 MB, free: 9.305 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007632/0.6881, allocations: 343 kB / 463.8 MB, free: 8.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.6886, allocations: 28.61 kB / 463.9 MB, free: 8.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.6916, allocations: 0.8538 MB / 464.7 MB, free: 8.031 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.692, allocations: 0.797 MB / 465.5 MB, free: 7.203 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.6924, allocations: 123.4 kB / 465.6 MB, free: 7.082 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6924, allocations: 0 / 465.6 MB, free: 7.082 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.525/3.218, allocations: 7.521 MB / 473.2 MB, free: 15.55 MB / 394.7 MB