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_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.739/1.739, allocations: 171.2 MB / 185.7 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.171e-05/3.163e-05, allocations: 4 kB / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.0847, allocations: 38.78 MB / 266.9 MB, free: 488 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003308/0.08807, allocations: 1.898 MB / 268.8 MB, free: 14.55 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.08973, allocations: 0.6277 MB / 269.4 MB, free: 13.93 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.08992, allocations: 8 kB / 269.4 MB, free: 13.92 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.09006, allocations: 19.78 kB / 269.5 MB, free: 13.9 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.09025, allocations: 59.8 kB / 269.5 MB, free: 13.84 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002941/0.09055, allocations: 59.84 kB / 269.6 MB, free: 13.78 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.09087, allocations: 135.7 kB / 269.7 MB, free: 13.65 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.09111, allocations: 68.89 kB / 269.8 MB, free: 13.58 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.09136, allocations: 87.8 kB / 269.9 MB, free: 13.49 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.09159, allocations: 83.73 kB / 270 MB, free: 13.41 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.361e-05/0.09166, allocations: 11.94 kB / 270 MB, free: 13.4 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.09171, allocations: 12 kB / 270 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.453e-05/0.0918, allocations: 35.91 kB / 270 MB, free: 13.35 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.42e-05/0.0919, allocations: 20 kB / 270 MB, free: 13.33 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.09224, allocations: 211.7 kB / 270.2 MB, free: 13.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.09226, allocations: 0 / 270.2 MB, free: 13.12 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.09227, allocations: 0 / 270.2 MB, free: 13.12 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.09229, allocations: 0 / 270.2 MB, free: 13.12 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.00128/0.09358, allocations: 0.592 MB / 270.8 MB, free: 12.47 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.09364, allocations: 12.02 kB / 270.8 MB, free: 12.46 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.09375, allocations: 27.72 kB / 270.9 MB, free: 12.43 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.09415, allocations: 230.7 kB / 271.1 MB, free: 12.17 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.09427, allocations: 53.66 kB / 271.1 MB, free: 12.11 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.815e-05/0.09435, allocations: 16 kB / 271.2 MB, free: 12.09 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.09524, allocations: 267.9 kB / 271.4 MB, free: 11.83 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.09527, allocations: 3.938 kB / 271.4 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.937e-05/0.09532, allocations: 8 kB / 271.4 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.09534, allocations: 4 kB / 271.4 MB, free: 11.81 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008621/0.09621, allocations: 216.3 kB / 271.7 MB, free: 11.6 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.09836, allocations: 0.7836 MB / 272.4 MB, free: 10.75 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009853/0.09938, allocations: 311.4 kB / 272.7 MB, free: 10.44 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.09943, allocations: 0 / 272.7 MB, free: 10.44 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008157/0.1003, allocations: 334.8 kB / 273.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of pre-optimization done (n=31): time 2.394e-06/0.1003, allocations: 0 / 273.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.002078/0.1024, allocations: 0.7538 MB / 273.8 MB, free: 9.277 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.1025, allocations: 199.9 kB / 274 MB, free: 9.039 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.1028, allocations: 166.6 kB / 274.2 MB, free: 8.867 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.187e-05/0.1028, allocations: 41.7 kB / 274.2 MB, free: 8.82 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.103, allocations: 140.6 kB / 274.4 MB, free: 8.68 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1031, allocations: 79.08 kB / 274.4 MB, free: 8.602 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/0.1031, allocations: 8 kB / 274.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1033, allocations: 338.9 kB / 274.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.1037, allocations: 104.7 kB / 274.9 MB, free: 8.148 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.1042, allocations: 212.3 kB / 275.1 MB, free: 7.902 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005021/0.1047, allocations: 187.3 kB / 275.3 MB, free: 7.707 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1048, allocations: 0 / 275.3 MB, free: 7.707 MB / 234.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001267/0.106, allocations: 428.5 kB / 275.7 MB, free: 7.27 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.216e-05/0.1061, allocations: 63.48 kB / 275.7 MB, free: 7.195 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1062, allocations: 8.031 kB / 275.8 MB, free: 7.188 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/0.1062, allocations: 8 kB / 275.8 MB, free: 7.18 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.1065, allocations: 35.92 kB / 275.8 MB, free: 7.145 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.1066, allocations: 7.984 kB / 275.8 MB, free: 7.137 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.1069, allocations: 43.73 kB / 275.8 MB, free: 7.094 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.107, allocations: 16 kB / 275.9 MB, free: 7.078 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.0003662/0.1074, allocations: 247.9 kB / 276.1 MB, free: 6.816 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.506e-05/0.1075, allocations: 27.7 kB / 276.1 MB, free: 6.789 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.499e-05/0.1075, allocations: 22.66 kB / 276.2 MB, free: 6.77 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.1075, allocations: 4 kB / 276.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1076, allocations: 0 / 276.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1076, allocations: 0 / 276.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.1097, allocations: 0.904 MB / 277.1 MB, free: 5.793 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.1097, allocations: 0 / 277.1 MB, free: 5.793 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.1099, allocations: 27.91 kB / 277.1 MB, free: 5.766 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.11, allocations: 0 / 277.1 MB, free: 5.766 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.11, allocations: 8 kB / 277.1 MB, free: 5.758 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/0.11, allocations: 7.938 kB / 277.1 MB, free: 5.75 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.11, allocations: 0 / 277.1 MB, free: 5.75 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.1117, allocations: 0.6281 MB / 277.7 MB, free: 5.098 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.1119, allocations: 132.8 kB / 277.9 MB, free: 4.949 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.112, allocations: 12 kB / 277.9 MB, free: 4.938 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.1124, allocations: 27.97 kB / 277.9 MB, free: 4.91 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.1125, allocations: 23.97 kB / 277.9 MB, free: 4.887 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.371e-05/0.1126, allocations: 15.97 kB / 277.9 MB, free: 4.871 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001643/0.1128, allocations: 135.2 kB / 278.1 MB, free: 4.738 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1128, allocations: 0 / 278.1 MB, free: 4.738 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005169/0.1133, allocations: 79.84 kB / 278.1 MB, free: 4.66 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.0002408/0.1136, allocations: 132.7 kB / 278.3 MB, free: 4.52 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.1149, allocations: 451 kB / 278.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1149, allocations: 0 / 278.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008471/0.1158, allocations: 414.8 kB / 279.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009982/0.1168, allocations: 131.2 kB / 279.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.1184, allocations: 0.5813 MB / 279.8 MB, free: 2.887 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.1189, allocations: 0.7643 MB / 280.6 MB, free: 2.098 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0003011/0.1192, allocations: 49.91 kB / 280.6 MB, free: 2.047 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.096e-05/0.1193, allocations: 19.44 kB / 280.7 MB, free: 2.027 MB / 234.7 MB Notification: Performance of SimCode: time 3.276e-06/0.1193, allocations: 0 / 280.7 MB, free: 2.027 MB / 234.7 MB Notification: Performance of Templates: time 0.0122/0.1315, allocations: 3.784 MB / 284.4 MB, free: 14.28 MB / 250.7 MB "" Variables in the reference: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 Variables in the result:N,aD_Converter.N,aD_Converter.Rin,aD_Converter.VRefHigh,aD_Converter.VRefLow,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.N,dA_Converter.Vref,dA_Converter.vout,dA_Converter.y,pulse.T0,pulse.np,pulse.nperiod,pulse.period,pulse.pulse,pulse.quiet,pulse.startTime,pulse.width,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,sineVoltage.V,sineVoltage.freqHz,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time