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.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.555e-05/2.554e-05, allocations: 4 kB / 258.8 MB, free: 8.055 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3005, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003183/0.3037, allocations: 1.902 MB / 305.2 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3053, allocations: 0.6361 MB / 305.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.3055, allocations: 8.969 kB / 305.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.3056, allocations: 26.11 kB / 305.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.3058, allocations: 59.02 kB / 305.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.3061, allocations: 48.59 kB / 306 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.3064, allocations: 141.3 kB / 306.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.3066, allocations: 67.28 kB / 306.2 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002345/0.3069, allocations: 80.92 kB / 306.3 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.3071, allocations: 87.58 kB / 306.4 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.529e-05/0.3072, allocations: 16 kB / 306.4 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.3072, allocations: 8 kB / 306.4 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.019e-05/0.3073, allocations: 39.84 kB / 306.4 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.268e-05/0.3074, allocations: 20 kB / 306.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.3078, allocations: 205.9 kB / 306.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.3078, allocations: 0 / 306.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3078, allocations: 0 / 306.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3078, allocations: 0 / 306.6 MB, free: 10.25 MB / 250.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.001217/0.309, allocations: 0.5843 MB / 307.2 MB, free: 9.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.3091, allocations: 8.031 kB / 307.2 MB, free: 9.598 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.3092, allocations: 31.72 kB / 307.3 MB, free: 9.566 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.3096, allocations: 235.3 kB / 307.5 MB, free: 9.297 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.3097, allocations: 53.69 kB / 307.5 MB, free: 9.238 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.208e-05/0.3098, allocations: 28 kB / 307.6 MB, free: 9.211 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008654/0.3106, allocations: 260.1 kB / 307.8 MB, free: 8.953 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3107, allocations: 0 / 307.8 MB, free: 8.953 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.3107, allocations: 7.938 kB / 307.8 MB, free: 8.945 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.3107, allocations: 7.984 kB / 307.8 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008266/0.3116, allocations: 228 kB / 308.1 MB, free: 8.715 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.3136, allocations: 0.7719 MB / 308.8 MB, free: 7.879 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009605/0.3146, allocations: 311.4 kB / 309.1 MB, free: 7.566 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.3146, allocations: 7.984 kB / 309.2 MB, free: 7.559 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007768/0.3154, allocations: 326.5 kB / 309.5 MB, free: 7.211 MB / 250.7 MB Notification: Performance of pre-optimization done (n=31): time 2.975e-06/0.3155, allocations: 0 / 309.5 MB, free: 7.211 MB / 250.7 MB Notification: Performance of matching and sorting (n=31): time 0.002027/0.3175, allocations: 0.7586 MB / 310.2 MB, free: 6.398 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.3177, allocations: 203.9 kB / 310.4 MB, free: 6.156 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.3179, allocations: 169.4 kB / 310.6 MB, free: 5.984 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/0.318, allocations: 37.69 kB / 310.6 MB, free: 5.941 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.3181, allocations: 128.8 kB / 310.8 MB, free: 5.812 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.3182, allocations: 82.98 kB / 310.8 MB, free: 5.73 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.3182, allocations: 11.94 kB / 310.8 MB, free: 5.719 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3184, allocations: 334.8 kB / 311.2 MB, free: 5.383 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003999/0.3188, allocations: 108.7 kB / 311.3 MB, free: 5.273 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.3193, allocations: 208.3 kB / 311.5 MB, free: 5.031 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000484/0.3198, allocations: 187.3 kB / 311.7 MB, free: 4.836 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3198, allocations: 4.031 kB / 311.7 MB, free: 4.832 MB / 250.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001186/0.321, allocations: 432.4 kB / 312.1 MB, free: 4.391 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.003e-05/0.3211, allocations: 63.5 kB / 312.2 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.607e-06/0.3211, allocations: 0 / 312.2 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.3211, allocations: 8 kB / 312.2 MB, free: 4.309 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.3215, allocations: 39.91 kB / 312.2 MB, free: 4.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.3215, allocations: 7.984 kB / 312.2 MB, free: 4.262 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.3219, allocations: 47.72 kB / 312.3 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.3219, allocations: 16 kB / 312.3 MB, free: 4.199 MB / 250.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.0003338/0.3223, allocations: 239.7 kB / 312.5 MB, free: 3.941 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.525e-05/0.3223, allocations: 23.72 kB / 312.5 MB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.54e-05/0.3224, allocations: 22.98 kB / 312.6 MB, free: 3.891 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.3224, allocations: 4 kB / 312.6 MB, free: 3.887 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3225, allocations: 0 / 312.6 MB, free: 3.887 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.3225, allocations: 7.969 kB / 312.6 MB, free: 3.879 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.3244, allocations: 0.9094 MB / 313.5 MB, free: 2.902 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3245, allocations: 0 / 313.5 MB, free: 2.902 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001976/0.3247, allocations: 19.98 kB / 313.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3247, allocations: 0 / 313.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.3248, allocations: 8 kB / 313.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.705e-06/0.3248, allocations: 4 kB / 313.5 MB, free: 2.871 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3248, allocations: 3.953 kB / 313.5 MB, free: 2.867 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.3263, allocations: 0.6273 MB / 314.1 MB, free: 2.211 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-05/0.3264, allocations: 104.8 kB / 314.2 MB, free: 2.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.58e-05/0.3265, allocations: 12 kB / 314.2 MB, free: 2.078 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.3269, allocations: 27.97 kB / 314.3 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.327, allocations: 23.97 kB / 314.3 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.411e-05/0.3271, allocations: 23.94 kB / 314.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001437/0.3273, allocations: 119.2 kB / 314.4 MB, free: 1.887 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3273, allocations: 0 / 314.4 MB, free: 1.887 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004884/0.3278, allocations: 79.84 kB / 314.5 MB, free: 1.809 MB / 250.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.0002199/0.328, allocations: 136.9 kB / 314.7 MB, free: 1.668 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.3293, allocations: 445.1 kB / 315.1 MB, free: 1.211 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3293, allocations: 0 / 315.1 MB, free: 1.211 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008024/0.3301, allocations: 414.8 kB / 315.5 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009417/0.3311, allocations: 119.4 kB / 315.6 MB, free: 0.668 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.3325, allocations: 0.5851 MB / 316.2 MB, free: 60 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.3329, allocations: 0.7611 MB / 317 MB, free: 15.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.3332, allocations: 53.88 kB / 317 MB, free: 15.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.531e-05/0.3333, allocations: 23.44 kB / 317 MB, free: 15.2 MB / 266.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3333, allocations: 0 / 317 MB, free: 15.2 MB / 266.7 MB Notification: Performance of Templates: time 0.01144/0.3448, allocations: 3.771 MB / 320.8 MB, free: 11.45 MB / 266.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