Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.195e-05/3.2e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4714/0.5864, allocations: 87.74 MB / 430.4 MB, free: 6.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.5868, allocations: 83.77 kB / 430.5 MB, free: 6.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09616/0.683, allocations: 25.53 MB / 456 MB, free: 1.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.683, allocations: 3.938 kB / 456 MB, free: 1.426 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.334e-05/0.6831, allocations: 12 kB / 456 MB, free: 1.414 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.004962/0.688, allocations: 1.104 MB / 457.1 MB, free: 268 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.6881, allocations: 8.031 kB / 457.1 MB, free: 260 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002777/0.6884, allocations: 131.2 kB / 457.3 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003202/0.6916, allocations: 326.8 kB / 457.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.692, allocations: 247.5 kB / 457.8 MB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.785e-05/0.6921, allocations: 65.94 kB / 457.9 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002214/0.6923, allocations: 91.89 kB / 458 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.6945, allocations: 0.794 MB / 458.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.594e-05/0.6945, allocations: 4.344 kB / 458.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.6947, allocations: 39.95 kB / 458.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.6947, allocations: 20 kB / 458.8 MB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.6967, allocations: 0.6874 MB / 459.5 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007/0.7038, allocations: 2.969 MB / 462.5 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.7055, allocations: 0.964 MB / 463.4 MB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.7061, allocations: 206.5 kB / 463.6 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001701/0.7063, allocations: 97.66 kB / 463.7 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.7063, allocations: 47.11 kB / 463.8 MB, free: 9.188 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.156e-06/0.7063, allocations: 0 / 463.8 MB, free: 9.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.009974/0.7163, allocations: 1.82 MB / 465.6 MB, free: 7.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.7164, allocations: 85.61 kB / 465.7 MB, free: 7.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004822/0.7169, allocations: 271.2 kB / 466 MB, free: 6.941 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.608e-05/0.717, allocations: 33.7 kB / 466 MB, free: 6.902 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003379/0.7174, allocations: 421.1 kB / 466.4 MB, free: 6.484 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002542/0.7176, allocations: 212.9 kB / 466.6 MB, free: 6.273 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.7177, allocations: 16 kB / 466.6 MB, free: 6.258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.7179, allocations: 342.8 kB / 467 MB, free: 5.914 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.7185, allocations: 198 kB / 467.2 MB, free: 5.719 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008567/0.7194, allocations: 434.5 kB / 467.6 MB, free: 5.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007666/0.7202, allocations: 263.3 kB / 467.8 MB, free: 4.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.7202, allocations: 4 kB / 467.8 MB, free: 4.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002082/0.7223, allocations: 0.7233 MB / 468.6 MB, free: 4.191 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.7223, allocations: 15.95 kB / 468.6 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.7224, allocations: 8 kB / 468.6 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.7227, allocations: 65.67 kB / 468.6 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/0.7245, allocations: 215.7 kB / 468.9 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/0.7273, allocations: 2.652 MB / 471.5 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.7287, allocations: 79.97 kB / 471.6 MB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.7288, allocations: 44.22 kB / 471.6 MB, free: 0.8438 MB / 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.0002444/0.7291, allocations: 152.5 kB / 471.8 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.7292, allocations: 47.47 kB / 471.8 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.7311, allocations: 0.5986 MB / 472.4 MB, free: 36 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.7311, allocations: 8 kB / 472.4 MB, free: 28 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.7311, allocations: 0 / 472.4 MB, free: 28 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.7311, allocations: 7.938 kB / 472.4 MB, free: 20 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003118/0.7343, allocations: 1.286 MB / 473.7 MB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.7343, allocations: 0 / 473.7 MB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.7357, allocations: 155.8 kB / 473.9 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002783/0.736, allocations: 61.61 kB / 473.9 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.521e-05/0.7361, allocations: 15.98 kB / 474 MB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002646/0.7387, allocations: 2.644 MB / 476.6 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7388, allocations: 0 / 476.6 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002335/0.7411, allocations: 0.8752 MB / 477.5 MB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003283/0.7415, allocations: 168.6 kB / 477.6 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.7416, allocations: 16 kB / 477.7 MB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.7426, allocations: 51.95 kB / 477.7 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.7428, allocations: 52.48 kB / 477.8 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.561e-05/0.7429, allocations: 23.98 kB / 477.8 MB, free: 10.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003306/0.7432, allocations: 198.2 kB / 478 MB, free: 10.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7432, allocations: 0 / 478 MB, free: 10.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001053/0.7443, allocations: 188 kB / 478.2 MB, free: 9.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_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.002856/0.7472, allocations: 1.517 MB / 479.7 MB, free: 8.379 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001891/0.7491, allocations: 0.7389 MB / 480.4 MB, free: 7.617 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.7491, allocations: 3.938 kB / 480.4 MB, free: 7.613 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009778/0.7501, allocations: 479.6 kB / 480.9 MB, free: 7.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.7505, allocations: 32.78 kB / 480.9 MB, free: 7.094 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.7546, allocations: 1.012 MB / 481.9 MB, free: 6.047 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006346/0.7552, allocations: 0.8925 MB / 482.8 MB, free: 5.129 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006688/0.7559, allocations: 239.3 kB / 483.1 MB, free: 4.895 MB / 394.7 MB Notification: Performance of SimCode: time 1.232e-06/0.7559, allocations: 0 / 483.1 MB, free: 4.895 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.978/3.734, allocations: 15.19 MB / 498.2 MB, free: 5.691 MB / 410.7 MB