Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.395e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1226, allocations: 50.41 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4815/0.6041, allocations: 114.9 MB / 457.5 MB, free: 11.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.6045, allocations: 85.83 kB / 457.6 MB, free: 11.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2525/0.8571, allocations: 54.17 MB / 0.4998 GB, free: 9.559 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.8571, allocations: 0 / 0.4998 GB, free: 9.559 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001925/0.8573, allocations: 59.98 kB / 0.4998 GB, free: 9.5 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.009023/0.8664, allocations: 2.235 MB / 0.502 GB, free: 7.207 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.8664, allocations: 12.03 kB / 0.502 GB, free: 7.195 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009507/0.8674, allocations: 274.4 kB / 0.5023 GB, free: 6.918 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.8684, allocations: 276.7 kB / 0.5025 GB, free: 6.645 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004312/0.8728, allocations: 1.35 MB / 0.5039 GB, free: 5.242 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003306/0.8731, allocations: 244.9 kB / 0.5041 GB, free: 4.984 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.8743, allocations: 235.8 kB / 0.5043 GB, free: 4.754 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006234/0.8805, allocations: 2.052 MB / 0.5063 GB, free: 2.613 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.858e-05/0.8806, allocations: 11.94 kB / 0.5063 GB, free: 2.602 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003337/0.881, allocations: 83.94 kB / 0.5064 GB, free: 2.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.603e-05/0.881, allocations: 44 kB / 0.5064 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0057/0.8867, allocations: 1.714 MB / 0.5081 GB, free: 0.7617 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0225/0.9093, allocations: 7.921 MB / 0.5159 GB, free: 8.602 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005119/0.9145, allocations: 1.927 MB / 0.5177 GB, free: 6.641 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003975/0.9185, allocations: 1.355 MB / 0.5191 GB, free: 5.273 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000186/0.9187, allocations: 26 kB / 0.5191 GB, free: 5.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.333e-05/0.9188, allocations: 56.56 kB / 0.5191 GB, free: 5.184 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 5.03e-06/0.9188, allocations: 0 / 0.5191 GB, free: 5.184 MB / 442.7 MB Notification: Performance of matching and sorting (n=250): time 0.3769/1.296, allocations: 12.62 MB / 0.5315 GB, free: 113.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/1.296, allocations: 395.9 kB / 0.5318 GB, free: 113.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/1.299, allocations: 1.318 MB / 0.5331 GB, free: 113.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006626/1.3, allocations: 74.25 kB / 0.5332 GB, free: 113 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006564/1.301, allocations: 0.7548 MB / 0.5339 GB, free: 112.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001292/1.302, allocations: 0.8348 MB / 0.5348 GB, free: 112.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/1.302, allocations: 46.42 kB / 0.5348 GB, free: 112.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/1.302, allocations: 398.9 kB / 0.5352 GB, free: 112 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/1.305, allocations: 0.9145 MB / 0.5361 GB, free: 112 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003406/1.309, allocations: 1.129 MB / 0.5372 GB, free: 111.8 MB / 442.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.04906/1.358, allocations: 6.731 MB / 0.5437 GB, free: 111.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/1.358, allocations: 0 / 0.5437 GB, free: 111.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.03898/1.397, allocations: 5.754 MB / 0.5494 GB, free: 111.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/1.397, allocations: 6.938 kB / 0.5494 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.068e-05/1.397, allocations: 6.969 kB / 0.5494 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03514/1.432, allocations: 3.6 MB / 0.5529 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003579/1.436, allocations: 380.6 kB / 0.5533 GB, free: 110.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06278/1.499, allocations: 24.61 MB / 0.5773 GB, free: 92.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004164/1.503, allocations: 142.1 kB / 0.5774 GB, free: 92.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003171/1.503, allocations: 81.67 kB / 0.5775 GB, free: 92.93 MB / 442.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: transformer.H[1] = $START.transformer.H[1] transformer.H[3] = $START.transformer.H[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 180 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 19,1 20,1 20,2 7,2 7,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006773/1.504, allocations: 228.9 kB / 0.5777 GB, free: 92.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006357/1.505, allocations: 212.9 kB / 0.5779 GB, free: 92.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.515, allocations: 3.221 MB / 0.5811 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.074e-05/1.516, allocations: 25.47 kB / 0.5811 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.516, allocations: 5.938 kB / 0.5811 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-05/1.516, allocations: 15.38 kB / 0.5811 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01967/1.535, allocations: 6.104 MB / 0.5871 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/1.535, allocations: 0 / 0.5871 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00418/1.54, allocations: 431.8 kB / 0.5875 GB, free: 88.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009096/1.549, allocations: 1.204 MB / 0.5887 GB, free: 88.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004201/1.549, allocations: 67.52 kB / 0.5887 GB, free: 88.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02492/1.574, allocations: 16.93 MB / 0.6053 GB, free: 71.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.574, allocations: 0 / 0.6053 GB, free: 71.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/1.59, allocations: 4.773 MB / 0.6099 GB, free: 67.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001668/1.592, allocations: 0.5318 MB / 0.6104 GB, free: 66.79 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005594/1.592, allocations: 55.95 kB / 0.6105 GB, free: 66.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00354/1.596, allocations: 158.6 kB / 0.6106 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006764/1.597, allocations: 199.7 kB / 0.6108 GB, free: 66.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002312/1.597, allocations: 67.28 kB / 0.6109 GB, free: 66.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002016/1.599, allocations: 1.015 MB / 0.6119 GB, free: 65.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.599, allocations: 0 / 0.6119 GB, free: 65.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004759/1.604, allocations: 0.7798 MB / 0.6127 GB, free: 64.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (transformer.Phi[1],transformer.Phi[2],transformer.Phi[3],transformer.core1.Hstat,transformer.core2.Hstat,transformer.core3.Hstat,transformer.winding11.i,transformer.winding12.i,transformer.winding13.i,transformer.winding21.i,transformer.winding22.i,transformer.winding23.i,capacitor1.v,capacitor2.v,pdissStatAvg.x[1],pdissStatAvg.x[2],pdissEddyAvg.x[1],pdissEddyAvg.x[2],pdissCopAvg.x[1],pdissCopAvg.x[2],transformer.core3.MagRel,transformer.core2.MagRel,transformer.core1.MagRel) * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 194 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 8,1 8,1 8,2 7,2 7,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01794/1.622, allocations: 5.712 MB / 0.6182 GB, free: 59.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009046/1.631, allocations: 3.643 MB / 0.6218 GB, free: 55.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/1.631, allocations: 4 kB / 0.6218 GB, free: 55.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005554/1.636, allocations: 2.421 MB / 0.6242 GB, free: 53.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00324/1.64, allocations: 326.9 kB / 0.6245 GB, free: 53.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/1.654, allocations: 4.938 MB / 0.6293 GB, free: 48.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001328/1.656, allocations: 1.643 MB / 0.6309 GB, free: 47.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00217/1.658, allocations: 0.8928 MB / 0.6318 GB, free: 46.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.613e-06/1.658, allocations: 0 / 0.6318 GB, free: 46.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.612/6.27, allocations: 112.4 MB / 0.7415 GB, free: 89.49 MB / 442.7 MB