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.608/1.608, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.077e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2062, allocations: 38.76 MB / 263.7 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.3094, allocations: 68.75 MB / 332.5 MB, free: 5.023 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.3097, allocations: 63.97 kB / 332.6 MB, free: 4.961 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02749/0.3372, allocations: 7.287 MB / 339.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3373, allocations: 0 / 339.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.3373, allocations: 4 kB / 339.8 MB, free: 13.66 MB / 298.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.001004/0.3383, allocations: 0.5685 MB / 340.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3384, allocations: 12.03 kB / 340.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.079e-05/0.3385, allocations: 23.72 kB / 340.5 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.339, allocations: 250.7 kB / 340.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.3391, allocations: 57.48 kB / 340.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.3392, allocations: 27.98 kB / 340.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.3397, allocations: 228.1 kB / 341 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3398, allocations: 0 / 341 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.3398, allocations: 12 kB / 341 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.46e-06/0.3398, allocations: 4 kB / 341 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/0.3403, allocations: 160.4 kB / 341.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.3421, allocations: 0.772 MB / 341.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.3426, allocations: 260.1 kB / 342.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.3431, allocations: 201.4 kB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.3431, allocations: 0 / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005348/0.3436, allocations: 305.1 kB / 342.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.012e-06/0.3437, allocations: 0 / 342.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008667/0.3445, allocations: 396.4 kB / 343.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.3447, allocations: 229.6 kB / 343.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.345, allocations: 169.7 kB / 343.5 MB, free: 9.734 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.345, allocations: 37.69 kB / 343.5 MB, free: 9.691 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.3452, allocations: 198.9 kB / 343.7 MB, free: 9.496 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.414e-05/0.3453, allocations: 75.09 kB / 343.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.3453, allocations: 12 kB / 343.8 MB, free: 9.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3455, allocations: 322.8 kB / 344.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.3458, allocations: 88.72 kB / 344.2 MB, free: 8.996 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003149/0.3461, allocations: 181.1 kB / 344.4 MB, free: 8.777 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.3464, allocations: 175.2 kB / 344.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.278e-06/0.3464, allocations: 0 / 344.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007571/0.3472, allocations: 368.8 kB / 344.9 MB, free: 8.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.195e-05/0.3473, allocations: 63.39 kB / 345 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.3473, allocations: 4 kB / 345 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3473, allocations: 4 kB / 345 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.3476, allocations: 51.81 kB / 345 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.3477, allocations: 7.984 kB / 345 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.3479, allocations: 35.95 kB / 345.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.348, allocations: 16 kB / 345.1 MB, free: 8.023 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$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.000258/0.3483, allocations: 211.4 kB / 345.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.445e-05/0.3484, allocations: 19.81 kB / 345.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.656e-05/0.3484, allocations: 22.78 kB / 345.3 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3484, allocations: 4 kB / 345.3 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.411e-06/0.3485, allocations: 7.953 kB / 345.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.511e-06/0.3485, allocations: 3.984 kB / 345.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.3502, allocations: 0.9545 MB / 346.3 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.389e-06/0.3502, allocations: 0 / 346.3 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.3504, allocations: 27.95 kB / 346.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.489e-06/0.3504, allocations: 0 / 346.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.3504, allocations: 15.98 kB / 346.3 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.874e-06/0.3504, allocations: 0 / 346.3 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.488e-06/0.3505, allocations: 0 / 346.3 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009956/0.3515, allocations: 0.5773 MB / 346.9 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.3517, allocations: 120.9 kB / 347 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.843e-05/0.3518, allocations: 23.98 kB / 347.1 MB, free: 5.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.3521, allocations: 19.98 kB / 347.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3522, allocations: 23.95 kB / 347.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.3523, allocations: 12 kB / 347.1 MB, free: 5.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.3525, allocations: 127.3 kB / 347.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.3525, allocations: 4 kB / 347.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005173/0.353, allocations: 75.84 kB / 347.3 MB, free: 5.641 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,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.0002279/0.3532, allocations: 137.1 kB / 347.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000758/0.354, allocations: 395.1 kB / 347.8 MB, free: 5.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.865e-06/0.354, allocations: 256 / 347.8 MB, free: 5.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005523/0.3546, allocations: 374.7 kB / 348.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007243/0.3553, allocations: 126.2 kB / 348.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.3564, allocations: 405.6 kB / 348.7 MB, free: 4.152 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.3569, allocations: 0.7526 MB / 349.5 MB, free: 3.375 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.357, allocations: 23.42 kB / 349.5 MB, free: 3.352 MB / 298.7 MB Notification: Performance of SimCode: time 1.669e-06/0.357, allocations: 3.938 kB / 349.5 MB, free: 3.348 MB / 298.7 MB Notification: Performance of Templates: time 0.006519/0.3635, allocations: 2.97 MB / 352.5 MB, free: 400 kB / 298.7 MB "Error: Could not read variable _derdummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable pulse.sampling in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable pulse.sampling from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! " 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.n.i,aD_Converter.n.v,aD_Converter.p.i,aD_Converter.p.v,aD_Converter.trig,aD_Converter.u,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.n.i,dA_Converter.n.v,dA_Converter.p.i,dA_Converter.p.v,dA_Converter.trig,dA_Converter.vout,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.y,ground.p.i,ground.p.v,pulse.T0,pulse.np,pulse.nperiod,pulse.period,pulse.pulse,pulse.quiet,pulse.startTime,pulse.width,pulse.y,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,time