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.985/1.985, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.476e-05/2.493e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2503, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1145/0.3649, allocations: 73.16 MB / 367.3 MB, free: 8.824 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.3651, allocations: 71.91 kB / 367.3 MB, free: 8.754 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02738/0.3925, allocations: 7.175 MB / 374.5 MB, free: 1.574 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.257e-06/0.3926, allocations: 0 / 374.5 MB, free: 1.574 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.3926, allocations: 7.938 kB / 374.5 MB, free: 1.566 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.0009844/0.3936, allocations: 0.557 MB / 375.1 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.3937, allocations: 12.03 kB / 375.1 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.499e-05/0.3938, allocations: 27.67 kB / 375.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.3943, allocations: 255.3 kB / 375.4 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.232e-05/0.3944, allocations: 41.7 kB / 375.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.321e-05/0.3945, allocations: 16 kB / 375.4 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000411/0.3949, allocations: 156.4 kB / 375.6 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.3954, allocations: 204 kB / 375.8 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3954, allocations: 3.938 kB / 375.8 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.3955, allocations: 4 kB / 375.8 MB, free: 200 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.446e-06/0.3955, allocations: 4 kB / 375.8 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.3973, allocations: 0.7189 MB / 376.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.3979, allocations: 243.5 kB / 376.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.3983, allocations: 201.3 kB / 376.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.3983, allocations: 0 / 376.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000542/0.3989, allocations: 290 kB / 377.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 3.044e-06/0.3989, allocations: 0 / 377.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008009/0.3997, allocations: 313.4 kB / 377.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.3999, allocations: 225.6 kB / 377.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.4001, allocations: 157.5 kB / 377.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.4002, allocations: 29.7 kB / 377.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.4003, allocations: 198.9 kB / 378.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/0.4004, allocations: 75.08 kB / 378.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/0.4005, allocations: 4.031 kB / 378.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.4007, allocations: 322.8 kB / 378.5 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.4009, allocations: 80.73 kB / 378.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.4012, allocations: 188.1 kB / 378.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.4015, allocations: 103.8 kB / 378.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.745e-06/0.4015, allocations: 0 / 378.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006777/0.4022, allocations: 293.2 kB / 379.2 MB, free: 12.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.75e-05/0.4023, allocations: 63.36 kB / 379.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.4023, allocations: 8 kB / 379.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/0.4023, allocations: 4.328 kB / 379.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.4026, allocations: 47.91 kB / 379.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.4026, allocations: 4 kB / 379.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.403, allocations: 31.77 kB / 379.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.403, allocations: 12.03 kB / 379.3 MB, free: 12.4 MB / 330.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.0002832/0.4033, allocations: 207.4 kB / 379.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.4034, allocations: 27.72 kB / 379.6 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.091e-05/0.4035, allocations: 35.28 kB / 379.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.397e-06/0.4035, allocations: 0 / 379.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.748e-06/0.4035, allocations: 0 / 379.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.37e-06/0.4035, allocations: 4 kB / 379.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.405, allocations: 0.7946 MB / 380.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.465e-06/0.405, allocations: 0 / 380.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.4052, allocations: 23.92 kB / 380.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.4053, allocations: 4.031 kB / 380.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.4053, allocations: 11.98 kB / 380.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.4053, allocations: 0 / 380.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.4053, allocations: 0 / 380.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008558/0.4062, allocations: 474.7 kB / 380.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.752e-05/0.4063, allocations: 92.91 kB / 381 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.4064, allocations: 16 kB / 381 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00034/0.4068, allocations: 27.97 kB / 381 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.852e-05/0.4069, allocations: 23.91 kB / 381.1 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-05/0.4069, allocations: 19.97 kB / 381.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001362/0.4071, allocations: 120.5 kB / 381.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.85e-07/0.4071, allocations: 0 / 381.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005335/0.4077, allocations: 79.73 kB / 381.3 MB, free: 10.35 MB / 330.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.0002153/0.4079, allocations: 137.5 kB / 381.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006647/0.4086, allocations: 367.1 kB / 381.8 MB, free: 9.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.336e-06/0.4086, allocations: 4 kB / 381.8 MB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.4091, allocations: 366.7 kB / 382.1 MB, free: 9.441 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.4098, allocations: 124.3 kB / 382.2 MB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009762/0.4108, allocations: 384.9 kB / 382.6 MB, free: 8.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.4113, allocations: 0.7533 MB / 383.4 MB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.047e-05/0.4114, allocations: 19.44 kB / 383.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of SimCode: time 1.596e-06/0.4114, allocations: 0 / 383.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of Templates: time 0.006491/0.4179, allocations: 2.941 MB / 386.3 MB, free: 5.184 MB / 330.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! " 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,_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,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.sampling,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.useHeatPort,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