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.863/1.863, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.69e-05/2.699e-05, allocations: 4 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2076, allocations: 38.77 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.311, allocations: 68.74 MB / 332.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.3112, allocations: 67.97 kB / 332.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02681/0.338, allocations: 7.276 MB / 339.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.012e-06/0.3381, allocations: 4 kB / 339.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.3381, allocations: 7.984 kB / 339.9 MB, free: 13.63 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.0009726/0.3391, allocations: 0.5608 MB / 340.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3392, allocations: 11.97 kB / 340.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.511e-05/0.3393, allocations: 27.72 kB / 340.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.3398, allocations: 250.7 kB / 340.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.3399, allocations: 53.48 kB / 340.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.817e-05/0.34, allocations: 27.98 kB / 340.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005462/0.3406, allocations: 224.2 kB / 341 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3406, allocations: 0 / 341 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.3406, allocations: 8 kB / 341 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.3407, allocations: 4 kB / 341 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004092/0.3411, allocations: 168.3 kB / 341.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.3429, allocations: 0.7759 MB / 342 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005503/0.3435, allocations: 255.5 kB / 342.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.344, allocations: 205.2 kB / 342.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.344, allocations: 4 kB / 342.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005355/0.3445, allocations: 305.9 kB / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.646e-06/0.3446, allocations: 0 / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008428/0.3454, allocations: 389.6 kB / 343.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.3456, allocations: 225.6 kB / 343.3 MB, free: 9.887 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.3458, allocations: 169.8 kB / 343.5 MB, free: 9.711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.3459, allocations: 45.62 kB / 343.5 MB, free: 9.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.346, allocations: 128.5 kB / 343.7 MB, free: 9.531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.3462, allocations: 83.05 kB / 343.7 MB, free: 9.449 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.3462, allocations: 4 kB / 343.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3464, allocations: 330.8 kB / 344.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.3466, allocations: 84.73 kB / 344.1 MB, free: 9.027 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.3469, allocations: 193 kB / 344.3 MB, free: 8.797 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.3473, allocations: 167.3 kB / 344.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.427e-06/0.3473, allocations: 4 kB / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007677/0.3481, allocations: 372.4 kB / 344.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.141e-05/0.3481, allocations: 59.41 kB / 344.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3482, allocations: 4 kB / 344.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.3482, allocations: 4 kB / 344.9 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.3485, allocations: 59.8 kB / 345 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.3485, allocations: 8.125 kB / 345 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.3488, allocations: 31.83 kB / 345 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.3489, allocations: 16 kB / 345 MB, free: 8.043 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.0002565/0.3491, allocations: 211.8 kB / 345.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.005e-05/0.3492, allocations: 35.7 kB / 345.3 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.889e-05/0.3493, allocations: 22.77 kB / 345.3 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.125e-06/0.3493, allocations: 4 kB / 345.3 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.554e-06/0.3493, allocations: 3.953 kB / 345.3 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.331e-06/0.3493, allocations: 4 kB / 345.3 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.351, allocations: 0.9546 MB / 346.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-06/0.351, allocations: 0 / 346.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.3512, allocations: 19.98 kB / 346.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.97e-06/0.3512, allocations: 7.938 kB / 346.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.3513, allocations: 8 kB / 346.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.065e-06/0.3513, allocations: 0 / 346.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.208e-06/0.3513, allocations: 0 / 346.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3523, allocations: 0.5884 MB / 346.9 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.3525, allocations: 120.9 kB / 347 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.562e-05/0.3526, allocations: 19.98 kB / 347 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.353, allocations: 23.89 kB / 347.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3531, allocations: 27.95 kB / 347.1 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.3531, allocations: 12 kB / 347.1 MB, free: 5.848 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001572/0.3533, allocations: 131.2 kB / 347.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.8e-07/0.3533, allocations: 0 / 347.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005414/0.3539, allocations: 71.94 kB / 347.3 MB, free: 5.648 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.0002209/0.3541, allocations: 132.9 kB / 347.4 MB, free: 5.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007229/0.3548, allocations: 391.5 kB / 347.8 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.029e-06/0.3549, allocations: 0 / 347.8 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.3554, allocations: 371.9 kB / 348.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007102/0.3561, allocations: 124.4 kB / 348.3 MB, free: 4.602 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009758/0.3571, allocations: 380.2 kB / 348.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.3576, allocations: 0.7486 MB / 349.4 MB, free: 3.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002244/0.3579, allocations: 61.98 kB / 349.5 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.993e-05/0.3579, allocations: 23.44 kB / 349.5 MB, free: 3.344 MB / 298.7 MB Notification: Performance of SimCode: time 1.402e-06/0.358, allocations: 3.938 kB / 349.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of Templates: time 0.01648/0.3745, allocations: 3.752 MB / 353.3 MB, free: 15.62 MB / 314.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