Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.298e-05, allocations: 7.984 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09143/0.09149, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5151, allocations: 81.87 MB / 381.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5154, allocations: 85.38 kB / 381.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04353/0.559, allocations: 9.198 MB / 391.1 MB, free: 11.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.559, allocations: 4 kB / 391.1 MB, free: 11.85 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.169e-05/0.5591, allocations: 11.48 kB / 391.1 MB, free: 11.85 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001541/0.5606, allocations: 0.5798 MB / 391.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5607, allocations: 11.56 kB / 391.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.721e-05/0.5608, allocations: 61.77 kB / 391.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.5609, allocations: 42.98 kB / 391.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005719/0.5615, allocations: 323 kB / 392.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.667e-05/0.5616, allocations: 51.34 kB / 392.2 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.5619, allocations: 36.08 kB / 392.2 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000695/0.5626, allocations: 294.8 kB / 392.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.5626, allocations: 0 / 392.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.767e-05/0.5627, allocations: 14.62 kB / 392.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.5627, allocations: 11.77 kB / 392.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006635/0.5634, allocations: 264.2 kB / 392.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/0.5659, allocations: 1.168 MB / 393.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006432/0.5666, allocations: 265.3 kB / 394.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.5669, allocations: 142 kB / 394.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.567, allocations: 10.72 kB / 394.3 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.567, allocations: 37.53 kB / 394.4 MB, free: 10.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.807e-06/0.5671, allocations: 7.984 kB / 394.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=42): time 0.01461/0.5817, allocations: 2.149 MB / 396.5 MB, free: 9.867 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.5818, allocations: 84.55 kB / 396.6 MB, free: 9.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004974/0.5823, allocations: 256.3 kB / 396.9 MB, free: 9.676 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.5824, allocations: 35.48 kB / 396.9 MB, free: 9.645 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.264e-05/0.5825, allocations: 225.8 kB / 397.1 MB, free: 9.457 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.5827, allocations: 148.5 kB / 397.3 MB, free: 9.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.984e-05/0.5827, allocations: 7.188 kB / 397.3 MB, free: 9.367 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.5828, allocations: 325.4 kB / 397.6 MB, free: 9.055 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.5832, allocations: 141.4 kB / 397.7 MB, free: 9.055 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/0.5836, allocations: 196.9 kB / 397.9 MB, free: 9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004373/0.5841, allocations: 156.9 kB / 398.1 MB, free: 8.996 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.5841, allocations: 0 / 398.1 MB, free: 8.996 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01142/0.5955, allocations: 1.46 MB / 399.5 MB, free: 8.852 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.5956, allocations: 7.594 kB / 399.5 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.5956, allocations: 3.984 kB / 399.6 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/0.6065, allocations: 1.04 MB / 400.6 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005379/0.6071, allocations: 65.5 kB / 400.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/0.6246, allocations: 4.349 MB / 405 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008991/0.6256, allocations: 38.23 kB / 405 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.947e-05/0.6257, allocations: 22.95 kB / 405.1 MB, free: 7.289 MB / 314.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.00018/0.6259, allocations: 120.3 kB / 405.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.626, allocations: 26.97 kB / 405.2 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002526/0.6286, allocations: 0.6125 MB / 405.8 MB, free: 7.082 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.6286, allocations: 3.875 kB / 405.8 MB, free: 7.082 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.6287, allocations: 0 / 405.8 MB, free: 7.082 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.6287, allocations: 6.875 kB / 405.8 MB, free: 7.082 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004776/0.6335, allocations: 1.22 MB / 407.1 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.6335, allocations: 7.812 kB / 407.1 MB, free: 6.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009415/0.6345, allocations: 96.12 kB / 407.2 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/0.6371, allocations: 255 kB / 407.4 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.6373, allocations: 10.33 kB / 407.4 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.6426, allocations: 2.137 MB / 409.5 MB, free: 21.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.6427, allocations: 3.984 kB / 409.6 MB, free: 21.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/0.6458, allocations: 0.9309 MB / 410.5 MB, free: 20.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.6462, allocations: 155.5 kB / 410.6 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.056e-05/0.6463, allocations: 7.125 kB / 410.6 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00084/0.6471, allocations: 34.36 kB / 410.7 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.6474, allocations: 34.66 kB / 410.7 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.954e-05/0.6474, allocations: 14.64 kB / 410.7 MB, free: 20.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003494/0.6478, allocations: 207.2 kB / 410.9 MB, free: 20.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6478, allocations: 7.938 kB / 410.9 MB, free: 20.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001028/0.6488, allocations: 147.2 kB / 411.1 MB, free: 20.66 MB / 330.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.003827/0.6527, allocations: 1.596 MB / 412.7 MB, free: 19.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.6543, allocations: 0.5624 MB / 413.2 MB, free: 19.51 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6544, allocations: 0 / 413.2 MB, free: 19.51 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008538/0.6552, allocations: 349.7 kB / 413.6 MB, free: 19.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005862/0.6559, allocations: 33.88 kB / 413.6 MB, free: 19.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.6588, allocations: 0.8444 MB / 414.5 MB, free: 18.85 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.6593, allocations: 0.8026 MB / 415.3 MB, free: 18.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.6597, allocations: 115.9 kB / 415.4 MB, free: 18.07 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6597, allocations: 0 / 415.4 MB, free: 18.07 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.694/3.354, allocations: 7.532 MB / 422.9 MB, free: 14.27 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat