Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.699/2.699, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.912e-05/3.927e-05, allocations: 0 / 347.1 MB, free: 3.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4127, allocations: 61.86 MB / 408.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.576, allocations: 89.48 MB / 498.4 MB, free: 1.152 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.5763, allocations: 79.95 kB / 498.5 MB, free: 1.074 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01848/0.5948, allocations: 4.407 MB / 0.4911 GB, free: 12.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5949, allocations: 0 / 0.4911 GB, free: 12.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.5949, allocations: 4 kB / 0.4911 GB, free: 12.66 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001088/0.596, allocations: 0.5141 MB / 0.4916 GB, free: 12.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.5961, allocations: 11.97 kB / 0.4916 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.5962, allocations: 70.53 kB / 0.4917 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.707e-05/0.5963, allocations: 27.72 kB / 0.4917 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.5965, allocations: 200.2 kB / 0.4919 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.5967, allocations: 32.72 kB / 0.4919 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.109e-05/0.5968, allocations: 35.94 kB / 0.492 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007087/0.5975, allocations: 266.2 kB / 0.4922 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.5975, allocations: 0 / 0.4922 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.5976, allocations: 16 kB / 0.4922 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.5976, allocations: 8 kB / 0.4922 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000577/0.5982, allocations: 193.5 kB / 0.4924 GB, free: 11.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.6009, allocations: 1.026 MB / 0.4934 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.6011, allocations: 34.47 kB / 0.4935 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.835e-05/0.6012, allocations: 24.92 kB / 0.4935 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.6012, allocations: 0 / 0.4935 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.6012, allocations: 34.55 kB / 0.4935 GB, free: 10 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 1.843e-06/0.6013, allocations: 0 / 0.4935 GB, free: 10 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002389/0.6015, allocations: 73.36 kB / 0.4936 GB, free: 9.922 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.6016, allocations: 51.41 kB / 0.4936 GB, free: 9.859 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.6021, allocations: 287.3 kB / 0.4939 GB, free: 9.578 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.6021, allocations: 25.7 kB / 0.4939 GB, free: 9.547 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002169/0.6023, allocations: 289.2 kB / 0.4942 GB, free: 9.262 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.6023, allocations: 15.88 kB / 0.4942 GB, free: 9.246 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.6024, allocations: 4 kB / 0.4942 GB, free: 9.242 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.6026, allocations: 322.8 kB / 0.4945 GB, free: 8.918 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.6028, allocations: 60.03 kB / 0.4946 GB, free: 8.859 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.603, allocations: 82.95 kB / 0.4947 GB, free: 8.773 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.6032, allocations: 72.48 kB / 0.4947 GB, free: 8.703 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.6032, allocations: 0 / 0.4947 GB, free: 8.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005356/0.6038, allocations: 209.5 kB / 0.4949 GB, free: 8.492 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.6038, allocations: 7.984 kB / 0.495 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.6038, allocations: 0 / 0.495 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.6039, allocations: 4 kB / 0.495 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/0.6044, allocations: 55.94 kB / 0.495 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.6045, allocations: 4 kB / 0.495 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004537/0.6049, allocations: 47.52 kB / 0.4951 GB, free: 8.375 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.605, allocations: 8 kB / 0.4951 GB, free: 8.367 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.6051, allocations: 111.9 kB / 0.4952 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.369e-05/0.6052, allocations: 23.67 kB / 0.4952 GB, free: 8.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.984e-05/0.6053, allocations: 24.89 kB / 0.4952 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.6053, allocations: 0 / 0.4952 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6053, allocations: 7.938 kB / 0.4952 GB, free: 8.195 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.6053, allocations: 3.938 kB / 0.4952 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008943/0.6062, allocations: 0.5033 MB / 0.4957 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6063, allocations: 0 / 0.4957 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.373e-05/0.6063, allocations: 4 kB / 0.4957 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.6063, allocations: 3.938 kB / 0.4957 GB, free: 7.617 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.6063, allocations: 0 / 0.4957 GB, free: 7.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.6064, allocations: 4 kB / 0.4957 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.6064, allocations: 8 kB / 0.4957 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/0.6066, allocations: 111.4 kB / 0.4959 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.6067, allocations: 96.91 kB / 0.4959 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.6068, allocations: 4 kB / 0.4959 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.607, allocations: 4.031 kB / 0.496 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.55e-05/0.607, allocations: 4 kB / 0.496 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.6071, allocations: 0 / 0.496 GB, free: 7.344 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003451/0.6074, allocations: 223.1 kB / 0.4962 GB, free: 7.125 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6074, allocations: 0 / 0.4962 GB, free: 7.125 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003979/0.6078, allocations: 67.75 kB / 0.4962 GB, free: 7.059 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005198/0.6084, allocations: 0.7168 MB / 0.4969 GB, free: 6.305 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003348/0.6087, allocations: 99.94 kB / 0.497 GB, free: 6.207 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6087, allocations: 0 / 0.497 GB, free: 6.207 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.199e-05/0.6088, allocations: 12 kB / 0.497 GB, free: 6.195 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.6091, allocations: 25.08 kB / 0.4971 GB, free: 6.168 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009705/0.6101, allocations: 307.2 kB / 0.4974 GB, free: 5.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.6105, allocations: 0.7557 MB / 0.4981 GB, free: 5.035 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.6107, allocations: 75.41 kB / 0.4982 GB, free: 4.965 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6107, allocations: 0 / 0.4982 GB, free: 4.965 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.363/2.974, allocations: 3.694 MB / 0.5018 GB, free: 1.273 MB / 426.7 MB