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 1.798/1.798, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.433e-05/3.448e-05, allocations: 0 / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09706, allocations: 44.52 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4091/0.5063, allocations: 85.21 MB / 385.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.5066, allocations: 82.34 kB / 385.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06563/0.5722, allocations: 15.48 MB / 400.7 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5723, allocations: 0 / 400.7 MB, free: 10.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.069e-05/0.5723, allocations: 15.17 kB / 400.7 MB, free: 10.81 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.002259/0.5746, allocations: 0.8551 MB / 401.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5746, allocations: 7.75 kB / 401.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.5748, allocations: 99.61 kB / 401.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.575, allocations: 78.11 kB / 401.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008979/0.5759, allocations: 0.4891 MB / 402.2 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.933e-05/0.576, allocations: 76.47 kB / 402.3 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002821/0.5763, allocations: 60.84 kB / 402.4 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.5776, allocations: 0.5708 MB / 403 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/0.5777, allocations: 0 / 403 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.309e-05/0.5778, allocations: 25.06 kB / 403 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.5778, allocations: 19.55 kB / 403 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.579, allocations: 486.9 kB / 403.5 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004698/0.5837, allocations: 2.319 MB / 405.8 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009479/0.5847, allocations: 431 kB / 406.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005754/0.5853, allocations: 243.8 kB / 406.5 MB, free: 8.156 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.922e-05/0.5853, allocations: 14.8 kB / 406.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.5854, allocations: 37.25 kB / 406.5 MB, free: 8.113 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 2.835e-06/0.5854, allocations: 7.688 kB / 406.5 MB, free: 8.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.01837/0.6038, allocations: 3.007 MB / 409.5 MB, free: 7.109 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.6038, allocations: 81.55 kB / 409.6 MB, free: 7.016 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000897/0.6047, allocations: 487.5 kB / 410.1 MB, free: 6.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.6049, allocations: 48.92 kB / 410.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.6051, allocations: 343.1 kB / 410.5 MB, free: 6.586 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.6053, allocations: 207 kB / 410.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.714e-05/0.6054, allocations: 11.38 kB / 410.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.134e-05/0.6054, allocations: 334.2 kB / 411 MB, free: 6.117 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005845/0.606, allocations: 227.6 kB / 411.2 MB, free: 6.113 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006218/0.6067, allocations: 322.7 kB / 411.5 MB, free: 6.008 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/0.6073, allocations: 258 kB / 411.8 MB, free: 5.977 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.6073, allocations: 0 / 411.8 MB, free: 5.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01211/0.6195, allocations: 1.756 MB / 413.5 MB, free: 5.555 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.6195, allocations: 3.781 kB / 413.5 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.6196, allocations: 7.812 kB / 413.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/0.6309, allocations: 1.167 MB / 414.7 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007855/0.6317, allocations: 89.3 kB / 414.8 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01966/0.6514, allocations: 5.778 MB / 420.6 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.6525, allocations: 37.61 kB / 420.6 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/0.6526, allocations: 25.45 kB / 420.6 MB, free: 3.098 MB / 314.7 MB 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.0001957/0.6528, allocations: 138.6 kB / 420.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.653, allocations: 66.11 kB / 420.8 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002032/0.6551, allocations: 0.7648 MB / 421.6 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.6551, allocations: 7.719 kB / 421.6 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.6551, allocations: 4 kB / 421.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.6551, allocations: 3.984 kB / 421.6 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004933/0.6601, allocations: 1.833 MB / 423.5 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.6601, allocations: 3.938 kB / 423.5 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.6612, allocations: 118.5 kB / 423.6 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002684/0.6639, allocations: 340.3 kB / 423.9 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-05/0.664, allocations: 18.77 kB / 423.9 MB, free: 1.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006219/0.6702, allocations: 2.815 MB / 426.7 MB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.6702, allocations: 3.938 kB / 426.7 MB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.6739, allocations: 1.277 MB / 428 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004495/0.6744, allocations: 206.5 kB / 428.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.6746, allocations: 11.62 kB / 428.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.6756, allocations: 48.97 kB / 428.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.6758, allocations: 55.58 kB / 428.3 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.236e-05/0.6759, allocations: 18.97 kB / 428.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006496/0.6766, allocations: 379 kB / 428.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6766, allocations: 0 / 428.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001176/0.6778, allocations: 224.5 kB / 428.9 MB, free: 15.44 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.004396/0.6822, allocations: 1.944 MB / 430.9 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002196/0.6844, allocations: 0.8147 MB / 431.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.6844, allocations: 0 / 431.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.6856, allocations: 489.6 kB / 432.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000883/0.6865, allocations: 82.97 kB / 432.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.6905, allocations: 1.272 MB / 433.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007083/0.6913, allocations: 0.9226 MB / 434.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005796/0.6918, allocations: 234.3 kB / 434.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6919, allocations: 3.875 kB / 434.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.74/3.432, allocations: 14.08 MB / 448.8 MB, free: 14.52 MB / 346.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