Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.581e-05/2.605e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3212, allocations: 44.5 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.4732, allocations: 84.54 MB / 378.8 MB, free: 13.42 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/0.4735, allocations: 83.95 kB / 378.8 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07452/0.5481, allocations: 15.28 MB / 394.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5481, allocations: 0 / 394.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.675e-05/0.5482, allocations: 16 kB / 394.1 MB, free: 13.96 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002883/0.5511, allocations: 0.8498 MB / 395 MB, free: 13.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.5512, allocations: 8.031 kB / 395 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003697/0.5515, allocations: 79.11 kB / 395.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001296/0.5529, allocations: 0.4884 MB / 395.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.553, allocations: 55 kB / 395.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/0.5533, allocations: 47.92 kB / 395.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001394/0.5547, allocations: 450.5 kB / 396.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.5561, allocations: 497.9 kB / 396.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.5562, allocations: 0 / 396.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.395e-05/0.5563, allocations: 0 / 396.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.296e-05/0.5563, allocations: 15.95 kB / 396.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005935/0.5623, allocations: 2.225 MB / 398.8 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.5634, allocations: 409.8 kB / 399.2 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006119/0.564, allocations: 230.1 kB / 399.4 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.29e-05/0.5641, allocations: 11.94 kB / 399.5 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.5642, allocations: 38.56 kB / 399.5 MB, free: 8.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 2.985e-06/0.5642, allocations: 0 / 399.5 MB, free: 8.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.01607/0.5803, allocations: 2.547 MB / 402 MB, free: 5.746 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.5804, allocations: 85.67 kB / 402.1 MB, free: 5.645 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009901/0.5814, allocations: 437.3 kB / 402.6 MB, free: 5.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.5816, allocations: 25.7 kB / 402.6 MB, free: 5.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.5819, allocations: 346.7 kB / 402.9 MB, free: 4.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.5821, allocations: 208.9 kB / 403.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.5822, allocations: 0 / 403.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.5824, allocations: 338.8 kB / 403.4 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006218/0.583, allocations: 217.5 kB / 403.7 MB, free: 4.082 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006661/0.5837, allocations: 303.3 kB / 404 MB, free: 3.754 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000682/0.5844, allocations: 242.1 kB / 404.2 MB, free: 3.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.5844, allocations: 4 kB / 404.2 MB, free: 3.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01258/0.597, allocations: 1.697 MB / 405.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.5971, allocations: 4 kB / 405.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.5971, allocations: 4.125 kB / 405.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/0.609, allocations: 1.168 MB / 407.1 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/0.6098, allocations: 87.89 kB / 407.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02167/0.6315, allocations: 5.642 MB / 412.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.6327, allocations: 31.97 kB / 412.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.649e-05/0.6328, allocations: 27.98 kB / 412.9 MB, free: 10.7 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0003176/0.6332, allocations: 132.6 kB / 413 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004835/0.638, allocations: 0.8854 MB / 413.9 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000358/0.6384, allocations: 59.34 kB / 413.9 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.6407, allocations: 0.7087 MB / 414.6 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.6408, allocations: 8 kB / 414.6 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.6408, allocations: 0 / 414.6 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.6408, allocations: 3.984 kB / 414.7 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005772/0.6466, allocations: 1.696 MB / 416.3 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.6467, allocations: 0 / 416.3 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.6478, allocations: 111.8 kB / 416.5 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00296/0.6508, allocations: 333.3 kB / 416.8 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000157/0.651, allocations: 11.98 kB / 416.8 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006936/0.658, allocations: 2.73 MB / 419.5 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.658, allocations: 3.938 kB / 419.5 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003979/0.662, allocations: 1.224 MB / 420.8 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005707/0.6626, allocations: 200.4 kB / 420.9 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.6628, allocations: 7.953 kB / 421 MB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.664, allocations: 35.97 kB / 421 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/0.6642, allocations: 48.48 kB / 421 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.793e-05/0.6643, allocations: 23.98 kB / 421.1 MB, free: 2.262 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006906/0.665, allocations: 335 kB / 421.4 MB, free: 1.938 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6651, allocations: 4 kB / 421.4 MB, free: 1.934 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001512/0.6666, allocations: 196.1 kB / 421.6 MB, free: 1.742 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.252/0.9186, allocations: 1.867 MB / 423.4 MB, free: 106.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002591/0.9212, allocations: 0.7677 MB / 424.2 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.9213, allocations: 0.6562 kB / 424.2 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.9226, allocations: 468.9 kB / 424.7 MB, free: 106 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009491/0.9236, allocations: 56.61 kB / 424.7 MB, free: 106 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.9282, allocations: 1.207 MB / 425.9 MB, free: 105.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.9288, allocations: 0.922 MB / 426.9 MB, free: 104.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000628/0.9294, allocations: 233.8 kB / 427.1 MB, free: 104.9 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.9294, allocations: 5.188 kB / 427.1 MB, free: 104.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.726/3.656, allocations: 13.73 MB / 440.8 MB, free: 102.8 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.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat