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.131/2.131, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.644e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3206, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.4701, allocations: 79.11 MB / 373.3 MB, free: 2.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.4706, allocations: 87.94 kB / 373.4 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06136/0.5319, allocations: 11.91 MB / 385.3 MB, free: 6.707 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.891e-06/0.532, allocations: 4 kB / 385.3 MB, free: 6.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001405/0.5322, allocations: 19.94 kB / 385.3 MB, free: 6.684 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.004984/0.5372, allocations: 0.9794 MB / 386.3 MB, free: 5.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.669e-05/0.5373, allocations: 12.03 kB / 386.3 MB, free: 5.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007411/0.5381, allocations: 94.88 kB / 386.4 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.5426, allocations: 0.5085 MB / 386.9 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.349e-05/0.5428, allocations: 23.98 kB / 387 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000334/0.5431, allocations: 47.91 kB / 387 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001716/0.5448, allocations: 455.9 kB / 387.4 MB, free: 4.477 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.5468, allocations: 0.6132 MB / 388.1 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.232e-05/0.5469, allocations: 3.938 kB / 388.1 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.547, allocations: 4 kB / 388.1 MB, free: 3.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.547, allocations: 19.94 kB / 388.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00935/0.5564, allocations: 2.544 MB / 390.6 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002581/0.5591, allocations: 0.4888 MB / 391.1 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.5605, allocations: 256 kB / 391.4 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.5607, allocations: 12.56 kB / 391.4 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003057/0.5637, allocations: 396.7 kB / 391.8 MB, free: 15.99 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 7.133e-06/0.5638, allocations: 3.938 kB / 391.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=69): time 0.002424/0.5663, allocations: 0.5617 MB / 392.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.858e-05/0.5664, allocations: 111.4 kB / 392.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008226/0.5672, allocations: 393.1 kB / 392.8 MB, free: 14.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001899/0.5675, allocations: 33.7 kB / 392.9 MB, free: 14.85 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.5679, allocations: 366.8 kB / 393.2 MB, free: 14.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.5682, allocations: 193 kB / 393.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.755e-05/0.5683, allocations: 4 kB / 393.4 MB, free: 14.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.5685, allocations: 347.3 kB / 393.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005596/0.5691, allocations: 173.6 kB / 393.9 MB, free: 13.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.5698, allocations: 362.5 kB / 394.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006233/0.5704, allocations: 207.3 kB / 394.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.5705, allocations: 0 / 394.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001912/0.5724, allocations: 0.6128 MB / 395.1 MB, free: 12.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000984/0.5734, allocations: 1.864 MB / 397 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.666e-05/0.5735, allocations: 7.938 kB / 397 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008205/0.5743, allocations: 144.7 kB / 397.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.5755, allocations: 127.8 kB / 397.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004234/0.5797, allocations: 2.209 MB / 399.4 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.5809, allocations: 75.41 kB / 399.5 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.581, allocations: 35.98 kB / 399.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.5811, allocations: 4 kB / 399.5 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001776/0.5828, allocations: 0.5649 MB / 400.1 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.5829, allocations: 12 kB / 400.1 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006391/0.5836, allocations: 132.8 kB / 400.3 MB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.5846, allocations: 123.8 kB / 400.4 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/0.5887, allocations: 2.186 MB / 402.6 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/0.5896, allocations: 63.61 kB / 402.6 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.5898, allocations: 31.98 kB / 402.7 MB, free: 4.574 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.0003658/0.5901, allocations: 141.8 kB / 402.8 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001764/0.5919, allocations: 0.5656 MB / 403.4 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.5922, allocations: 63.39 kB / 403.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001886/0.5941, allocations: 0.6118 MB / 404 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.5942, allocations: 4 kB / 404 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5942, allocations: 3.953 kB / 404 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.5942, allocations: 7.984 kB / 404 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003571/0.5978, allocations: 1.319 MB / 405.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.5979, allocations: 0 / 405.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009182/0.5988, allocations: 99.81 kB / 405.5 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006849/0.5995, allocations: 136.7 kB / 405.6 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/0.5997, allocations: 11.98 kB / 405.6 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004202/0.6039, allocations: 2.201 MB / 407.8 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.6039, allocations: 0 / 407.8 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.6066, allocations: 0.961 MB / 408.8 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.6071, allocations: 200.2 kB / 409 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/0.6073, allocations: 8 kB / 409 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008257/0.6082, allocations: 43.95 kB / 409 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/0.6085, allocations: 64.47 kB / 409.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-05/0.6086, allocations: 23.92 kB / 409.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005306/0.6091, allocations: 291 kB / 409.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6092, allocations: 0 / 409.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001851/0.611, allocations: 323 kB / 409.7 MB, free: 13.29 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.003095/0.6142, allocations: 1.553 MB / 411.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003433/0.6176, allocations: 1.256 MB / 412.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.6177, allocations: 0 / 412.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.619, allocations: 460.8 kB / 413 MB, free: 9.953 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009595/0.62, allocations: 70.05 kB / 413 MB, free: 9.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/0.6244, allocations: 1.125 MB / 414.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000738/0.6252, allocations: 0.9624 MB / 415.1 MB, free: 7.719 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007198/0.6259, allocations: 263.3 kB / 415.4 MB, free: 7.465 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/0.6259, allocations: 8 kB / 415.4 MB, free: 7.457 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.09/3.716, allocations: 14.36 MB / 429.7 MB, free: 105.1 MB / 362.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