Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.416/2.416, allocations: 254.6 MB / 267.7 MB, free: 12.45 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.644e-05/4.669e-05, allocations: 4 kB / 330.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4118/0.4119, allocations: 60.23 MB / 391.1 MB, free: 4.773 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1871/0.599, allocations: 88.47 MB / 479.6 MB, free: 12.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.5994, allocations: 71.95 kB / 479.7 MB, free: 12.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03504/0.6344, allocations: 7.474 MB / 487.1 MB, free: 4.605 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.868e-06/0.6345, allocations: 4 kB / 487.1 MB, free: 4.602 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.033e-05/0.6345, allocations: 11.94 kB / 487.2 MB, free: 4.59 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001555/0.6361, allocations: 0.6425 MB / 487.8 MB, free: 3.902 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.6362, allocations: 8.031 kB / 487.8 MB, free: 3.895 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.6363, allocations: 74.53 kB / 487.9 MB, free: 3.812 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.6364, allocations: 59.3 kB / 487.9 MB, free: 3.754 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008274/0.6373, allocations: 372.2 kB / 488.3 MB, free: 3.348 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.6373, allocations: 24.78 kB / 488.3 MB, free: 3.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.459e-05/0.6374, allocations: 39.91 kB / 488.4 MB, free: 3.285 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007549/0.6382, allocations: 294.3 kB / 488.6 MB, free: 2.984 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.6382, allocations: 4 kB / 488.7 MB, free: 2.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.6383, allocations: 8 kB / 488.7 MB, free: 2.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.6383, allocations: 15.95 kB / 488.7 MB, free: 2.957 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006214/0.6389, allocations: 197.5 kB / 488.9 MB, free: 2.762 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.642, allocations: 1.173 MB / 490 MB, free: 1.512 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.6429, allocations: 256 kB / 490.3 MB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/0.6432, allocations: 128.2 kB / 490.4 MB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.6433, allocations: 4.281 kB / 490.4 MB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.6433, allocations: 38.83 kB / 490.5 MB, free: 1.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 2.926e-06/0.6433, allocations: 0 / 490.5 MB, free: 1.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.002086/0.6454, allocations: 0.7728 MB / 491.2 MB, free: 256 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.6455, allocations: 55.41 kB / 491.3 MB, free: 188 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006409/0.6462, allocations: 327.3 kB / 491.6 MB, free: 15.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.214e-05/0.6462, allocations: 37.7 kB / 491.6 MB, free: 15.81 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.6465, allocations: 216.6 kB / 491.9 MB, free: 15.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.6467, allocations: 138 kB / 492 MB, free: 15.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.6467, allocations: 8 kB / 492 MB, free: 15.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.6469, allocations: 350.8 kB / 492.3 MB, free: 15.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.6472, allocations: 88.86 kB / 492.4 MB, free: 15.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003218/0.6475, allocations: 136.1 kB / 492.6 MB, free: 14.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.6479, allocations: 113.6 kB / 492.7 MB, free: 14.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.6479, allocations: 0 / 492.7 MB, free: 14.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008865/0.6488, allocations: 337.9 kB / 493 MB, free: 14.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.6488, allocations: 4 kB / 493 MB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.6488, allocations: 3.984 kB / 493 MB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.6489, allocations: 4.125 kB / 493 MB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.6503, allocations: 151.8 kB / 493.2 MB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001562/0.6519, allocations: 1.335 MB / 494.5 MB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.6525, allocations: 16.02 kB / 494.5 MB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.6525, allocations: 12 kB / 494.5 MB, free: 12.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.6527, allocations: 120.9 kB / 494.6 MB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.6528, allocations: 47.56 kB / 494.7 MB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008481/0.6537, allocations: 317.6 kB / 495 MB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.6537, allocations: 4 kB / 495 MB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.6537, allocations: 7.938 kB / 495 MB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.6537, allocations: 0 / 495 MB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.6555, allocations: 0.7906 MB / 495.8 MB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.6555, allocations: 3.984 kB / 495.8 MB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009184/0.6564, allocations: 87.91 kB / 495.9 MB, free: 11.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.6565, allocations: 3.953 kB / 495.9 MB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.6565, allocations: 11.98 kB / 495.9 MB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.6565, allocations: 0 / 495.9 MB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.6565, allocations: 4 kB / 495.9 MB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.6577, allocations: 0.5125 MB / 496.4 MB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.658, allocations: 132.6 kB / 496.6 MB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.152e-05/0.6581, allocations: 11.95 kB / 496.6 MB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.6585, allocations: 19.98 kB / 496.6 MB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.6586, allocations: 19.97 kB / 496.6 MB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.6587, allocations: 12 kB / 496.6 MB, free: 10.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004636/0.6592, allocations: 257.2 kB / 496.9 MB, free: 10.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6592, allocations: 0 / 496.9 MB, free: 10.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005803/0.6598, allocations: 99.94 kB / 497 MB, free: 10.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.001528/0.6613, allocations: 1.067 MB / 498 MB, free: 9.129 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009437/0.6623, allocations: 256.3 kB / 498.3 MB, free: 8.879 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.6623, allocations: 0 / 498.3 MB, free: 8.879 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003625/0.6627, allocations: 131.6 kB / 498.4 MB, free: 8.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007227/0.6634, allocations: 85.34 kB / 498.5 MB, free: 8.668 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003269/0.6667, allocations: 1.051 MB / 499.5 MB, free: 7.582 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005294/0.6673, allocations: 0.843 MB / 0.4887 GB, free: 6.711 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003427/0.6676, allocations: 47.25 kB / 0.4887 GB, free: 6.664 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/0.668, allocations: 155.4 kB / 0.4889 GB, free: 6.512 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/0.668, allocations: 0 / 0.4889 GB, free: 6.512 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03706/0.7051, allocations: 7.734 MB / 0.4964 GB, free: 14.83 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003367/0.7055, allocations: 151.4 kB / 0.4965 GB, free: 14.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.473, allocations: 0 / 0.4965 GB, free: 14.61 MB / 442.7 MB