Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.91/1.91, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.915e-05/3.944e-05, allocations: 1.406 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09548, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.414/0.5096, allocations: 79.47 MB / 379.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003221/0.5099, allocations: 84.36 kB / 379.5 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05014/0.5601, allocations: 11.71 MB / 391.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5602, allocations: 0 / 391.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.077e-05/0.5602, allocations: 18.75 kB / 391.3 MB, free: 11.11 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.002818/0.5631, allocations: 0.9624 MB / 392.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.5631, allocations: 7.75 kB / 392.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003843/0.5635, allocations: 116.2 kB / 392.3 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.5639, allocations: 93.5 kB / 392.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.5651, allocations: 0.4973 MB / 392.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.325e-05/0.5652, allocations: 58.84 kB / 393 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.5654, allocations: 67.09 kB / 393 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.5671, allocations: 0.6671 MB / 393.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.5672, allocations: 7.922 kB / 393.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.5673, allocations: 30.45 kB / 393.8 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.5674, allocations: 19.38 kB / 393.8 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.5687, allocations: 476.5 kB / 394.2 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006156/0.5749, allocations: 2.602 MB / 396.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.5764, allocations: 0.5096 MB / 397.4 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006662/0.5771, allocations: 269.2 kB / 397.6 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.935e-05/0.5772, allocations: 8.297 kB / 397.6 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009261/0.5781, allocations: 408.6 kB / 398 MB, free: 8.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 3.066e-06/0.5782, allocations: 0 / 398 MB, free: 8.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.001671/0.5798, allocations: 0.6033 MB / 398.6 MB, free: 8.758 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.5799, allocations: 118 kB / 398.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008113/0.5808, allocations: 460.2 kB / 399.2 MB, free: 8.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.5809, allocations: 44.7 kB / 399.2 MB, free: 8.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.5812, allocations: 357.2 kB / 399.6 MB, free: 8.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.5814, allocations: 195.8 kB / 399.8 MB, free: 8.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.749e-05/0.5815, allocations: 15.5 kB / 399.8 MB, free: 8.152 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/0.5816, allocations: 341.5 kB / 400.1 MB, free: 7.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005299/0.5821, allocations: 186.8 kB / 400.3 MB, free: 7.832 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.5828, allocations: 363.7 kB / 400.7 MB, free: 7.641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.5834, allocations: 246.3 kB / 400.9 MB, free: 7.598 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.5834, allocations: 3.938 kB / 400.9 MB, free: 7.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001715/0.5851, allocations: 0.689 MB / 401.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004352/0.5856, allocations: 1.857 MB / 403.4 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5856, allocations: 7.672 kB / 403.5 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008012/0.5865, allocations: 153.3 kB / 403.6 MB, free: 5.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009786/0.5875, allocations: 118.5 kB / 403.7 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004166/0.5916, allocations: 2.313 MB / 406 MB, free: 20.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.5928, allocations: 102.4 kB / 406.1 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/0.5929, allocations: 30.44 kB / 406.2 MB, free: 20.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.5929, allocations: 6.719 kB / 406.2 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001674/0.5946, allocations: 0.6549 MB / 406.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.5946, allocations: 7.688 kB / 406.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006016/0.5952, allocations: 144 kB / 407 MB, free: 19.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008715/0.5961, allocations: 112.7 kB / 407.1 MB, free: 19.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003753/0.5999, allocations: 2.285 MB / 409.4 MB, free: 18.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008022/0.6007, allocations: 75.95 kB / 409.4 MB, free: 18.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.739e-05/0.6008, allocations: 36.41 kB / 409.5 MB, free: 18.52 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 (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.000323/0.6012, allocations: 159 kB / 409.6 MB, free: 18.4 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.6014, allocations: 77.12 kB / 409.7 MB, free: 18.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002615/0.604, allocations: 0.6525 MB / 410.4 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.6041, allocations: 7.625 kB / 410.4 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.6041, allocations: 0 / 410.4 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.6041, allocations: 3.797 kB / 410.4 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003038/0.6072, allocations: 1.46 MB / 411.8 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.6072, allocations: 0 / 411.8 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007986/0.608, allocations: 83.83 kB / 411.9 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006442/0.6087, allocations: 141.4 kB / 412.1 MB, free: 17.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.434e-05/0.6088, allocations: 20.77 kB / 412.1 MB, free: 17.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003743/0.6125, allocations: 2.313 MB / 414.4 MB, free: 16.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.6126, allocations: 3.875 kB / 414.4 MB, free: 16.4 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.615, allocations: 1.012 MB / 415.4 MB, free: 16.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003827/0.6154, allocations: 210.9 kB / 415.6 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.6155, allocations: 15.5 kB / 415.6 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008428/0.6164, allocations: 57.45 kB / 415.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.6166, allocations: 65.22 kB / 415.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/0.6167, allocations: 19.42 kB / 415.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005962/0.6173, allocations: 361.2 kB / 416.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6173, allocations: 0 / 416.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001502/0.6188, allocations: 342.8 kB / 416.4 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: 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.002723/0.6216, allocations: 1.594 MB / 418 MB, free: 15.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.6246, allocations: 1.306 MB / 419.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.6247, allocations: 0 / 419.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.6258, allocations: 466.6 kB / 419.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009377/0.6267, allocations: 120.8 kB / 419.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.6305, allocations: 1.124 MB / 421 MB, free: 13.83 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006226/0.6312, allocations: 0.9539 MB / 422 MB, free: 13.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/0.632, allocations: 256.8 kB / 422.3 MB, free: 12.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.632, allocations: 0 / 422.3 MB, free: 12.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.267/3.899, allocations: 14.54 MB / 436.8 MB, free: 5.711 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_R_res.mat does not exist to compare? outputFormat=mat