Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.095/2.095, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.679e-05/3.683e-05, allocations: 7.984 kB / 249.7 MB, free: 14.79 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3578, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1374/0.4953, allocations: 79.11 MB / 373.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/0.4956, allocations: 79.95 kB / 373.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05723/0.5529, allocations: 11.92 MB / 385.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.592e-06/0.553, allocations: 0 / 385.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.896e-05/0.5531, allocations: 23.92 kB / 385.4 MB, free: 6.625 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.004725/0.5578, allocations: 0.9793 MB / 386.4 MB, free: 5.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.557e-05/0.5579, allocations: 12.03 kB / 386.4 MB, free: 5.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005098/0.5585, allocations: 94.88 kB / 386.5 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.5605, allocations: 0.5046 MB / 387 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.331e-05/0.5606, allocations: 20 kB / 387 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.5609, allocations: 51.91 kB / 387 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002273/0.5632, allocations: 455.9 kB / 387.5 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/0.5659, allocations: 0.6093 MB / 388.1 MB, free: 3.781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.187e-05/0.566, allocations: 3.938 kB / 388.1 MB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/0.5662, allocations: 7.984 kB / 388.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.263e-05/0.5662, allocations: 19.94 kB / 388.1 MB, free: 3.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009606/0.5758, allocations: 2.544 MB / 390.7 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.5779, allocations: 496.5 kB / 391.1 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009597/0.5789, allocations: 254.5 kB / 391.4 MB, free: 368 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.5791, allocations: 12.55 kB / 391.4 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001406/0.5805, allocations: 395.3 kB / 391.8 MB, free: 15.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 9.438e-06/0.5805, allocations: 0 / 391.8 MB, free: 15.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=69): time 0.002487/0.583, allocations: 0.5655 MB / 392.4 MB, free: 15.37 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.5832, allocations: 115.4 kB / 392.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.5842, allocations: 389.1 kB / 392.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.5844, allocations: 33.69 kB / 392.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004931/0.5849, allocations: 324.4 kB / 393.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003548/0.5853, allocations: 205 kB / 393.4 MB, free: 14.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.509e-05/0.5854, allocations: 0 / 393.4 MB, free: 14.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002843/0.5857, allocations: 378.7 kB / 393.8 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008135/0.5865, allocations: 177.5 kB / 393.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.5876, allocations: 354.5 kB / 394.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/0.5885, allocations: 214.6 kB / 394.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.328e-05/0.5885, allocations: 4 kB / 394.5 MB, free: 13.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002855/0.5914, allocations: 0.6553 MB / 395.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0012/0.5926, allocations: 1.857 MB / 397 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.5927, allocations: 7.938 kB / 397 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.5939, allocations: 152.5 kB / 397.2 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.5955, allocations: 131.8 kB / 397.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006031/0.6016, allocations: 2.205 MB / 399.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.6031, allocations: 71.5 kB / 399.6 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.6032, allocations: 27.98 kB / 399.6 MB, free: 7.723 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.6033, allocations: 8 kB / 399.6 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002621/0.6059, allocations: 0.5609 MB / 400.2 MB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.606, allocations: 4 kB / 400.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009846/0.607, allocations: 140.7 kB / 400.3 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.6084, allocations: 127.8 kB / 400.4 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005793/0.6143, allocations: 2.221 MB / 402.7 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.6157, allocations: 63.61 kB / 402.7 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.6158, allocations: 24 kB / 402.7 MB, free: 4.461 MB / 346.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,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004183/0.6162, allocations: 145.8 kB / 402.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002278/0.6185, allocations: 0.5695 MB / 403.5 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.6188, allocations: 59.25 kB / 403.5 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.6213, allocations: 0.6079 MB / 404.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.6213, allocations: 8 kB / 404.1 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.6213, allocations: 7.938 kB / 404.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.6213, allocations: 0 / 404.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.6257, allocations: 1.319 MB / 405.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.6258, allocations: 0 / 405.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.627, allocations: 103.8 kB / 405.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008554/0.6279, allocations: 128.7 kB / 405.7 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-05/0.628, allocations: 11.98 kB / 405.7 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005444/0.6335, allocations: 2.205 MB / 407.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.6335, allocations: 0 / 407.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.6372, allocations: 0.9648 MB / 408.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007229/0.638, allocations: 196.2 kB / 409.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.6383, allocations: 15.98 kB / 409.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.6394, allocations: 35.97 kB / 409.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.6398, allocations: 68.45 kB / 409.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.6399, allocations: 27.92 kB / 409.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007495/0.6407, allocations: 291 kB / 409.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6407, allocations: 0 / 409.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002768/0.6435, allocations: 319 kB / 409.8 MB, free: 13.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.004176/0.6477, allocations: 1.55 MB / 411.3 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.6509, allocations: 1.282 MB / 412.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.651, allocations: 0 / 412.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.652, allocations: 452.9 kB / 413.1 MB, free: 9.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00083/0.6529, allocations: 78.3 kB / 413.1 MB, free: 9.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.6564, allocations: 1.092 MB / 414.2 MB, free: 8.605 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000676/0.6571, allocations: 0.9594 MB / 415.2 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007995/0.6579, allocations: 116.7 kB / 415.3 MB, free: 7.508 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005165/0.6584, allocations: 255.3 kB / 415.6 MB, free: 7.262 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6585, allocations: 0 / 415.6 MB, free: 7.262 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.345/1.003, allocations: 15.06 MB / 430.6 MB, free: 105.5 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002789/1.004, allocations: 185 kB / 430.8 MB, free: 105.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.177/4.18, allocations: 0 / 430.8 MB, free: 105.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat