Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.164/2.164, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.313e-05/3.321e-05, allocations: 4 kB / 292.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1028, allocations: 50.41 MB / 343.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.5338, allocations: 86.77 MB / 429.9 MB, free: 7.477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.5342, allocations: 90.5 kB / 430 MB, free: 7.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1401/0.6743, allocations: 39.69 MB / 469.7 MB, free: 3.062 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6743, allocations: 0 / 469.7 MB, free: 3.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003394/0.6747, allocations: 35.94 kB / 469.8 MB, free: 3.027 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004907/0.6796, allocations: 1.937 MB / 471.7 MB, free: 1.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.6797, allocations: 12.03 kB / 471.7 MB, free: 1.148 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.6799, allocations: 74.09 kB / 471.8 MB, free: 1.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008065/0.6807, allocations: 292.3 kB / 472.1 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005839/0.6866, allocations: 1.876 MB / 473.9 MB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.6867, allocations: 55.05 kB / 474 MB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000279/0.687, allocations: 45.36 kB / 474 MB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009231/0.688, allocations: 371.1 kB / 474.4 MB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.688, allocations: 4 kB / 474.4 MB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/0.6881, allocations: 11.25 kB / 474.4 MB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.6881, allocations: 12 kB / 474.4 MB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000817/0.6889, allocations: 295.5 kB / 474.7 MB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008038/0.697, allocations: 3.108 MB / 477.8 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008518/0.6979, allocations: 289.1 kB / 478.1 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003745/0.6983, allocations: 149.7 kB / 478.2 MB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.6984, allocations: 12 kB / 478.3 MB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.6984, allocations: 34.55 kB / 478.3 MB, free: 11.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.885e-06/0.6984, allocations: 4 kB / 478.3 MB, free: 11.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.007424/0.7059, allocations: 2.246 MB / 480.5 MB, free: 8.742 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.706, allocations: 81.55 kB / 480.6 MB, free: 8.645 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01737/0.7233, allocations: 4.855 MB / 485.5 MB, free: 3.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.7235, allocations: 33.7 kB / 485.5 MB, free: 3.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/0.7256, allocations: 1.183 MB / 486.7 MB, free: 2.562 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002551/0.7259, allocations: 165.5 kB / 486.9 MB, free: 2.398 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.726, allocations: 12 kB / 486.9 MB, free: 2.387 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.7261, allocations: 325.9 kB / 487.2 MB, free: 2.062 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004222/0.7266, allocations: 137.1 kB / 487.3 MB, free: 1.926 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/0.727, allocations: 199.8 kB / 487.5 MB, free: 1.711 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004702/0.7275, allocations: 165.6 kB / 487.7 MB, free: 1.551 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.7275, allocations: 0 / 487.7 MB, free: 1.551 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.004637/0.7322, allocations: 1.044 MB / 488.7 MB, free: 0.4922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.7323, allocations: 8 kB / 488.7 MB, free: 496 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.7323, allocations: 0 / 488.7 MB, free: 496 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008118/0.7331, allocations: 156.8 kB / 488.9 MB, free: 336 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008408/0.734, allocations: 99.81 kB / 489 MB, free: 236 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.7353, allocations: 0.7404 MB / 489.7 MB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.7365, allocations: 31.95 kB / 489.8 MB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/0.7366, allocations: 19.98 kB / 489.8 MB, free: 15.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.7368, allocations: 132.8 kB / 489.9 MB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007665/0.7376, allocations: 280.5 kB / 490.2 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.74, allocations: 0.7843 MB / 491 MB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.7401, allocations: 7.984 kB / 491 MB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.7401, allocations: 0 / 491 MB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.7401, allocations: 0 / 491 MB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.7436, allocations: 1.71 MB / 492.7 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.7437, allocations: 0 / 492.7 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009552/0.7446, allocations: 95.88 kB / 492.8 MB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005159/0.7452, allocations: 100.8 kB / 492.9 MB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-05/0.7452, allocations: 12 kB / 492.9 MB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000991/0.7463, allocations: 0.6382 MB / 493.5 MB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7463, allocations: 4.062 kB / 493.5 MB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.7489, allocations: 1.067 MB / 494.6 MB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/0.751, allocations: 0.6771 MB / 495.3 MB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005423/0.7516, allocations: 16 kB / 495.3 MB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.7527, allocations: 27.98 kB / 495.3 MB, free: 9.715 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.7528, allocations: 36.33 kB / 495.3 MB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.7529, allocations: 12 kB / 495.4 MB, free: 9.668 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01034/0.7633, allocations: 3.804 MB / 499.2 MB, free: 5.871 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.232e-06/0.7633, allocations: 0 / 499.2 MB, free: 5.871 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001898/0.7652, allocations: 331.9 kB / 499.5 MB, free: 5.547 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004327/0.7696, allocations: 1.98 MB / 0.4897 GB, free: 3.645 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.7709, allocations: 355 kB / 0.4901 GB, free: 3.301 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7709, allocations: 0 / 0.4901 GB, free: 3.301 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005874/0.7715, allocations: 197.5 kB / 0.4902 GB, free: 3.109 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.7735, allocations: 195.8 kB / 0.4904 GB, free: 2.914 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/0.7891, allocations: 5.439 MB / 0.4957 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003027/0.7922, allocations: 1.857 MB / 0.4976 GB, free: 11.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001358/0.7936, allocations: 383.6 kB / 0.4979 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002573/0.7962, allocations: 1.015 MB / 0.4989 GB, free: 10.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7962, allocations: 0 / 0.4989 GB, free: 10.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4041/1.2, allocations: 44.95 MB / 0.5428 GB, free: 130.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/1.201, allocations: 273.2 kB / 0.5431 GB, free: 130.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.022/5.222, allocations: 7.406 kB / 0.5431 GB, free: 130.2 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat