Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.y.1.|aD_Converter.y.2.|aD_Converter.y.3.|aD_Converter.y.4.|aD_Converter.y.5.|aD_Converter.y.6.|aD_Converter.y.7.|aD_Converter.z|dA_Converter.vout|dA_Converter.y|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 224.7 MB / 241.1 MB, free: 1.645 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.289e-05, allocations: 7.984 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003497/0.1144, allocations: 1.924 MB / 346.9 MB, free: 7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.116, allocations: 0.6042 MB / 347.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.1162, allocations: 4 kB / 347.5 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.1163, allocations: 23.84 kB / 347.5 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1165, allocations: 51.8 kB / 347.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1169, allocations: 75.78 kB / 347.6 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.1171, allocations: 115.8 kB / 347.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.1174, allocations: 60.95 kB / 347.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000267/0.1176, allocations: 91.75 kB / 347.9 MB, free: 5.977 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1179, allocations: 79.72 kB / 348 MB, free: 5.898 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.289e-05/0.1179, allocations: 12 kB / 348 MB, free: 5.887 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.291e-05/0.118, allocations: 8 kB / 348 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.1181, allocations: 39.83 kB / 348 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.814e-05/0.1182, allocations: 20 kB / 348.1 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.1185, allocations: 191.8 kB / 348.3 MB, free: 5.633 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1185, allocations: 0 / 348.3 MB, free: 5.633 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1185, allocations: 0 / 348.3 MB, free: 5.633 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1185, allocations: 4 kB / 348.3 MB, free: 5.629 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001272/0.1198, allocations: 0.6133 MB / 348.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.1199, allocations: 8.031 kB / 348.9 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.12, allocations: 31.67 kB / 348.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003971/0.1204, allocations: 235.3 kB / 349.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.1205, allocations: 57.62 kB / 349.2 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.1206, allocations: 20 kB / 349.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009023/0.1215, allocations: 248.2 kB / 349.5 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1216, allocations: 0 / 349.5 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.216e-05/0.1216, allocations: 19.98 kB / 349.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.1217, allocations: 15.94 kB / 349.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009678/0.1226, allocations: 220.1 kB / 349.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.1248, allocations: 0.7565 MB / 350.5 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.1259, allocations: 307.4 kB / 350.8 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.126, allocations: 7.938 kB / 350.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008397/0.1268, allocations: 333.4 kB / 351.1 MB, free: 2.566 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 2.886e-06/0.1268, allocations: 0 / 351.1 MB, free: 2.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.002084/0.1289, allocations: 0.7466 MB / 351.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.1291, allocations: 207.9 kB / 352 MB, free: 1.52 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.1294, allocations: 166.2 kB / 352.2 MB, free: 1.348 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.1294, allocations: 37.69 kB / 352.2 MB, free: 1.305 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1296, allocations: 195.2 kB / 352.4 MB, free: 1.113 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1297, allocations: 78.94 kB / 352.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.1298, allocations: 15.94 kB / 352.5 MB, free: 1.02 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.13, allocations: 326.8 kB / 352.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/0.1304, allocations: 116.6 kB / 353 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000472/0.1309, allocations: 179.3 kB / 353.1 MB, free: 384 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005135/0.1314, allocations: 216.6 kB / 353.4 MB, free: 152 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.1315, allocations: 0 / 353.4 MB, free: 152 kB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001213/0.1327, allocations: 450.6 kB / 353.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.938e-05/0.1328, allocations: 93.09 kB / 353.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1328, allocations: 3.953 kB / 353.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.1329, allocations: 8.094 kB / 353.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.1332, allocations: 43.91 kB / 353.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1332, allocations: 4 kB / 353.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003334/0.1336, allocations: 35.73 kB / 354 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.1336, allocations: 12 kB / 354 MB, free: 15.47 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003568/0.134, allocations: 243.8 kB / 354.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.763e-05/0.1341, allocations: 19.81 kB / 354.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.065e-05/0.1342, allocations: 22.66 kB / 354.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.1342, allocations: 11.94 kB / 354.3 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.1342, allocations: 192 / 354.3 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1342, allocations: 3.938 kB / 354.3 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.1363, allocations: 0.9085 MB / 355.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.1363, allocations: 0 / 355.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.1366, allocations: 23.92 kB / 355.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.1366, allocations: 3.953 kB / 355.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.1366, allocations: 8 kB / 355.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.1367, allocations: 4 kB / 355.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1367, allocations: 3.984 kB / 355.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.1383, allocations: 0.6234 MB / 355.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.1384, allocations: 96.86 kB / 356 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.1386, allocations: 19.94 kB / 356 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.139, allocations: 23.98 kB / 356 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.1391, allocations: 23.97 kB / 356 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.1391, allocations: 11.98 kB / 356 MB, free: 13.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001689/0.1393, allocations: 127.2 kB / 356.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1393, allocations: 4 kB / 356.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004987/0.1398, allocations: 79.84 kB / 356.2 MB, free: 13.08 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002544/0.1401, allocations: 136.4 kB / 356.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.1415, allocations: 0.5565 MB / 356.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1416, allocations: 0 / 356.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009151/0.1425, allocations: 412.9 kB / 357.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009978/0.1435, allocations: 118.3 kB / 357.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.1452, allocations: 0.6218 MB / 358.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.1457, allocations: 0.7488 MB / 358.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1459, allocations: 27.42 kB / 358.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1459, allocations: 0 / 358.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of Templates: time 0.008635/0.1545, allocations: 3.031 MB / 361.9 MB, free: 7.34 MB / 298.7 MB