Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.221/2.221, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.804e-05/2.813e-05, allocations: 3.703 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.09985, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4808/0.5807, allocations: 78.8 MB / 373.1 MB, free: 7.203 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003457/0.5811, allocations: 86.08 kB / 373.2 MB, free: 7.203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05421/0.6353, allocations: 11.59 MB / 384.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6354, allocations: 0 / 384.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.541e-05/0.6355, allocations: 19.33 kB / 384.8 MB, free: 19.75 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.003149/0.6386, allocations: 0.962 MB / 385.8 MB, free: 19.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.6387, allocations: 7.719 kB / 385.8 MB, free: 19.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004116/0.6391, allocations: 93.44 kB / 385.9 MB, free: 18.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.6405, allocations: 0.5059 MB / 386.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.6406, allocations: 23.31 kB / 386.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001819/0.6408, allocations: 42.67 kB / 386.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002351/0.6432, allocations: 442.8 kB / 386.9 MB, free: 18.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.6458, allocations: 0.5916 MB / 387.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-05/0.6459, allocations: 0 / 387.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/0.6461, allocations: 0 / 387.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.004e-05/0.6462, allocations: 15.5 kB / 387.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009824/0.6561, allocations: 2.466 MB / 389.9 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.6585, allocations: 0.4977 MB / 390.4 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.6596, allocations: 250 kB / 390.7 MB, free: 16.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.6598, allocations: 11 kB / 390.7 MB, free: 16.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001563/0.6614, allocations: 392.7 kB / 391.1 MB, free: 16.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 6.122e-06/0.6614, allocations: 3.938 kB / 391.1 MB, free: 16.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.002722/0.6642, allocations: 0.5499 MB / 391.6 MB, free: 16.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.6643, allocations: 121.9 kB / 391.7 MB, free: 16.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.6654, allocations: 379.1 kB / 392.1 MB, free: 16.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/0.6657, allocations: 36.92 kB / 392.2 MB, free: 16.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005062/0.6663, allocations: 321.8 kB / 392.5 MB, free: 16.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004136/0.6667, allocations: 189.9 kB / 392.7 MB, free: 16.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.6668, allocations: 4 kB / 392.7 MB, free: 16.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003122/0.6671, allocations: 372.2 kB / 393 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009154/0.6681, allocations: 177.6 kB / 393.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.6691, allocations: 343.4 kB / 393.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009059/0.6701, allocations: 206.2 kB / 393.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.6701, allocations: 0 / 393.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003114/0.6733, allocations: 0.6465 MB / 394.4 MB, free: 15.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001293/0.6746, allocations: 1.867 MB / 396.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-05/0.6747, allocations: 3.875 kB / 396.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.676, allocations: 139.2 kB / 396.4 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.6777, allocations: 126.1 kB / 396.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007358/0.6851, allocations: 2.242 MB / 398.8 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.6869, allocations: 66.77 kB / 398.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/0.6872, allocations: 32.8 kB / 398.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.6872, allocations: 3.875 kB / 398.9 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00278/0.69, allocations: 0.5495 MB / 399.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.6901, allocations: 3.719 kB / 399.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.6913, allocations: 159.7 kB / 399.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.6929, allocations: 124.8 kB / 399.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006997/0.7, allocations: 2.236 MB / 401.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.7016, allocations: 58.75 kB / 402 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.7018, allocations: 27.19 kB / 402 MB, free: 10.13 MB / 314.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 (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.0005178/0.7024, allocations: 145.2 kB / 402.1 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002834/0.7052, allocations: 0.5617 MB / 402.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.7056, allocations: 62.22 kB / 402.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/0.7084, allocations: 0.5957 MB / 403.4 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.534e-05/0.7085, allocations: 7.859 kB / 403.4 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.7085, allocations: 4 kB / 403.4 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.7085, allocations: 7.859 kB / 403.4 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005206/0.7137, allocations: 1.306 MB / 404.7 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.7138, allocations: 0 / 404.7 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.7152, allocations: 89.41 kB / 404.8 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.7164, allocations: 138.2 kB / 404.9 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.7166, allocations: 7.625 kB / 404.9 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006975/0.7236, allocations: 2.227 MB / 407.1 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.607e-06/0.7237, allocations: 3.906 kB / 407.1 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004033/0.7277, allocations: 0.9508 MB / 408.1 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005282/0.7283, allocations: 193.9 kB / 408.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/0.7285, allocations: 3.125 kB / 408.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009686/0.7295, allocations: 50.19 kB / 408.3 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/0.7298, allocations: 71.95 kB / 408.4 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.043e-05/0.7299, allocations: 23.2 kB / 408.4 MB, free: 7.207 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005435/0.7305, allocations: 288 kB / 408.7 MB, free: 7.094 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7305, allocations: 0 / 408.7 MB, free: 7.094 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001964/0.7325, allocations: 313.6 kB / 409 MB, free: 7.043 MB / 314.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,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 (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.003154/0.7356, allocations: 1.532 MB / 410.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003463/0.7392, allocations: 1.277 MB / 411.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.7392, allocations: 3.938 kB / 411.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.7405, allocations: 466.5 kB / 412.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.7415, allocations: 85.55 kB / 412.4 MB, free: 5.582 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004372/0.7459, allocations: 1.027 MB / 413.4 MB, free: 5.113 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008147/0.7467, allocations: 0.9507 MB / 414.3 MB, free: 4.289 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001091/0.7479, allocations: 115.3 kB / 414.5 MB, free: 4.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000625/0.7485, allocations: 248.4 kB / 414.7 MB, free: 4.195 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7485, allocations: 0 / 414.7 MB, free: 4.195 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08278/0.8313, allocations: 15.1 MB / 429.8 MB, free: 5.457 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003208/0.8317, allocations: 188.3 kB / 430 MB, free: 5.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.606/4.438, allocations: 0 / 430 MB, free: 5.27 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat