Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.173e-05, allocations: 4 kB / 292.8 MB, free: 8.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 50.41 MB / 343.2 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4824/0.59, allocations: 105.4 MB / 448.5 MB, free: 4.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.5904, allocations: 85.33 kB / 448.6 MB, free: 4.777 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1846/0.7751, allocations: 42.28 MB / 490.9 MB, free: 14.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7751, allocations: 0 / 490.9 MB, free: 14.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001771/0.7753, allocations: 40 kB / 490.9 MB, free: 14.59 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.005803/0.7811, allocations: 1.826 MB / 492.8 MB, free: 12.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.7812, allocations: 8.031 kB / 492.8 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007308/0.7819, allocations: 236.2 kB / 493 MB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001191/0.7832, allocations: 257.3 kB / 493.2 MB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003972/0.7871, allocations: 1.202 MB / 494.4 MB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.7873, allocations: 127.2 kB / 494.6 MB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004569/0.7878, allocations: 160 kB / 494.7 MB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004878/0.7927, allocations: 1.651 MB / 496.4 MB, free: 8.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/0.7928, allocations: 8.25 kB / 496.4 MB, free: 8.902 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/0.7931, allocations: 71.95 kB / 496.5 MB, free: 8.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.906e-05/0.7932, allocations: 40 kB / 496.5 MB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004143/0.7973, allocations: 1.173 MB / 497.7 MB, free: 7.617 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/0.8153, allocations: 6.971 MB / 0.4928 GB, free: 392 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003005/0.8184, allocations: 1.009 MB / 0.4938 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/0.8203, allocations: 0.6619 MB / 0.4944 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.8205, allocations: 9 kB / 0.4944 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001917/0.8224, allocations: 0.7128 MB / 0.4951 GB, free: 13.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 4.158e-06/0.8225, allocations: 4 kB / 0.4951 GB, free: 13.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.009114/0.8316, allocations: 3.04 MB / 0.4981 GB, free: 10.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001847/0.8318, allocations: 216.8 kB / 0.4983 GB, free: 10.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/0.8349, allocations: 1.165 MB / 0.4995 GB, free: 9.375 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003058/0.8353, allocations: 49.7 kB / 0.4995 GB, free: 9.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/0.8364, allocations: 0.7934 MB / 0.5003 GB, free: 8.516 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006193/0.837, allocations: 386.6 kB / 0.5007 GB, free: 8.133 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.8372, allocations: 28 kB / 0.5007 GB, free: 8.105 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.8374, allocations: 361.9 kB / 0.501 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.8387, allocations: 435.9 kB / 0.5014 GB, free: 7.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.8405, allocations: 0.8329 MB / 0.5023 GB, free: 6.312 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.842, allocations: 0.5916 MB / 0.5028 GB, free: 5.707 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.8421, allocations: 4 kB / 0.5028 GB, free: 5.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005268/0.8474, allocations: 1.788 MB / 0.5046 GB, free: 3.875 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002431/0.8498, allocations: 4.964 MB / 0.5094 GB, free: 14.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-05/0.8499, allocations: 15.94 kB / 0.5094 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00178/0.8517, allocations: 338.4 kB / 0.5098 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.8534, allocations: 223.7 kB / 0.51 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009976/0.8633, allocations: 6.123 MB / 0.516 GB, free: 7.508 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.8654, allocations: 75.88 kB / 0.516 GB, free: 7.434 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002138/0.8656, allocations: 64 kB / 0.5161 GB, free: 7.371 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.8656, allocations: 4 kB / 0.5161 GB, free: 7.367 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004686/0.8703, allocations: 1.683 MB / 0.5177 GB, free: 5.652 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.522e-05/0.8704, allocations: 12 kB / 0.5178 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/0.8719, allocations: 343 kB / 0.5181 GB, free: 5.297 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.8735, allocations: 219.7 kB / 0.5183 GB, free: 5.082 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3292/1.203, allocations: 6.105 MB / 0.5243 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/1.205, allocations: 68.25 kB / 0.5243 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/1.205, allocations: 67.88 kB / 0.5244 GB, free: 117.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005422/1.205, allocations: 282.6 kB / 0.5247 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004315/1.206, allocations: 169.3 kB / 0.5248 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004748/1.211, allocations: 1.536 MB / 0.5263 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/1.211, allocations: 12.64 kB / 0.5263 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/1.211, allocations: 1.344 kB / 0.5263 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.258e-05/1.211, allocations: 5.672 kB / 0.5263 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008659/1.219, allocations: 3.236 MB / 0.5295 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/1.22, allocations: 5.094 kB / 0.5295 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/1.221, allocations: 122.2 kB / 0.5296 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001728/1.222, allocations: 326.3 kB / 0.5299 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003687/1.223, allocations: 33.33 kB / 0.53 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/1.237, allocations: 6.098 MB / 0.5359 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.237, allocations: 2.219 kB / 0.5359 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006335/1.243, allocations: 2.386 MB / 0.5382 GB, free: 112.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/1.245, allocations: 377.3 kB / 0.5386 GB, free: 112.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005276/1.245, allocations: 37.3 kB / 0.5386 GB, free: 112.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/1.247, allocations: 53.55 kB / 0.5387 GB, free: 112.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004982/1.247, allocations: 116.8 kB / 0.5388 GB, free: 112.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/1.247, allocations: 47.19 kB / 0.5388 GB, free: 112.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002438/1.25, allocations: 0.8765 MB / 0.5397 GB, free: 112.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.25, allocations: 3.609 kB / 0.5397 GB, free: 112.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004618/1.255, allocations: 0.7722 MB / 0.5405 GB, free: 112.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,inductor.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.007196/1.262, allocations: 3.577 MB / 0.544 GB, free: 110.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00769/1.27, allocations: 3.234 MB / 0.5471 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/1.27, allocations: 4.188 kB / 0.5471 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002885/1.273, allocations: 1.239 MB / 0.5483 GB, free: 109.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/1.275, allocations: 314.2 kB / 0.5486 GB, free: 109.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009307/1.285, allocations: 2.687 MB / 0.5512 GB, free: 108.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/1.286, allocations: 1.358 MB / 0.5526 GB, free: 107.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002252/1.289, allocations: 272.2 kB / 0.5528 GB, free: 107.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/1.29, allocations: 0.6292 MB / 0.5534 GB, free: 107.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/1.29, allocations: 0 / 0.5534 GB, free: 107.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1206/1.41, allocations: 43.71 MB / 0.5961 GB, free: 90.26 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002154/1.411, allocations: 204.3 kB / 0.5963 GB, free: 90.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.018/6.428, allocations: 0 / 0.5963 GB, free: 90.04 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat