Running command: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.03/1.03, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.753e-05, allocations: 4 kB / 154.5 MB, free: 2.828 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0565/0.05656, allocations: 25.19 MB / 179.7 MB, free: 9.605 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005487/0.0621, allocations: 3.267 MB / 183 MB, free: 6.328 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.06424, allocations: 0.7445 MB / 183.7 MB, free: 5.582 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003594/0.06464, allocations: 16 kB / 183.7 MB, free: 5.566 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.06488, allocations: 75.42 kB / 183.8 MB, free: 5.492 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006581/0.06555, allocations: 215.3 kB / 184 MB, free: 5.281 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.06592, allocations: 103.9 kB / 184.1 MB, free: 5.18 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006764/0.06661, allocations: 384.1 kB / 184.5 MB, free: 4.805 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.06693, allocations: 121.1 kB / 184.6 MB, free: 4.688 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003803/0.06732, allocations: 219.4 kB / 184.8 MB, free: 4.473 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.06781, allocations: 251.1 kB / 185.1 MB, free: 4.227 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.06796, allocations: 28 kB / 185.1 MB, free: 4.199 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 9.296e-05/0.06807, allocations: 32 kB / 185.1 MB, free: 4.168 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.06825, allocations: 103.6 kB / 185.2 MB, free: 4.066 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.06843, allocations: 60 kB / 185.3 MB, free: 4.008 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007515/0.0692, allocations: 0.4988 MB / 185.8 MB, free: 3.508 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.06921, allocations: 0 / 185.8 MB, free: 3.508 MB / 154.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.06923, allocations: 0 / 185.8 MB, free: 3.508 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.06925, allocations: 0 / 185.8 MB, free: 3.508 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00199/0.07125, allocations: 0.7879 MB / 186.6 MB, free: 2.672 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.07131, allocations: 8.031 kB / 186.6 MB, free: 2.664 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.07151, allocations: 71.16 kB / 186.6 MB, free: 2.594 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007023/0.07222, allocations: 368.9 kB / 187 MB, free: 2.191 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/0.07229, allocations: 37.31 kB / 187 MB, free: 2.152 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.07243, allocations: 55.94 kB / 187.1 MB, free: 2.098 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.07392, allocations: 0.5336 MB / 187.6 MB, free: 1.539 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.07396, allocations: 3.938 kB / 187.6 MB, free: 1.535 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-05/0.07405, allocations: 28 kB / 187.7 MB, free: 1.508 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.07408, allocations: 15.95 kB / 187.7 MB, free: 1.492 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.07595, allocations: 455.7 kB / 188.1 MB, free: 1.043 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007478/0.08347, allocations: 2.061 MB / 190.2 MB, free: 14.89 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/0.08572, allocations: 0.6454 MB / 190.8 MB, free: 14.22 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.402e-05/0.08587, allocations: 12.55 kB / 190.8 MB, free: 14.21 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.584e-05/0.08594, allocations: 47.06 kB / 190.9 MB, free: 14.15 MB / 170.7 MB Notification: Performance of pre-optimization done (n=60): time 5.16e-06/0.08597, allocations: 0 / 190.9 MB, free: 14.15 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.008317/0.0943, allocations: 2.053 MB / 192.9 MB, free: 11.98 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.09441, allocations: 59.97 kB / 193 MB, free: 11.91 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005817/0.095, allocations: 316.9 kB / 193.3 MB, free: 11.59 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 7.004e-05/0.09509, allocations: 37.7 kB / 193.3 MB, free: 11.55 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.09532, allocations: 275.6 kB / 193.6 MB, free: 11.28 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/0.09558, allocations: 209 kB / 193.8 MB, free: 11.07 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.09563, allocations: 8 kB / 193.8 MB, free: 11.06 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.0958, allocations: 326.8 kB / 194.1 MB, free: 10.73 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006097/0.09642, allocations: 169 kB / 194.3 MB, free: 10.57 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006769/0.09711, allocations: 219.8 kB / 194.5 MB, free: 10.35 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006454/0.09777, allocations: 171.3 kB / 194.7 MB, free: 10.18 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.09779, allocations: 0 / 194.7 MB, free: 10.18 MB / 170.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002066/0.09987, allocations: 0.6543 MB / 195.3 MB, free: 9.512 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.09992, allocations: 7.984 kB / 195.4 MB, free: 9.504 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.09994, allocations: 0 / 195.4 MB, free: 9.504 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.1012, allocations: 251.2 kB / 195.6 MB, free: 9.246 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.1018, allocations: 63.98 kB / 195.7 MB, free: 9.184 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009956/0.1117, allocations: 6.828 MB / 202.5 MB, free: 1.816 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.1123, allocations: 28.08 kB / 202.5 MB, free: 1.789 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.1124, allocations: 16 kB / 202.5 MB, free: 1.773 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: Inductor3.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real Inductor2.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004369/0.1128, allocations: 174.2 kB / 202.7 MB, free: 1.594 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.113, allocations: 51.34 kB / 202.8 MB, free: 1.543 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.1132, allocations: 73.02 kB / 202.8 MB, free: 1.469 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.1132, allocations: 11.94 kB / 202.8 MB, free: 1.457 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.1132, allocations: 4 kB / 202.8 MB, free: 1.453 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.1132, allocations: 7.984 kB / 202.8 MB, free: 1.445 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003527/0.1168, allocations: 1.353 MB / 204.2 MB, free: 28 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.1168, allocations: 0 / 204.2 MB, free: 28 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1424/0.2592, allocations: 55.88 kB / 204.3 MB, free: 23.27 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.2605, allocations: 254.4 kB / 204.5 MB, free: 23.24 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.911e-05/0.2606, allocations: 12.2 kB / 204.5 MB, free: 23.24 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008553/0.2692, allocations: 6.831 MB / 211.3 MB, free: 17.8 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2692, allocations: 1.469 kB / 211.3 MB, free: 17.8 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/0.2721, allocations: 1.047 MB / 212.4 MB, free: 17.32 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.2724, allocations: 163.6 kB / 212.6 MB, free: 17.21 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.2726, allocations: 11.53 kB / 212.6 MB, free: 17.2 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004644/0.273, allocations: 25.41 kB / 212.6 MB, free: 17.19 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.2733, allocations: 54.41 kB / 212.6 MB, free: 17.18 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-05/0.2733, allocations: 15.86 kB / 212.7 MB, free: 17.18 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003922/0.2737, allocations: 259.9 kB / 212.9 MB, free: 17.04 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2737, allocations: 0 / 212.9 MB, free: 17.04 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001175/0.2749, allocations: 174.8 kB / 213.1 MB, free: 17.02 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001779/0.2751, allocations: 115.3 kB / 213.2 MB, free: 16.91 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002337/0.2775, allocations: 1.039 MB / 214.2 MB, free: 16.27 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.2775, allocations: 1.906 kB / 214.2 MB, free: 16.27 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001678/0.2792, allocations: 0.8452 MB / 215.1 MB, free: 15.66 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009528/0.2802, allocations: 101.5 kB / 215.2 MB, free: 15.63 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.2833, allocations: 1.479 MB / 216.7 MB, free: 14.72 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.2838, allocations: 0.8912 MB / 217.5 MB, free: 14.02 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.284, allocations: 30.91 kB / 217.6 MB, free: 14.01 MB / 170.7 MB Notification: Performance of SimCode: time 1.001e-06/0.284, allocations: 1.094 kB / 217.6 MB, free: 14.01 MB / 170.7 MB Notification: Performance of Templates: time 0.02028/0.3043, allocations: 13.28 MB / 230.9 MB, free: 4.301 MB / 170.7 MB