Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.603e-05, allocations: 10.02 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.5954, allocations: 87.87 MB / 430.5 MB, free: 5.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5957, allocations: 91.5 kB / 430.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09976/0.6955, allocations: 25.62 MB / 456.2 MB, free: 1.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6956, allocations: 3.938 kB / 456.2 MB, free: 1.062 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.383e-05/0.6956, allocations: 12 kB / 456.2 MB, free: 1.051 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005016/0.7006, allocations: 1.118 MB / 457.3 MB, free: 15.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.7007, allocations: 8.031 kB / 457.4 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000271/0.701, allocations: 131.2 kB / 457.5 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003214/0.7042, allocations: 318.8 kB / 457.8 MB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.7046, allocations: 258.1 kB / 458 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.049e-05/0.7047, allocations: 66 kB / 458.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.7049, allocations: 84 kB / 458.2 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.707, allocations: 0.8017 MB / 459 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.815e-05/0.7071, allocations: 352 / 459 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001625/0.7073, allocations: 43.94 kB / 459 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/0.7073, allocations: 23.98 kB / 459.1 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.7094, allocations: 0.6874 MB / 459.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007371/0.7168, allocations: 2.993 MB / 462.7 MB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.7184, allocations: 0.9519 MB / 463.7 MB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005242/0.719, allocations: 202.5 kB / 463.9 MB, free: 9.008 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001697/0.7192, allocations: 101.7 kB / 464 MB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.7192, allocations: 35.12 kB / 464 MB, free: 8.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.156e-06/0.7192, allocations: 0 / 464 MB, free: 8.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.009876/0.7291, allocations: 1.828 MB / 465.9 MB, free: 6.961 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.7292, allocations: 89.61 kB / 465.9 MB, free: 6.855 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004797/0.7297, allocations: 282.5 kB / 466.2 MB, free: 6.574 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.129e-05/0.7298, allocations: 37.7 kB / 466.3 MB, free: 6.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.7301, allocations: 425 kB / 466.7 MB, free: 6.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.7304, allocations: 208.9 kB / 466.9 MB, free: 5.902 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/0.7304, allocations: 16 kB / 466.9 MB, free: 5.887 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.7306, allocations: 346.8 kB / 467.2 MB, free: 5.539 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006141/0.7312, allocations: 202 kB / 467.4 MB, free: 5.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008052/0.7321, allocations: 434.6 kB / 467.8 MB, free: 4.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000736/0.7328, allocations: 267.1 kB / 468.1 MB, free: 4.547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.7328, allocations: 0 / 468.1 MB, free: 4.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002024/0.7349, allocations: 0.7272 MB / 468.8 MB, free: 3.809 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.7349, allocations: 16.02 kB / 468.9 MB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.7349, allocations: 8 kB / 468.9 MB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003849/0.7353, allocations: 69.72 kB / 468.9 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.7371, allocations: 215.7 kB / 469.1 MB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.7398, allocations: 2.656 MB / 471.8 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.7411, allocations: 75.86 kB / 471.9 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-05/0.7412, allocations: 40.05 kB / 471.9 MB, free: 476 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002221/0.7414, allocations: 152.7 kB / 472.1 MB, free: 316 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.7416, allocations: 47.47 kB / 472.1 MB, free: 268 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.7434, allocations: 0.5948 MB / 472.7 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.7434, allocations: 4 kB / 472.7 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.7435, allocations: 4 kB / 472.7 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.7435, allocations: 11.94 kB / 472.7 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.7464, allocations: 1.301 MB / 474 MB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.7464, allocations: 0 / 474 MB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/0.7479, allocations: 143.8 kB / 474.2 MB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002617/0.7481, allocations: 53.69 kB / 474.2 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.358e-05/0.7482, allocations: 19.98 kB / 474.2 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.7507, allocations: 2.64 MB / 476.9 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.7507, allocations: 3.938 kB / 476.9 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.7529, allocations: 0.8753 MB / 477.7 MB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003144/0.7533, allocations: 172.5 kB / 477.9 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.7534, allocations: 8 kB / 477.9 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.7544, allocations: 64 kB / 478 MB, free: 9.984 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.7546, allocations: 48.5 kB / 478 MB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-05/0.7547, allocations: 19.98 kB / 478.1 MB, free: 9.918 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003352/0.755, allocations: 214.2 kB / 478.3 MB, free: 9.711 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.755, allocations: 0 / 478.3 MB, free: 9.711 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001008/0.756, allocations: 184 kB / 478.4 MB, free: 9.531 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (core.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002773/0.7588, allocations: 1.516 MB / 480 MB, free: 7.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.7606, allocations: 0.7563 MB / 480.7 MB, free: 7.203 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.7607, allocations: 0 / 480.7 MB, free: 7.203 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009378/0.7616, allocations: 473.6 kB / 481.2 MB, free: 6.723 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.762, allocations: 37.2 kB / 481.2 MB, free: 6.684 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/0.7659, allocations: 1.023 MB / 482.2 MB, free: 5.621 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005534/0.7665, allocations: 0.8925 MB / 483.1 MB, free: 4.707 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006586/0.7672, allocations: 231.3 kB / 483.4 MB, free: 4.48 MB / 394.7 MB Notification: Performance of SimCode: time 8.92e-07/0.7672, allocations: 0 / 483.4 MB, free: 4.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.755/3.522, allocations: 15.35 MB / 498.7 MB, free: 5.125 MB / 410.7 MB