Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 2.191/2.191, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.45e-05, allocations: 8 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.118, allocations: 50.42 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003442/0.1215, allocations: 1.998 MB / 347 MB, free: 6.926 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.1231, allocations: 0.5652 MB / 347.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002049/0.1233, allocations: 8 kB / 347.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.631e-05/0.1234, allocations: 19.83 kB / 347.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.1237, allocations: 67.77 kB / 347.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.124, allocations: 55.88 kB / 347.7 MB, free: 6.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003348/0.1243, allocations: 143.7 kB / 347.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.1245, allocations: 56.12 kB / 347.9 MB, free: 6.012 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1248, allocations: 83.81 kB / 348 MB, free: 5.93 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.125, allocations: 87.67 kB / 348.1 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1251, allocations: 23.98 kB / 348.1 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.005e-05/0.1252, allocations: 8 kB / 348.1 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.211e-05/0.1252, allocations: 39.83 kB / 348.1 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.094e-05/0.1253, allocations: 24 kB / 348.1 MB, free: 5.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.1257, allocations: 195.7 kB / 348.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1257, allocations: 0 / 348.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1257, allocations: 4 kB / 348.3 MB, free: 5.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.1257, allocations: 3.938 kB / 348.3 MB, free: 5.551 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001034/0.1268, allocations: 487.2 kB / 348.8 MB, free: 5.027 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.1269, allocations: 8.031 kB / 348.8 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.974e-05/0.127, allocations: 35.67 kB / 348.9 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.1274, allocations: 230.6 kB / 349.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.1274, allocations: 16.44 kB / 349.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.1275, allocations: 16 kB / 349.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.1281, allocations: 195.2 kB / 349.3 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1281, allocations: 0 / 349.3 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.1282, allocations: 8 kB / 349.3 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1282, allocations: 7.953 kB / 349.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005361/0.1288, allocations: 157.7 kB / 349.5 MB, free: 4.324 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.1309, allocations: 0.9336 MB / 350.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004981/0.1315, allocations: 154.5 kB / 350.6 MB, free: 3.121 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.1315, allocations: 8.062 kB / 350.6 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.1316, allocations: 38.56 kB / 350.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.846e-06/0.1316, allocations: 0 / 350.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.002159/0.1338, allocations: 426.4 kB / 351 MB, free: 2.625 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.1339, allocations: 55.36 kB / 351.1 MB, free: 2.559 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.1341, allocations: 162.4 kB / 351.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.1342, allocations: 25.7 kB / 351.3 MB, free: 2.359 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.1343, allocations: 210.5 kB / 351.5 MB, free: 2.148 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.382e-05/0.1344, allocations: 63.09 kB / 351.5 MB, free: 2.086 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/0.1344, allocations: 0 / 351.5 MB, free: 2.086 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1346, allocations: 318.8 kB / 351.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.1348, allocations: 56.28 kB / 351.9 MB, free: 1.711 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.135, allocations: 78.44 kB / 352 MB, free: 1.629 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.1353, allocations: 54.58 kB / 352 MB, free: 1.578 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1353, allocations: 4 kB / 352 MB, free: 1.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0008305/0.1361, allocations: 226.3 kB / 352.3 MB, free: 1.344 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.1362, allocations: 7.953 kB / 352.3 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.1362, allocations: 0 / 352.3 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002303/0.1385, allocations: 220.6 kB / 352.5 MB, free: 1.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.1388, allocations: 39.91 kB / 352.5 MB, free: 1.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007203/0.1396, allocations: 0.607 MB / 353.1 MB, free: 456 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.1398, allocations: 15.94 kB / 353.1 MB, free: 440 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.1399, allocations: 12 kB / 353.1 MB, free: 428 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001924/0.1401, allocations: 133.8 kB / 353.3 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.1401, allocations: 19.8 kB / 353.3 MB, free: 264 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008473/0.141, allocations: 234.8 kB / 353.5 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.141, allocations: 7.938 kB / 353.5 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1411, allocations: 0 / 353.5 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.1411, allocations: 3.984 kB / 353.5 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005558/0.1416, allocations: 293.4 kB / 353.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1417, allocations: 0 / 353.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00031/0.142, allocations: 31.92 kB / 353.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001931/0.1439, allocations: 220.5 kB / 354.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.144, allocations: 4 kB / 354.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006776/0.1447, allocations: 0.6186 MB / 354.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1447, allocations: 0 / 354.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009798/0.1457, allocations: 400.5 kB / 355.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.674e-05/0.1458, allocations: 96.84 kB / 355.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.767e-05/0.1459, allocations: 4 kB / 355.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.1461, allocations: 8 kB / 355.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.194e-05/0.1462, allocations: 11.98 kB / 355.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.045e-05/0.1462, allocations: 7.953 kB / 355.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.1464, allocations: 135.3 kB / 355.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1464, allocations: 0 / 355.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004173/0.1469, allocations: 55.84 kB / 355.4 MB, free: 14.03 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002192/0.1471, allocations: 107.2 kB / 355.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006368/0.1477, allocations: 162 kB / 355.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1478, allocations: 0 / 355.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003131/0.1481, allocations: 83.91 kB / 355.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.1485, allocations: 28.2 kB / 355.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.15, allocations: 0.6996 MB / 356.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.1504, allocations: 0.7441 MB / 357.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.916e-05/0.1505, allocations: 15.44 kB / 357.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1505, allocations: 0 / 357.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of Templates: time 0.0077/0.1582, allocations: 3.029 MB / 360.3 MB, free: 9.098 MB / 298.7 MB