Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.252/2.252, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.743e-05, allocations: 2.75 kB / 249.8 MB, free: 5.242 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.507/0.6238, allocations: 78.24 MB / 372.5 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.6241, allocations: 81.67 kB / 372.6 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1464/0.7705, allocations: 37.79 MB / 410.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.7706, allocations: 0 / 410.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000375/0.771, allocations: 36 kB / 410.4 MB, free: 5.289 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005928/0.7769, allocations: 1.984 MB / 412.4 MB, free: 3.371 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.777, allocations: 12.03 kB / 412.4 MB, free: 3.359 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009976/0.778, allocations: 284.3 kB / 412.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006641/0.7847, allocations: 1.867 MB / 414.6 MB, free: 1.531 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.7848, allocations: 46.44 kB / 414.6 MB, free: 1.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000314/0.7852, allocations: 35.98 kB / 414.7 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009746/0.7862, allocations: 273 kB / 414.9 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009692/0.7872, allocations: 318.8 kB / 415.2 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.7872, allocations: 3.938 kB / 415.2 MB, free: 1.023 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.7873, allocations: 0 / 415.2 MB, free: 1.023 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.7873, allocations: 8 kB / 415.2 MB, free: 1.016 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008483/0.7958, allocations: 3.01 MB / 418.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008321/0.7967, allocations: 289.1 kB / 418.5 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003767/0.7971, allocations: 141.6 kB / 418.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.206e-05/0.7971, allocations: 4 kB / 418.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.7972, allocations: 37.56 kB / 418.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 3.958e-06/0.7972, allocations: 0 / 418.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.006611/0.8038, allocations: 2.028 MB / 420.7 MB, free: 12.42 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.8039, allocations: 81.55 kB / 420.8 MB, free: 12.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01754/0.8215, allocations: 4.68 MB / 425.5 MB, free: 8.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.8217, allocations: 25.7 kB / 425.5 MB, free: 8.895 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.8237, allocations: 1.153 MB / 426.7 MB, free: 8.477 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.824, allocations: 161.8 kB / 426.8 MB, free: 8.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.8241, allocations: 0 / 426.8 MB, free: 8.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.8243, allocations: 339.6 kB / 427.2 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004072/0.8247, allocations: 126.1 kB / 427.3 MB, free: 7.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004895/0.8252, allocations: 199 kB / 427.5 MB, free: 7.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004898/0.8257, allocations: 156.8 kB / 427.6 MB, free: 7.684 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.8257, allocations: 3.938 kB / 427.6 MB, free: 7.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002602/0.8283, allocations: 0.7042 MB / 428.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.257e-05/0.8284, allocations: 59.41 kB / 428.4 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.8285, allocations: 3.938 kB / 428.4 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000808/0.8293, allocations: 145.3 kB / 428.6 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008633/0.8302, allocations: 91.02 kB / 428.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.8316, allocations: 0.7768 MB / 429.4 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.8329, allocations: 23.77 kB / 429.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.833, allocations: 19.75 kB / 429.5 MB, free: 6.078 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real 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 (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0002722/0.8332, allocations: 120.6 kB / 429.6 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001913/0.8352, allocations: 0.6164 MB / 430.2 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000801/0.836, allocations: 279.5 kB / 430.5 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/0.8385, allocations: 0.7068 MB / 431.2 MB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.8385, allocations: 8 kB / 431.2 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.8386, allocations: 0 / 431.2 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.8386, allocations: 0 / 431.2 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003954/0.8425, allocations: 1.621 MB / 432.8 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.8426, allocations: 4.031 kB / 432.8 MB, free: 3.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.8438, allocations: 95.88 kB / 432.9 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005497/0.8444, allocations: 98.77 kB / 433 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.309e-05/0.8445, allocations: 9.5 kB / 433 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.8457, allocations: 0.6508 MB / 433.7 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.8457, allocations: 0 / 433.7 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003257/0.849, allocations: 1.028 MB / 434.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002563/0.8516, allocations: 0.6655 MB / 435.4 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006855/0.8524, allocations: 11.94 kB / 435.4 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.8535, allocations: 19.98 kB / 435.4 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.8537, allocations: 32.39 kB / 435.4 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.239e-05/0.8537, allocations: 12 kB / 435.4 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.01034/0.8641, allocations: 3.635 MB / 439.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.8642, allocations: 0 / 439.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002218/0.8664, allocations: 319.9 kB / 439.4 MB, free: 12.8 MB / 346.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.004544/0.871, allocations: 1.882 MB / 441.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.8724, allocations: 458.4 kB / 441.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.8724, allocations: 0 / 441.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006059/0.873, allocations: 193.5 kB / 441.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.8749, allocations: 159.5 kB / 442 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/0.8917, allocations: 5.382 MB / 447.4 MB, free: 4.699 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/0.8949, allocations: 1.86 MB / 449.3 MB, free: 2.805 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001469/0.8964, allocations: 375.3 kB / 449.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002787/0.8992, allocations: 1.011 MB / 450.7 MB, free: 1.422 MB / 346.7 MB Notification: Performance of SimCode: time 1.503e-06/0.8992, allocations: 0 / 450.7 MB, free: 1.422 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.161/1.06, allocations: 39.2 MB / 489.9 MB, free: 10.12 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0005025/1.061, allocations: 237.3 kB / 490.1 MB, free: 9.824 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.484/5.545, allocations: 0 / 490.1 MB, free: 9.824 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat