Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.461e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4424/0.5544, allocations: 86.76 MB / 429.4 MB, free: 7.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.5547, allocations: 81.27 kB / 429.5 MB, free: 7.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05677/0.6115, allocations: 12.57 MB / 442.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6116, allocations: 4 kB / 442.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.321e-05/0.6117, allocations: 16 kB / 442.1 MB, free: 12.73 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.003283/0.615, allocations: 0.9808 MB / 443.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.6151, allocations: 12.03 kB / 443.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002788/0.6153, allocations: 112.3 kB / 443.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003006/0.6157, allocations: 94.88 kB / 443.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.617, allocations: 0.5279 MB / 443.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.049e-05/0.6171, allocations: 54.8 kB / 443.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.6173, allocations: 73.59 kB / 443.9 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.6192, allocations: 0.7071 MB / 444.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.429e-05/0.6193, allocations: 0 / 444.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.6194, allocations: 29.56 kB / 444.7 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.6195, allocations: 16 kB / 444.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.621, allocations: 486.1 kB / 445.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006786/0.6278, allocations: 2.665 MB / 447.8 MB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.6294, allocations: 0.5208 MB / 448.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006733/0.6301, allocations: 267.3 kB / 448.6 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.536e-05/0.6302, allocations: 12.55 kB / 448.6 MB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009917/0.6312, allocations: 399 kB / 449 MB, free: 7.211 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.517e-06/0.6313, allocations: 4 kB / 449 MB, free: 7.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001845/0.6331, allocations: 0.605 MB / 449.6 MB, free: 6.766 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/0.6332, allocations: 122.8 kB / 449.7 MB, free: 6.625 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009281/0.6342, allocations: 467 kB / 450.2 MB, free: 6.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.6344, allocations: 47.56 kB / 450.2 MB, free: 6.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.6347, allocations: 361.5 kB / 450.6 MB, free: 5.961 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002679/0.635, allocations: 196.1 kB / 450.8 MB, free: 5.797 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.829e-05/0.635, allocations: 13.81 kB / 450.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.6352, allocations: 342 kB / 451.1 MB, free: 5.461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005735/0.6358, allocations: 186 kB / 451.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007515/0.6366, allocations: 366 kB / 451.7 MB, free: 5.016 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000668/0.6372, allocations: 252.2 kB / 451.9 MB, free: 4.836 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.6373, allocations: 0 / 451.9 MB, free: 4.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001858/0.6391, allocations: 0.6952 MB / 452.6 MB, free: 4.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008275/0.64, allocations: 1.858 MB / 454.5 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.64, allocations: 8 kB / 454.5 MB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000865/0.6409, allocations: 149.9 kB / 454.6 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6419, allocations: 122.8 kB / 454.7 MB, free: 2.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004262/0.6462, allocations: 2.314 MB / 457.1 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.6473, allocations: 99.41 kB / 457.1 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.424e-05/0.6475, allocations: 24 kB / 457.2 MB, free: 15.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.6475, allocations: 4 kB / 457.2 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001919/0.6494, allocations: 0.6606 MB / 457.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.6495, allocations: 4 kB / 457.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006433/0.6501, allocations: 149.3 kB / 458 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008806/0.651, allocations: 119.6 kB / 458.1 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004129/0.6551, allocations: 2.284 MB / 460.4 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.656, allocations: 75.59 kB / 460.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.439e-05/0.6561, allocations: 28 kB / 460.5 MB, free: 12.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003225/0.6564, allocations: 156.8 kB / 460.6 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/0.6567, allocations: 75.28 kB / 460.7 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.6587, allocations: 0.6549 MB / 461.4 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.6587, allocations: 19.92 kB / 461.4 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.6588, allocations: 0 / 461.4 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.6588, allocations: 0 / 461.4 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003556/0.6623, allocations: 1.471 MB / 462.9 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.6624, allocations: 0 / 462.9 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008242/0.6632, allocations: 91.88 kB / 462.9 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00068/0.6639, allocations: 136.8 kB / 463.1 MB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.031e-05/0.664, allocations: 15.98 kB / 463.1 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004199/0.6682, allocations: 2.32 MB / 465.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.6683, allocations: 0 / 465.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.6711, allocations: 1.008 MB / 466.4 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004649/0.6716, allocations: 204.1 kB / 466.6 MB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.6718, allocations: 27.92 kB / 466.7 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008921/0.6727, allocations: 55.91 kB / 466.7 MB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002624/0.6729, allocations: 64.47 kB / 466.8 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.508e-05/0.673, allocations: 23.98 kB / 466.8 MB, free: 5.766 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007297/0.6738, allocations: 365.6 kB / 467.2 MB, free: 5.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.72e-07/0.6738, allocations: 0 / 467.2 MB, free: 5.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001834/0.6757, allocations: 347.1 kB / 467.5 MB, free: 5.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.00327/0.679, allocations: 1.614 MB / 469.1 MB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003522/0.6825, allocations: 1.31 MB / 470.4 MB, free: 2.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/0.6826, allocations: 0 / 470.4 MB, free: 2.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.6838, allocations: 468.4 kB / 470.9 MB, free: 1.602 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.685, allocations: 118.4 kB / 471 MB, free: 1.488 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004518/0.6895, allocations: 1.164 MB / 472.2 MB, free: 292 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007553/0.6903, allocations: 0.9588 MB / 473.1 MB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006927/0.691, allocations: 271.3 kB / 473.4 MB, free: 15.04 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/0.6911, allocations: 4 kB / 473.4 MB, free: 15.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.895/3.586, allocations: 14.96 MB / 488.3 MB, free: 96 kB / 394.7 MB