Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.551e-05/2.566e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.306, allocations: 44.5 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1541/0.4601, allocations: 78.24 MB / 372.5 MB, free: 3.637 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.4605, allocations: 79.95 kB / 372.5 MB, free: 3.559 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1571/0.6176, allocations: 37.79 MB / 410.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6176, allocations: 0 / 410.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003725/0.618, allocations: 32 kB / 410.3 MB, free: 13.45 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005251/0.6233, allocations: 1.99 MB / 412.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.6234, allocations: 12.03 kB / 412.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009109/0.6243, allocations: 284.3 kB / 412.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00608/0.6304, allocations: 1.857 MB / 414.5 MB, free: 9.184 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.6306, allocations: 54.38 kB / 414.5 MB, free: 9.125 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.6308, allocations: 31.98 kB / 414.6 MB, free: 9.094 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008744/0.6317, allocations: 277.5 kB / 414.8 MB, free: 8.824 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008481/0.6326, allocations: 326.2 kB / 415.2 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.6327, allocations: 0 / 415.2 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.6327, allocations: 0 / 415.2 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.6327, allocations: 8 kB / 415.2 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008349/0.6411, allocations: 3.005 MB / 418.2 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008066/0.642, allocations: 285.1 kB / 418.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003494/0.6423, allocations: 144.5 kB / 418.6 MB, free: 4.945 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.694e-05/0.6424, allocations: 4 kB / 418.6 MB, free: 4.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.6425, allocations: 46.48 kB / 418.6 MB, free: 4.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.106e-06/0.6425, allocations: 0 / 418.6 MB, free: 4.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.006188/0.6487, allocations: 2.023 MB / 420.7 MB, free: 2.789 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.6488, allocations: 89.58 kB / 420.7 MB, free: 2.684 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2659/0.9147, allocations: 4.67 MB / 425.4 MB, free: 100.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.9148, allocations: 25.7 kB / 425.4 MB, free: 100.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.9163, allocations: 0.8951 MB / 426.3 MB, free: 100.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.9166, allocations: 161 kB / 426.5 MB, free: 100.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.9166, allocations: 0 / 426.5 MB, free: 100.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.9167, allocations: 331 kB / 426.8 MB, free: 100.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.9171, allocations: 130.3 kB / 426.9 MB, free: 100.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004234/0.9175, allocations: 198.8 kB / 427.1 MB, free: 100.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.918, allocations: 154.2 kB / 427.3 MB, free: 100.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.918, allocations: 2.25 kB / 427.3 MB, free: 100.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001234/0.9193, allocations: 472.2 kB / 427.8 MB, free: 100 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.9193, allocations: 58.03 kB / 427.8 MB, free: 99.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.9194, allocations: 1.25 kB / 427.8 MB, free: 99.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006997/0.9201, allocations: 147.9 kB / 428 MB, free: 99.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/0.9209, allocations: 100.3 kB / 428.1 MB, free: 99.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.9222, allocations: 0.7666 MB / 428.8 MB, free: 99.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.9235, allocations: 21.88 kB / 428.8 MB, free: 99.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.9236, allocations: 17.88 kB / 428.9 MB, free: 99.44 MB / 362.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.00024/0.9239, allocations: 118.4 kB / 429 MB, free: 99.33 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00192/0.9258, allocations: 0.6172 MB / 429.6 MB, free: 99.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009117/0.9267, allocations: 277.1 kB / 429.9 MB, free: 99.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.9291, allocations: 0.7217 MB / 430.6 MB, free: 98.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.9291, allocations: 4.375 kB / 430.6 MB, free: 98.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.9291, allocations: 2.438 kB / 430.6 MB, free: 98.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.9291, allocations: 4.547 kB / 430.6 MB, free: 98.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00363/0.9328, allocations: 1.621 MB / 432.2 MB, free: 98.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.9328, allocations: 5.141 kB / 432.2 MB, free: 98.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.9339, allocations: 90.17 kB / 432.3 MB, free: 98.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004278/0.9343, allocations: 100.5 kB / 432.4 MB, free: 98.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.83e-05/0.9344, allocations: 3.375 kB / 432.4 MB, free: 98.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008222/0.9352, allocations: 0.6473 MB / 433.1 MB, free: 97.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.9353, allocations: 1.156 kB / 433.1 MB, free: 97.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002536/0.9378, allocations: 1.03 MB / 434.1 MB, free: 97.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/0.9402, allocations: 0.6721 MB / 434.8 MB, free: 96.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008129/0.941, allocations: 8.156 kB / 434.8 MB, free: 96.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.9424, allocations: 20.72 kB / 434.8 MB, free: 96.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.9426, allocations: 30.17 kB / 434.8 MB, free: 96.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.9427, allocations: 19.11 kB / 434.8 MB, free: 96.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.008734/0.9515, allocations: 3.627 MB / 438.5 MB, free: 95.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.9515, allocations: 0 / 438.5 MB, free: 95.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001798/0.9533, allocations: 311.1 kB / 438.8 MB, free: 95.53 MB / 362.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.003621/0.957, allocations: 1.879 MB / 440.7 MB, free: 94.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.9582, allocations: 456.4 kB / 441.1 MB, free: 94.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.9582, allocations: 0 / 441.1 MB, free: 94.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004791/0.9587, allocations: 199.5 kB / 441.3 MB, free: 93.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.9605, allocations: 155.3 kB / 441.4 MB, free: 93.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.9746, allocations: 5.575 MB / 447 MB, free: 92.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002748/0.9774, allocations: 1.86 MB / 448.9 MB, free: 91.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00246/0.9799, allocations: 1.015 MB / 449.9 MB, free: 90.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.473e-06/0.9799, allocations: 0 / 449.9 MB, free: 90.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.523/4.503, allocations: 63.96 MB / 0.5018 GB, free: 32.43 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat