Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.275/2.275, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.579e-05, allocations: 2.219 kB / 249.8 MB, free: 5.25 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4739/0.5889, allocations: 84.54 MB / 378.8 MB, free: 6.645 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.5893, allocations: 80.92 kB / 378.9 MB, free: 6.633 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08035/0.6697, allocations: 15.28 MB / 394.2 MB, free: 17.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6697, allocations: 4 kB / 394.2 MB, free: 17.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.457e-05/0.6698, allocations: 19.56 kB / 394.2 MB, free: 17.21 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002633/0.6724, allocations: 0.8463 MB / 395.1 MB, free: 16.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/0.6725, allocations: 7.719 kB / 395.1 MB, free: 16.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.6728, allocations: 81.77 kB / 395.2 MB, free: 16.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.6739, allocations: 0.4978 MB / 395.6 MB, free: 16.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.6741, allocations: 54.38 kB / 395.7 MB, free: 16.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.6744, allocations: 47.7 kB / 395.7 MB, free: 16.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001371/0.6758, allocations: 448 kB / 396.2 MB, free: 16.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.6772, allocations: 0.489 MB / 396.7 MB, free: 16.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.6772, allocations: 0 / 396.7 MB, free: 16.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.63e-05/0.6773, allocations: 0 / 396.7 MB, free: 16.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.6773, allocations: 19.14 kB / 396.7 MB, free: 16.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00583/0.6832, allocations: 2.211 MB / 398.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.6843, allocations: 421 kB / 399.3 MB, free: 14.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006091/0.6849, allocations: 226.8 kB / 399.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.886e-05/0.685, allocations: 11.03 kB / 399.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.685, allocations: 37.94 kB / 399.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 3.416e-06/0.685, allocations: 0 / 399.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.0179/0.7029, allocations: 2.545 MB / 402.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/0.7031, allocations: 85.55 kB / 402.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.7042, allocations: 441.6 kB / 402.6 MB, free: 13.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.7044, allocations: 25.7 kB / 402.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003129/0.7047, allocations: 314.1 kB / 403 MB, free: 13.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/0.705, allocations: 202.8 kB / 403.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.249e-05/0.7051, allocations: 0 / 403.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002461/0.7054, allocations: 369.1 kB / 403.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006329/0.706, allocations: 213.1 kB / 403.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007125/0.7067, allocations: 302.5 kB / 404 MB, free: 12.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007302/0.7075, allocations: 246.4 kB / 404.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.7075, allocations: 0 / 404.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01536/0.7229, allocations: 1.717 MB / 406 MB, free: 12.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.723, allocations: 7.844 kB / 406 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.723, allocations: 0 / 406 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01462/0.7376, allocations: 1.164 MB / 407.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.7387, allocations: 94.95 kB / 407.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0256/0.7643, allocations: 5.663 MB / 412.9 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.7657, allocations: 27.05 kB / 412.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.7658, allocations: 23.86 kB / 413 MB, free: 7.531 MB / 314.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.0003479/0.7662, allocations: 124.6 kB / 413.1 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00564/0.7718, allocations: 0.8885 MB / 414 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004053/0.7723, allocations: 55.34 kB / 414 MB, free: 6.672 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002642/0.7749, allocations: 0.7075 MB / 414.7 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.775, allocations: 4 kB / 414.7 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.775, allocations: 4 kB / 414.8 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.775, allocations: 3.984 kB / 414.8 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006822/0.7819, allocations: 1.695 MB / 416.5 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.7819, allocations: 4 kB / 416.5 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.7833, allocations: 107.9 kB / 416.6 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003515/0.7868, allocations: 336.4 kB / 416.9 MB, free: 4.508 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001599/0.787, allocations: 11.98 kB / 416.9 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008334/0.7954, allocations: 2.73 MB / 419.6 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/0.7954, allocations: 8.062 kB / 419.6 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/0.8001, allocations: 1.219 MB / 420.9 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000625/0.8008, allocations: 204.4 kB / 421.1 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/0.801, allocations: 3.953 kB / 421.1 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.8023, allocations: 39.97 kB / 421.1 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.8026, allocations: 44.48 kB / 421.1 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.875e-05/0.8027, allocations: 24 kB / 421.2 MB, free: 84 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008256/0.8035, allocations: 335 kB / 421.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8035, allocations: 0 / 421.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001686/0.8052, allocations: 204.1 kB / 421.7 MB, free: 15.56 MB / 330.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.005478/0.8107, allocations: 1.888 MB / 423.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002663/0.8135, allocations: 0.7606 MB / 424.3 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.8135, allocations: 0 / 424.3 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.8149, allocations: 472.2 kB / 424.8 MB, free: 12.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.816, allocations: 54.44 kB / 424.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005103/0.8211, allocations: 1.166 MB / 426 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000857/0.822, allocations: 0.9233 MB / 426.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006619/0.8227, allocations: 60.48 kB / 427 MB, free: 10.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006698/0.8234, allocations: 227.3 kB / 427.2 MB, free: 9.895 MB / 330.7 MB Notification: Performance of SimCode: time 1.502e-06/0.8234, allocations: 3.938 kB / 427.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/0.9328, allocations: 15.77 MB / 443 MB, free: 10.17 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003919/0.9333, allocations: 188.9 kB / 443.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.653/4.586, allocations: 0 / 443.2 MB, free: 9.977 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat