Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.276e-05/4.28e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09712, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5355, allocations: 79.77 MB / 379.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.5359, allocations: 83.3 kB / 379.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04999/0.5859, allocations: 12.04 MB / 391.9 MB, free: 11.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.5859, allocations: 0 / 391.9 MB, free: 11.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.731e-05/0.586, allocations: 19.25 kB / 391.9 MB, free: 11.41 MB / 314.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.002618/0.5886, allocations: 0.9846 MB / 392.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.5887, allocations: 7.781 kB / 392.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.5889, allocations: 115.4 kB / 393 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.5891, allocations: 93.09 kB / 393.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.5902, allocations: 0.5028 MB / 393.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.5902, allocations: 57.44 kB / 393.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.5904, allocations: 75.03 kB / 393.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.592, allocations: 0.6957 MB / 394.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/0.5921, allocations: 0 / 394.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.5922, allocations: 30.95 kB / 394.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.5922, allocations: 19.34 kB / 394.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.5935, allocations: 487.5 kB / 394.9 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005491/0.599, allocations: 2.695 MB / 397.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.6003, allocations: 0.5017 MB / 398.1 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00059/0.6009, allocations: 273.5 kB / 398.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.189e-05/0.601, allocations: 12.3 kB / 398.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008839/0.6019, allocations: 417 kB / 398.8 MB, free: 9.105 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.576e-06/0.6019, allocations: 0 / 398.8 MB, free: 9.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001611/0.6036, allocations: 0.6125 MB / 399.4 MB, free: 9.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/0.6036, allocations: 118.1 kB / 399.5 MB, free: 8.887 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007671/0.6044, allocations: 462.9 kB / 400 MB, free: 8.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.6045, allocations: 46.14 kB / 400 MB, free: 8.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.6048, allocations: 352.1 kB / 400.4 MB, free: 8.516 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.605, allocations: 213.3 kB / 400.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.6051, allocations: 18.09 kB / 400.6 MB, free: 8.387 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.6052, allocations: 336.1 kB / 400.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005201/0.6057, allocations: 199.4 kB / 401.1 MB, free: 8.066 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.6063, allocations: 360.4 kB / 401.5 MB, free: 7.879 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.6069, allocations: 253.2 kB / 401.7 MB, free: 7.832 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.607, allocations: 3.938 kB / 401.7 MB, free: 7.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001645/0.6086, allocations: 0.7071 MB / 402.4 MB, free: 7.707 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003739/0.609, allocations: 1.857 MB / 404.3 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.609, allocations: 3.875 kB / 404.3 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000703/0.6097, allocations: 150.7 kB / 404.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009445/0.6107, allocations: 130.2 kB / 404.6 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/0.6145, allocations: 2.286 MB / 406.9 MB, free: 20.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.6155, allocations: 89.36 kB / 407 MB, free: 20.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.6156, allocations: 33.58 kB / 407 MB, free: 20.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.6156, allocations: 3.938 kB / 407 MB, free: 20.29 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/0.6172, allocations: 0.6693 MB / 407.7 MB, free: 20.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.6172, allocations: 3.844 kB / 407.7 MB, free: 20.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000552/0.6178, allocations: 145.8 kB / 407.8 MB, free: 20.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008414/0.6187, allocations: 130.9 kB / 407.9 MB, free: 20.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003449/0.6221, allocations: 2.256 MB / 410.2 MB, free: 18.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007414/0.6229, allocations: 76.56 kB / 410.3 MB, free: 18.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.644e-05/0.623, allocations: 28.88 kB / 410.3 MB, free: 18.76 MB / 330.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.0003113/0.6233, allocations: 166.9 kB / 410.5 MB, free: 18.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.6235, allocations: 71.92 kB / 410.5 MB, free: 18.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001709/0.6252, allocations: 0.6591 MB / 411.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.6253, allocations: 11.7 kB / 411.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6253, allocations: 2.625 kB / 411.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.6253, allocations: 6.25 kB / 411.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.6283, allocations: 1.476 MB / 412.7 MB, free: 17.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6283, allocations: 7.812 kB / 412.7 MB, free: 17.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008364/0.6292, allocations: 89.12 kB / 412.8 MB, free: 17.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005929/0.6298, allocations: 142 kB / 412.9 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.869e-05/0.6299, allocations: 18.42 kB / 412.9 MB, free: 17.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00348/0.6334, allocations: 2.266 MB / 415.2 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6334, allocations: 0 / 415.2 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.6358, allocations: 1.022 MB / 416.2 MB, free: 16.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003767/0.6362, allocations: 209.5 kB / 416.4 MB, free: 16.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.6363, allocations: 18.28 kB / 416.4 MB, free: 16.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008186/0.6372, allocations: 53.8 kB / 416.5 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.6374, allocations: 73.64 kB / 416.6 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/0.6375, allocations: 14.91 kB / 416.6 MB, free: 15.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006035/0.6381, allocations: 362.1 kB / 416.9 MB, free: 15.85 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6381, allocations: 0 / 416.9 MB, free: 15.85 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001538/0.6397, allocations: 352.6 kB / 417.3 MB, free: 15.8 MB / 330.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.00274/0.6424, allocations: 1.618 MB / 418.9 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002876/0.6453, allocations: 1.308 MB / 420.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.6454, allocations: 0 / 420.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.6464, allocations: 470.9 kB / 420.7 MB, free: 14.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000895/0.6473, allocations: 103.2 kB / 420.8 MB, free: 14.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.6508, allocations: 1.183 MB / 422 MB, free: 13.78 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.6515, allocations: 0.9579 MB / 422.9 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005274/0.652, allocations: 276.3 kB / 423.2 MB, free: 12.92 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.652, allocations: 0 / 423.2 MB, free: 12.92 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.087/3.739, allocations: 14.78 MB / 438 MB, free: 5.527 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat