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_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.156e-05, allocations: 4 kB / 228.1 MB, free: 8 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/0.08876, allocations: 38.78 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00356/0.09239, allocations: 1.901 MB / 268.8 MB, free: 15.21 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.09407, allocations: 0.6199 MB / 269.4 MB, free: 14.59 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.09427, allocations: 8 kB / 269.4 MB, free: 14.58 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.09443, allocations: 19.78 kB / 269.4 MB, free: 14.56 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.09461, allocations: 55.86 kB / 269.5 MB, free: 14.51 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.09494, allocations: 63.78 kB / 269.6 MB, free: 14.45 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.09526, allocations: 139.7 kB / 269.7 MB, free: 14.31 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.0955, allocations: 68.91 kB / 269.8 MB, free: 14.24 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.09575, allocations: 79.81 kB / 269.8 MB, free: 14.16 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.09599, allocations: 83.73 kB / 269.9 MB, free: 14.08 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.582e-05/0.09606, allocations: 8 kB / 269.9 MB, free: 14.07 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.366e-05/0.09611, allocations: 12 kB / 269.9 MB, free: 14.06 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-05/0.0962, allocations: 43.83 kB / 270 MB, free: 14.02 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.183e-05/0.0963, allocations: 20 kB / 270 MB, free: 14 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.09666, allocations: 207.7 kB / 270.2 MB, free: 13.79 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.09668, allocations: 0 / 270.2 MB, free: 13.79 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.09669, allocations: 0 / 270.2 MB, free: 13.79 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.09671, allocations: 0 / 270.2 MB, free: 13.79 MB / 234.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.001327/0.09805, allocations: 0.5998 MB / 270.8 MB, free: 13.13 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.09811, allocations: 8.031 kB / 270.8 MB, free: 13.12 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.09823, allocations: 27.72 kB / 270.8 MB, free: 13.1 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.09868, allocations: 230.7 kB / 271.1 MB, free: 12.83 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.09881, allocations: 57.64 kB / 271.1 MB, free: 12.77 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.09889, allocations: 20 kB / 271.1 MB, free: 12.75 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009311/0.09984, allocations: 259.9 kB / 271.4 MB, free: 12.49 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.09987, allocations: 0 / 271.4 MB, free: 12.49 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.384e-05/0.09992, allocations: 11.98 kB / 271.4 MB, free: 12.48 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.09994, allocations: 4 kB / 271.4 MB, free: 12.47 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000862/0.1008, allocations: 224.2 kB / 271.6 MB, free: 12.25 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.103, allocations: 0.7797 MB / 272.4 MB, free: 11.41 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.1041, allocations: 307.4 kB / 272.7 MB, free: 11.1 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.1042, allocations: 0 / 272.7 MB, free: 11.1 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008399/0.105, allocations: 335 kB / 273 MB, free: 10.75 MB / 234.7 MB Notification: Performance of pre-optimization done (n=31): time 2.344e-06/0.105, allocations: 0 / 273 MB, free: 10.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.002151/0.1072, allocations: 0.7576 MB / 273.8 MB, free: 9.934 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.1074, allocations: 199.9 kB / 274 MB, free: 9.695 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.1077, allocations: 166.6 kB / 274.2 MB, free: 9.523 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.1077, allocations: 45.62 kB / 274.2 MB, free: 9.473 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.1079, allocations: 199.1 kB / 274.4 MB, free: 9.277 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.108, allocations: 75.03 kB / 274.5 MB, free: 9.203 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.1081, allocations: 12 kB / 274.5 MB, free: 9.191 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1082, allocations: 327 kB / 274.8 MB, free: 8.863 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/0.1087, allocations: 108.7 kB / 274.9 MB, free: 8.754 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/0.1092, allocations: 216.3 kB / 275.1 MB, free: 8.504 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.1098, allocations: 179.3 kB / 275.3 MB, free: 8.316 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.1098, allocations: 0 / 275.3 MB, free: 8.316 MB / 234.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001232/0.111, allocations: 424.5 kB / 275.7 MB, free: 7.883 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.1111, allocations: 59.48 kB / 275.8 MB, free: 7.812 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.1112, allocations: 12.03 kB / 275.8 MB, free: 7.801 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.161e-05/0.1112, allocations: 4 kB / 275.8 MB, free: 7.797 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.1116, allocations: 43.92 kB / 275.8 MB, free: 7.754 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/0.1116, allocations: 7.984 kB / 275.8 MB, free: 7.746 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.112, allocations: 35.73 kB / 275.9 MB, free: 7.711 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.112, allocations: 16 kB / 275.9 MB, free: 7.695 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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],dA_Converter.x[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],dA_Converter.x[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],dA_Converter.x[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],dA_Converter.x[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],dA_Converter.x[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],dA_Converter.x[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.000391/0.1124, allocations: 239.7 kB / 276.1 MB, free: 7.441 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.676e-05/0.1125, allocations: 31.72 kB / 276.1 MB, free: 7.41 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.005e-05/0.1126, allocations: 22.64 kB / 276.2 MB, free: 7.391 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1126, allocations: 0 / 276.2 MB, free: 7.391 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1126, allocations: 0 / 276.2 MB, free: 7.391 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1127, allocations: 0 / 276.2 MB, free: 7.391 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.1148, allocations: 0.9078 MB / 277.1 MB, free: 6.414 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.872e-06/0.1148, allocations: 0 / 277.1 MB, free: 6.414 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.115, allocations: 27.98 kB / 277.1 MB, free: 6.387 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-06/0.115, allocations: 3.938 kB / 277.1 MB, free: 6.383 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.1151, allocations: 7.984 kB / 277.1 MB, free: 6.375 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.1151, allocations: 0 / 277.1 MB, free: 6.375 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1151, allocations: 336 / 277.1 MB, free: 6.375 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1167, allocations: 0.6359 MB / 277.7 MB, free: 5.715 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002336/0.117, allocations: 132.7 kB / 277.9 MB, free: 5.566 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.1171, allocations: 19.98 kB / 277.9 MB, free: 5.547 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004313/0.1176, allocations: 27.97 kB / 277.9 MB, free: 5.52 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.1177, allocations: 19.97 kB / 277.9 MB, free: 5.5 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.804e-05/0.1178, allocations: 15.98 kB / 278 MB, free: 5.484 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001796/0.118, allocations: 135.2 kB / 278.1 MB, free: 5.352 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.118, allocations: 0 / 278.1 MB, free: 5.352 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005351/0.1185, allocations: 75.84 kB / 278.2 MB, free: 5.277 MB / 234.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.0002592/0.1188, allocations: 132.7 kB / 278.3 MB, free: 5.137 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.1202, allocations: 450.5 kB / 278.7 MB, free: 4.672 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.1202, allocations: 0 / 278.7 MB, free: 4.672 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009059/0.1211, allocations: 406.8 kB / 279.1 MB, free: 4.25 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.1222, allocations: 131.1 kB / 279.3 MB, free: 4.125 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.124, allocations: 0.6258 MB / 279.9 MB, free: 3.461 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.1245, allocations: 0.7488 MB / 280.6 MB, free: 2.688 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.1246, allocations: 19.44 kB / 280.7 MB, free: 2.668 MB / 234.7 MB Notification: Performance of SimCode: time 1.322e-06/0.1246, allocations: 0 / 280.7 MB, free: 2.668 MB / 234.7 MB Notification: Performance of Templates: time 0.00883/0.1335, allocations: 3.01 MB / 283.7 MB, free: 15.66 MB / 250.7 MB