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_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.734/1.734, allocations: 194.9 MB / 208.4 MB, free: 3.234 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.357e-05/4.377e-05, allocations: 7.938 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3235/0.43, allocations: 73.82 MB / 373.7 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.4302, allocations: 70.56 kB / 373.8 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02462/0.4549, allocations: 7.223 MB / 381 MB, free: 21.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.96e-06/0.4549, allocations: 0 / 381 MB, free: 21.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.87e-05/0.4549, allocations: 12.81 kB / 381 MB, free: 21.78 MB / 314.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.0008037/0.4558, allocations: 0.5542 MB / 381.5 MB, free: 21.31 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.4558, allocations: 8.812 kB / 381.6 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.991e-05/0.4559, allocations: 30.58 kB / 381.6 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.4563, allocations: 257.7 kB / 381.8 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.778e-05/0.4564, allocations: 53.69 kB / 381.9 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.4565, allocations: 23.59 kB / 381.9 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.457, allocations: 221.6 kB / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.4571, allocations: 0 / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.4571, allocations: 10.38 kB / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4571, allocations: 5.062 kB / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003767/0.4575, allocations: 167.1 kB / 382.3 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.459, allocations: 0.769 MB / 383.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/0.4596, allocations: 259.6 kB / 383.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003958/0.46, allocations: 198 kB / 383.5 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.46, allocations: 6.062 kB / 383.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.4605, allocations: 302.8 kB / 383.8 MB, free: 20.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.122e-06/0.4605, allocations: 0 / 383.8 MB, free: 20.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007541/0.4612, allocations: 390.8 kB / 384.2 MB, free: 20.31 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.4613, allocations: 230.4 kB / 384.4 MB, free: 20.06 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.4615, allocations: 164.7 kB / 384.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.4616, allocations: 37.09 kB / 384.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.035e-05/0.4617, allocations: 202.3 kB / 384.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.323e-05/0.4617, allocations: 73.27 kB / 384.9 MB, free: 19.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.085e-05/0.4618, allocations: 8.688 kB / 384.9 MB, free: 19.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.4618, allocations: 327.4 kB / 385.2 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.4621, allocations: 83.3 kB / 385.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.4623, allocations: 194.1 kB / 385.5 MB, free: 19.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.4626, allocations: 159.8 kB / 385.6 MB, free: 19.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.84e-06/0.4626, allocations: 9.344 kB / 385.7 MB, free: 19.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000686/0.4633, allocations: 374.6 kB / 386 MB, free: 19.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.4634, allocations: 58.78 kB / 386.1 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.717e-06/0.4634, allocations: 3.688 kB / 386.1 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.4634, allocations: 4.562 kB / 386.1 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.4637, allocations: 45.33 kB / 386.1 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.4637, allocations: 9.125 kB / 386.1 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.464, allocations: 38.28 kB / 386.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-05/0.464, allocations: 14.56 kB / 386.2 MB, free: 18.99 MB / 314.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.0001842/0.4642, allocations: 212 kB / 386.4 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.918e-05/0.4643, allocations: 30.48 kB / 386.4 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.4644, allocations: 26.22 kB / 386.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.045e-06/0.4644, allocations: 3.422 kB / 386.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.535e-06/0.4644, allocations: 0 / 386.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.386e-06/0.4644, allocations: 3.016 kB / 386.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.4658, allocations: 0.9632 MB / 387.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4658, allocations: 1.406 kB / 387.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.466, allocations: 27.98 kB / 387.5 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.564e-06/0.466, allocations: 2.766 kB / 387.5 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.466, allocations: 11.19 kB / 387.5 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.237e-06/0.4661, allocations: 1.344 kB / 387.5 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.968e-06/0.4661, allocations: 0 / 387.5 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008234/0.4669, allocations: 0.5803 MB / 388 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.049e-05/0.467, allocations: 94.14 kB / 388.1 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.803e-05/0.4671, allocations: 17.56 kB / 388.2 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.4674, allocations: 29.39 kB / 388.2 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/0.4675, allocations: 28 kB / 388.2 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.4675, allocations: 13.19 kB / 388.2 MB, free: 17.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001072/0.4677, allocations: 137.5 kB / 388.4 MB, free: 17.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.33e-07/0.4677, allocations: 0 / 388.4 MB, free: 17.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004754/0.4682, allocations: 73.03 kB / 388.4 MB, free: 17.87 MB / 314.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.0001726/0.4684, allocations: 135.1 kB / 388.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005862/0.469, allocations: 389.3 kB / 388.9 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.929e-06/0.469, allocations: 0 / 388.9 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.4694, allocations: 371.2 kB / 389.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006725/0.4701, allocations: 132.1 kB / 389.4 MB, free: 17.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000845/0.471, allocations: 399.4 kB / 389.8 MB, free: 17.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.4712, allocations: 0.7523 MB / 390.6 MB, free: 16.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.161e-05/0.4713, allocations: 22.09 kB / 390.6 MB, free: 16.62 MB / 314.7 MB Notification: Performance of SimCode: time 1.489e-06/0.4713, allocations: 0 / 390.6 MB, free: 16.62 MB / 314.7 MB Notification: Performance of Templates: time 0.005355/0.4767, allocations: 2.971 MB / 393.6 MB, free: 16.4 MB / 314.7 MB "Error: Could not read variable _derdummy in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable pulse.sampling in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable pulse.sampling from file Modelica_3.2.2_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