Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.327e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4335/0.5436, allocations: 81.25 MB / 423.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.544, allocations: 81.2 kB / 424 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04329/0.5873, allocations: 11.35 MB / 435.3 MB, free: 3.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5874, allocations: 3.938 kB / 435.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.577e-05/0.5874, allocations: 8 kB / 435.3 MB, free: 3.629 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001845/0.5892, allocations: 0.6031 MB / 435.9 MB, free: 3.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.5893, allocations: 16.03 kB / 436 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.5894, allocations: 71.3 kB / 436 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009909/0.5904, allocations: 98.8 kB / 436.1 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004859/0.5909, allocations: 255.7 kB / 436.4 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.508e-05/0.591, allocations: 25.97 kB / 436.4 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.36e-05/0.5911, allocations: 30.5 kB / 436.4 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007792/0.5919, allocations: 327.4 kB / 436.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.5919, allocations: 3.906 kB / 436.7 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/0.592, allocations: 14.06 kB / 436.8 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.592, allocations: 11.95 kB / 436.8 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006227/0.5926, allocations: 227.2 kB / 437 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00297/0.5956, allocations: 1.458 MB / 438.5 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000918/0.5966, allocations: 0.6921 MB / 439.1 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.5968, allocations: 94.11 kB / 439.2 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001593/0.597, allocations: 93.08 kB / 439.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.5971, allocations: 37.69 kB / 439.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 5.551e-06/0.5971, allocations: 4 kB / 439.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008364/0.5979, allocations: 247.8 kB / 439.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.598, allocations: 51.41 kB / 439.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.5982, allocations: 159.2 kB / 439.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.5983, allocations: 25.7 kB / 439.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.5984, allocations: 243.1 kB / 440.1 MB, free: 15.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.5985, allocations: 85.28 kB / 440.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.762e-05/0.5986, allocations: 3.188 kB / 440.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.5987, allocations: 322.6 kB / 440.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.5989, allocations: 64.69 kB / 440.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.5991, allocations: 118.9 kB / 440.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.5994, allocations: 85.41 kB / 440.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.5994, allocations: 4 kB / 440.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008652/0.6003, allocations: 309 kB / 441 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.6003, allocations: 4 kB / 441.1 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.6003, allocations: 0 / 441.1 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004686/0.6008, allocations: 74.81 kB / 441.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.6011, allocations: 43.91 kB / 441.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.6038, allocations: 1.827 MB / 443 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.6041, allocations: 27.16 kB / 443 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.6041, allocations: 11.95 kB / 443 MB, free: 12.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.6043, allocations: 116.4 kB / 443.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.6043, allocations: 19.31 kB / 443.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008553/0.6052, allocations: 280.7 kB / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.6052, allocations: 4 kB / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.6052, allocations: 0 / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.6053, allocations: 11.86 kB / 443.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.6068, allocations: 0.6939 MB / 444.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.6069, allocations: 0 / 444.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.6071, allocations: 23.94 kB / 444.2 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004092/0.6075, allocations: 82.23 kB / 444.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.6076, allocations: 3.188 kB / 444.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/0.6101, allocations: 1.817 MB / 446.1 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.6101, allocations: 0 / 446.1 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.6112, allocations: 447.9 kB / 446.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.6113, allocations: 117.9 kB / 446.6 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.6114, allocations: 7.203 kB / 446.6 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.6116, allocations: 3.312 kB / 446.6 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.6116, allocations: 15.98 kB / 446.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.6117, allocations: 11.17 kB / 446.7 MB, free: 9.309 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001511/0.6118, allocations: 130 kB / 446.8 MB, free: 9.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6119, allocations: 0 / 446.8 MB, free: 9.199 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006746/0.6125, allocations: 98.34 kB / 446.9 MB, free: 9.113 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001481/0.614, allocations: 1.003 MB / 447.9 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000873/0.6149, allocations: 313.6 kB / 448.2 MB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.615, allocations: 8.062 kB / 448.2 MB, free: 7.938 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004771/0.6155, allocations: 232.7 kB / 448.4 MB, free: 7.742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.6158, allocations: 23.14 kB / 448.5 MB, free: 7.727 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.6174, allocations: 498.3 kB / 448.9 MB, free: 7.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.6178, allocations: 0.7635 MB / 449.7 MB, free: 6.465 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.618, allocations: 72.53 kB / 449.8 MB, free: 6.441 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.618, allocations: 0 / 449.8 MB, free: 6.441 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.684/3.302, allocations: 5.017 MB / 454.8 MB, free: 1.492 MB / 362.7 MB