Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.11/2.11, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.422e-05, allocations: 4 kB / 292.2 MB, free: 8.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.41 MB / 342.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.5526, allocations: 86.95 MB / 429.6 MB, free: 6.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003445/0.5531, allocations: 90.88 kB / 429.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0634/0.6165, allocations: 15.33 MB / 445 MB, free: 9.879 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6165, allocations: 0 / 445 MB, free: 9.879 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001272/0.6167, allocations: 24 kB / 445 MB, free: 9.855 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.003716/0.6204, allocations: 1.061 MB / 446.1 MB, free: 8.797 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.6205, allocations: 8.031 kB / 446.1 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004471/0.6209, allocations: 132.5 kB / 446.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003805/0.6213, allocations: 110.7 kB / 446.3 MB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.623, allocations: 0.6381 MB / 447 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.311e-05/0.6231, allocations: 65.19 kB / 447 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002105/0.6233, allocations: 92.02 kB / 447.1 MB, free: 7.973 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.6257, allocations: 0.9021 MB / 448 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.84e-05/0.6258, allocations: 7.844 kB / 448 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.6259, allocations: 36.8 kB / 448.1 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.728e-05/0.6259, allocations: 24 kB / 448.1 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.6279, allocations: 0.6642 MB / 448.8 MB, free: 6.895 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007568/0.6354, allocations: 3.72 MB / 452.5 MB, free: 4.008 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/0.6374, allocations: 0.7523 MB / 453.2 MB, free: 3.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.6386, allocations: 442.1 kB / 453.7 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.649e-05/0.6387, allocations: 12.72 kB / 453.7 MB, free: 3.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.6398, allocations: 437.7 kB / 454.1 MB, free: 2.996 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 3.656e-06/0.6398, allocations: 4 kB / 454.1 MB, free: 2.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.002694/0.6425, allocations: 0.8503 MB / 455 MB, free: 2.199 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.557e-05/0.6426, allocations: 119.6 kB / 455.1 MB, free: 2.059 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.644, allocations: 0.5816 MB / 455.7 MB, free: 1.473 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001648/0.6442, allocations: 45.64 kB / 455.7 MB, free: 1.422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/0.6446, allocations: 383.1 kB / 456.1 MB, free: 1.043 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.6449, allocations: 240.6 kB / 456.3 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.925e-05/0.645, allocations: 16 kB / 456.3 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.6451, allocations: 334.8 kB / 456.7 MB, free: 464 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007424/0.6459, allocations: 245.6 kB / 456.9 MB, free: 220 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009085/0.6468, allocations: 381.8 kB / 457.3 MB, free: 15.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007827/0.6476, allocations: 283.8 kB / 457.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.6477, allocations: 4 kB / 457.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002384/0.6501, allocations: 0.8556 MB / 458.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006077/0.6507, allocations: 1.34 MB / 459.7 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.6507, allocations: 4 kB / 459.7 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/0.6523, allocations: 325.5 kB / 460.1 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007816/0.6531, allocations: 95.78 kB / 460.2 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008117/0.6612, allocations: 3.623 MB / 463.8 MB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.6624, allocations: 91.34 kB / 463.9 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.942e-05/0.6625, allocations: 28 kB / 463.9 MB, free: 8.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.6626, allocations: 8 kB / 463.9 MB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002294/0.6649, allocations: 0.8056 MB / 464.7 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.6649, allocations: 7.953 kB / 464.7 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.6663, allocations: 325.5 kB / 465 MB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006836/0.667, allocations: 83.84 kB / 465.1 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008403/0.6754, allocations: 3.583 MB / 468.7 MB, free: 3.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009922/0.6765, allocations: 75.5 kB / 468.8 MB, free: 3.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.6766, allocations: 35.95 kB / 468.8 MB, free: 3.824 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * 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 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0004197/0.677, allocations: 156.9 kB / 469 MB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003658/0.6774, allocations: 86.95 kB / 469.1 MB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004269/0.6779, allocations: 100.2 kB / 469.1 MB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/0.6779, allocations: 8 kB / 469.2 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.6779, allocations: 0 / 469.2 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.896e-05/0.678, allocations: 3.984 kB / 469.2 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006909/0.6849, allocations: 1.923 MB / 471.1 MB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.6849, allocations: 0 / 471.1 MB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/0.6858, allocations: 63.89 kB / 471.1 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/0.6879, allocations: 312.9 kB / 471.5 MB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.688, allocations: 12 kB / 471.5 MB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/0.6993, allocations: 3.639 MB / 475.1 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.6993, allocations: 0 / 475.1 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005096/0.7044, allocations: 1.303 MB / 476.4 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008777/0.7054, allocations: 251.8 kB / 476.7 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002533/0.7057, allocations: 16 kB / 476.7 MB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.7068, allocations: 40.03 kB / 476.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000429/0.7073, allocations: 92.53 kB / 476.8 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.7074, allocations: 16 kB / 476.8 MB, free: 11.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001336/0.7087, allocations: 463.2 kB / 477.3 MB, free: 11.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7088, allocations: 0 / 477.3 MB, free: 11.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003038/0.7118, allocations: 447.1 kB / 477.7 MB, free: 10.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$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,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.005629/0.7175, allocations: 1.879 MB / 479.6 MB, free: 8.777 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006525/0.7241, allocations: 1.694 MB / 481.3 MB, free: 7.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/0.7241, allocations: 0 / 481.3 MB, free: 7.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002429/0.7266, allocations: 0.6338 MB / 481.9 MB, free: 6.398 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.7284, allocations: 155.3 kB / 482.1 MB, free: 6.246 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007203/0.7356, allocations: 1.368 MB / 483.4 MB, free: 4.832 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.7369, allocations: 1.015 MB / 484.4 MB, free: 3.785 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009591/0.7378, allocations: 295.3 kB / 484.7 MB, free: 3.496 MB / 394.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7379, allocations: 0 / 484.7 MB, free: 3.496 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.951/3.689, allocations: 18.55 MB / 0.4915 GB, free: 1.008 MB / 410.7 MB