Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") Notification: Performance of loadModel(Modelica): time 2.142/2.142, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.59e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R): time 0.005808/0.1169, allocations: 3.173 MB / 348.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.1196, allocations: 0.8847 MB / 349 MB, free: 4.863 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004072/0.12, allocations: 19.94 kB / 349.1 MB, free: 4.844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.1203, allocations: 59.48 kB / 349.1 MB, free: 4.785 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004691/0.1208, allocations: 143.5 kB / 349.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007488/0.1215, allocations: 155.7 kB / 349.4 MB, free: 4.492 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008666/0.1224, allocations: 351.7 kB / 349.8 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003776/0.1228, allocations: 137.5 kB / 349.9 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003422/0.1232, allocations: 175.5 kB / 350.1 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003835/0.1236, allocations: 207.1 kB / 350.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1237, allocations: 20 kB / 350.3 MB, free: 3.625 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.373e-05/0.1238, allocations: 23.94 kB / 350.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.1239, allocations: 83.67 kB / 350.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.1241, allocations: 44 kB / 350.4 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007581/0.1249, allocations: 0.4949 MB / 350.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1249, allocations: 0 / 350.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1249, allocations: 0 / 350.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1249, allocations: 0 / 350.9 MB, free: 2.98 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002239/0.1272, allocations: 0.7667 MB / 351.7 MB, free: 2.152 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.1272, allocations: 8.031 kB / 351.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/0.1275, allocations: 67.25 kB / 351.8 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009221/0.1284, allocations: 391.6 kB / 352.2 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.1285, allocations: 45 kB / 352.2 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.1287, allocations: 51.91 kB / 352.2 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.1303, allocations: 0.5045 MB / 352.8 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.395e-05/0.1303, allocations: 3.953 kB / 352.8 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.806e-05/0.1304, allocations: 27.98 kB / 352.8 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.1305, allocations: 12 kB / 352.8 MB, free: 1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.1319, allocations: 379.7 kB / 353.2 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004175/0.1361, allocations: 1.757 MB / 354.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001925/0.1381, allocations: 431.1 kB / 355.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.96e-05/0.1382, allocations: 4 kB / 355.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.1392, allocations: 288.7 kB / 355.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 4.207e-06/0.1393, allocations: 4 kB / 355.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.003112/0.1424, allocations: 0.7246 MB / 356.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.706e-05/0.1425, allocations: 114.8 kB / 356.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006088/0.1432, allocations: 332.7 kB / 356.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.119e-05/0.1433, allocations: 37.7 kB / 356.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.1435, allocations: 294.6 kB / 357.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.1437, allocations: 126.2 kB / 357.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.1438, allocations: 12 kB / 357.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1439, allocations: 330.8 kB / 357.6 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.1446, allocations: 153 kB / 357.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007662/0.1454, allocations: 277 kB / 358 MB, free: 11.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.1461, allocations: 193.6 kB / 358.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.1461, allocations: 0 / 358.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001794/0.1479, allocations: 0.5357 MB / 358.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007184/0.1487, allocations: 1.427 MB / 360.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.1487, allocations: 4 kB / 360.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004735/0.1492, allocations: 72.75 kB / 360.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007284/0.15, allocations: 95.81 kB / 360.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.1526, allocations: 1.706 MB / 362 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007438/0.1534, allocations: 67.5 kB / 362.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.024e-05/0.1535, allocations: 20.25 kB / 362.1 MB, free: 7.152 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1535, allocations: 7.953 kB / 362.1 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001525/0.155, allocations: 486.1 kB / 362.6 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.1551, allocations: 8 kB / 362.6 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003335/0.1554, allocations: 76.75 kB / 362.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006087/0.156, allocations: 87.83 kB / 362.8 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.1586, allocations: 1.694 MB / 364.5 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005388/0.1592, allocations: 63.72 kB / 364.5 MB, free: 4.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.1592, allocations: 16 kB / 364.5 MB, free: 4.578 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 21 ($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,chopperStepUp.andCondition_p.y,chopperStepUp.transistor.off,chopperStepUp.diode.off,signalPWM.notFire,$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 (51): * Single equations (assignments): 49 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004167/0.1597, allocations: 194.6 kB / 364.7 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.1598, allocations: 43.44 kB / 364.8 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.1616, allocations: 0.4909 MB / 365.3 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.1616, allocations: 4 kB / 365.3 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1617, allocations: 0 / 365.3 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.1617, allocations: 3.984 kB / 365.3 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.1644, allocations: 1.03 MB / 366.3 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.1644, allocations: 0 / 366.3 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.1651, allocations: 71.89 kB / 366.4 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003811/0.1655, allocations: 64.81 kB / 366.4 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-05/0.1655, allocations: 12 kB / 366.4 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.168, allocations: 1.707 MB / 368.1 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1681, allocations: 0 / 368.1 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.1705, allocations: 0.7364 MB / 368.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.1708, allocations: 156.5 kB / 369 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.171, allocations: 12 kB / 369 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005709/0.1715, allocations: 39.97 kB / 369.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.1717, allocations: 39.94 kB / 369.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-05/0.1718, allocations: 8 kB / 369.1 MB, free: 15.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004379/0.1722, allocations: 255.2 kB / 369.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1722, allocations: 4 kB / 369.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001238/0.1735, allocations: 243.2 kB / 369.6 MB, free: 15.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepUp.andCondition_p.y,chopperStepUp.transistor.off,chopperStepUp.diode.off,signalPWM.notFire,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 (36): * Single equations (assignments): 29 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002255/0.1737, allocations: 124.5 kB / 369.7 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002824/0.1766, allocations: 0.9926 MB / 370.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.1766, allocations: 320 / 370.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009425/0.1776, allocations: 338.4 kB / 371.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007098/0.1783, allocations: 77.45 kB / 371.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/0.1813, allocations: 1.225 MB / 372.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.1819, allocations: 0.8518 MB / 373.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.1821, allocations: 47.3 kB / 373.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1822, allocations: 4 kB / 373.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of Templates: time 0.01771/0.1999, allocations: 7.631 MB / 380.9 MB, free: 3.852 MB / 314.7 MB