Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.571/2.571, allocations: 270 MB / 282.6 MB, free: 1.797 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.01e-05/3.999e-05, allocations: 4 kB / 347.1 MB, free: 3.086 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3972, allocations: 61.87 MB / 408.9 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.6017, allocations: 115.8 MB / 0.5125 GB, free: 6.621 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.6021, allocations: 79.95 kB / 0.5125 GB, free: 6.543 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.686/3.288, allocations: 469.4 MB / 0.9709 GB, free: 63.14 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.814e-06/3.288, allocations: 0 / 0.9709 GB, free: 63.14 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.001233/3.29, allocations: 304.2 kB / 0.9712 GB, free: 63.12 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.0848/3.374, allocations: 13.4 MB / 0.9843 GB, free: 59.51 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/3.374, allocations: 6.688 kB / 0.9843 GB, free: 59.51 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01359/3.388, allocations: 1.982 MB / 0.9862 GB, free: 59.38 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06277/3.451, allocations: 7.875 MB / 0.9939 GB, free: 58.62 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03073/3.482, allocations: 9.067 MB / 1.003 GB, free: 57.48 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001425/3.483, allocations: 0.9906 MB / 1.004 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006851/3.49, allocations: 1.293 MB / 1.005 GB, free: 57.44 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08128/3.571, allocations: 22.75 MB / 1.027 GB, free: 55.86 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008193/3.572, allocations: 10.91 kB / 1.027 GB, free: 55.86 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00629/3.579, allocations: 0.5602 MB / 1.028 GB, free: 55.86 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002607/3.581, allocations: 1.025 MB / 1.029 GB, free: 55.83 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07423/3.656, allocations: 19.33 MB / 1.048 GB, free: 48.85 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2262/3.882, allocations: 72.36 MB / 1.118 GB, free: 6.91 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5039/4.386, allocations: 28.45 MB / 1.146 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01144/4.397, allocations: 4.799 MB / 1.151 GB, free: 50.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05025/4.448, allocations: 15.81 MB / 1.166 GB, free: 49.41 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.782e-05/4.448, allocations: 81.45 kB / 1.166 GB, free: 49.37 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=465): time 8.816e-06/4.448, allocations: 0 / 1.166 GB, free: 49.37 MB / 0.5573 GB Notification: Performance of matching and sorting (n=465): time 0.02227/4.47, allocations: 8.073 MB / 1.174 GB, free: 49.18 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/4.47, allocations: 133.8 kB / 1.174 GB, free: 49.08 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01132/4.481, allocations: 4.523 MB / 1.179 GB, free: 48.71 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001162/4.483, allocations: 100.2 kB / 1.179 GB, free: 48.68 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.004542/4.487, allocations: 5.688 MB / 1.184 GB, free: 45.96 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002654/4.49, allocations: 1.577 MB / 1.186 GB, free: 44.99 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001143/4.491, allocations: 144.6 kB / 1.186 GB, free: 44.99 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0007509/4.492, allocations: 0.6198 MB / 1.187 GB, free: 44.66 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01017/4.502, allocations: 3.959 MB / 1.191 GB, free: 44.65 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/4.515, allocations: 6.933 MB / 1.197 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/4.528, allocations: 5.445 MB / 1.203 GB, free: 40.92 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/4.529, allocations: 33 kB / 1.203 GB, free: 40.92 MB / 0.5573 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.03364/4.562, allocations: 12.2 MB / 1.215 GB, free: 40.6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000119/4.562, allocations: 52.41 kB / 1.215 GB, free: 40.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002306/4.563, allocations: 102.6 kB / 1.215 GB, free: 40.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01132/4.574, allocations: 3.079 MB / 1.218 GB, free: 40.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/4.586, allocations: 1.58 MB / 1.219 GB, free: 40.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/4.599, allocations: 6.424 MB / 1.226 GB, free: 38.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0104/4.609, allocations: 1.063 MB / 1.227 GB, free: 38.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002163/4.611, allocations: 370.1 kB / 1.227 GB, free: 38.47 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (802): * Single equations (assignments): 799 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.003199/4.615, allocations: 0.5739 MB / 1.228 GB, free: 38.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002019/4.617, allocations: 0.4936 MB / 1.228 GB, free: 38.04 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03413/4.651, allocations: 9.354 MB / 1.237 GB, free: 36.73 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.964e-05/4.651, allocations: 48.77 kB / 1.237 GB, free: 36.73 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.289e-05/4.651, allocations: 0 / 1.237 GB, free: 36.73 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001476/4.651, allocations: 24.8 kB / 1.237 GB, free: 36.73 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07446/4.726, allocations: 20.47 MB / 1.257 GB, free: 29.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-05/4.726, allocations: 0 / 1.257 GB, free: 29.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007046/4.733, allocations: 0.7426 MB / 1.258 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01118/4.744, allocations: 2.948 MB / 1.261 GB, free: 28.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001346/4.745, allocations: 99.91 kB / 1.261 GB, free: 28.44 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/4.758, allocations: 6.233 MB / 1.267 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/4.758, allocations: 0 / 1.267 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03324/4.791, allocations: 13.74 MB / 1.28 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005261/4.797, allocations: 1.402 MB / 1.282 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002135/4.799, allocations: 78.81 kB / 1.282 GB, free: 19.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006719/4.806, allocations: 391.2 kB / 1.282 GB, free: 18.98 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00174/4.808, allocations: 310.8 kB / 1.283 GB, free: 18.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006273/4.808, allocations: 132.5 kB / 1.283 GB, free: 18.91 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008686/4.817, allocations: 3.357 MB / 1.286 GB, free: 17.23 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.81e-07/4.817, allocations: 4 kB / 1.286 GB, free: 17.23 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01312/4.83, allocations: 3.194 MB / 1.289 GB, free: 14.03 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 354 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03411/4.864, allocations: 14.56 MB / 1.303 GB, free: 1.426 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03659/4.901, allocations: 10.05 MB / 1.313 GB, free: 10.25 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/4.901, allocations: 0 / 1.313 GB, free: 10.25 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01623/4.917, allocations: 4.554 MB / 1.318 GB, free: 6.316 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01106/4.928, allocations: 1.161 MB / 1.319 GB, free: 5.418 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09187/5.02, allocations: 24.04 MB / 1.342 GB, free: 0.75 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5287/5.549, allocations: 9.093 MB / 1.351 GB, free: 96.84 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01756/5.567, allocations: 4.704 MB / 1.356 GB, free: 96.84 MB / 0.5886 GB Notification: Performance of SimCode: time 1.783e-06/5.567, allocations: 0 / 1.356 GB, free: 96.84 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.274/11.84, allocations: 434.6 MB / 1.78 GB, free: 75.52 MB / 0.6198 GB