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.903/1.903, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.555e-05/3.583e-05, allocations: 4 kB / 255.4 MB, free: 2.703 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07811/0.07818, allocations: 44.5 MB / 299.9 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3222/0.4004, allocations: 73.82 MB / 373.7 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.4007, allocations: 71.23 kB / 373.8 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02519/0.4259, allocations: 7.227 MB / 381 MB, free: 21.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.387e-06/0.426, allocations: 3.938 kB / 381 MB, free: 21.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.426, allocations: 5.375 kB / 381 MB, free: 21.74 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.0007946/0.4268, allocations: 0.5556 MB / 381.6 MB, free: 21.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.4269, allocations: 9.906 kB / 381.6 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.243e-05/0.427, allocations: 30.64 kB / 381.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.4274, allocations: 261.8 kB / 381.9 MB, free: 21.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.33e-05/0.4275, allocations: 53.12 kB / 381.9 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.4276, allocations: 18.41 kB / 381.9 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004914/0.4281, allocations: 227 kB / 382.1 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4281, allocations: 0 / 382.1 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.4281, allocations: 6.844 kB / 382.2 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4281, allocations: 3.75 kB / 382.2 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003806/0.4285, allocations: 167 kB / 382.3 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.4301, allocations: 0.7643 MB / 383.1 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/0.4306, allocations: 259.8 kB / 383.3 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003798/0.431, allocations: 200.2 kB / 383.5 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.431, allocations: 6.25 kB / 383.5 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.4315, allocations: 303.9 kB / 383.8 MB, free: 20.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.316e-06/0.4315, allocations: 1.125 kB / 383.8 MB, free: 20.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008113/0.4323, allocations: 393.4 kB / 384.2 MB, free: 20.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.262e-05/0.4324, allocations: 227.1 kB / 384.4 MB, free: 20.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.4327, allocations: 163.1 kB / 384.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.533e-05/0.4327, allocations: 38.45 kB / 384.6 MB, free: 19.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.966e-05/0.4328, allocations: 143.9 kB / 384.8 MB, free: 19.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.877e-05/0.4329, allocations: 71.16 kB / 384.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/0.433, allocations: 8.594 kB / 384.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.433, allocations: 332.1 kB / 385.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.4333, allocations: 87.45 kB / 385.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.4335, allocations: 195.5 kB / 385.5 MB, free: 19.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.4338, allocations: 164.3 kB / 385.6 MB, free: 19.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.664e-06/0.4338, allocations: 5.406 kB / 385.6 MB, free: 19.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006773/0.4345, allocations: 382.3 kB / 386 MB, free: 19.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.4346, allocations: 58.38 kB / 386.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.4346, allocations: 6.688 kB / 386.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.4346, allocations: 5.5 kB / 386.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.4349, allocations: 48.47 kB / 386.1 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.4349, allocations: 7.188 kB / 386.1 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.4352, allocations: 36.64 kB / 386.2 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.4353, allocations: 20.05 kB / 386.2 MB, free: 19.01 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.0001921/0.4355, allocations: 210.6 kB / 386.4 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.206e-05/0.4355, allocations: 29.64 kB / 386.4 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.4356, allocations: 23.72 kB / 386.4 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.237e-06/0.4356, allocations: 7.125 kB / 386.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.428e-06/0.4356, allocations: 1.562 kB / 386.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.746e-06/0.4357, allocations: 3.469 kB / 386.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.437, allocations: 0.9598 MB / 387.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.109e-06/0.4371, allocations: 4.031 kB / 387.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.4372, allocations: 21.23 kB / 387.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.4373, allocations: 1.891 kB / 387.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/0.4373, allocations: 13.59 kB / 387.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.801e-06/0.4373, allocations: 3.453 kB / 387.5 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.144e-06/0.4373, allocations: 4 kB / 387.5 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000815/0.4382, allocations: 0.575 MB / 388 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.732e-05/0.4382, allocations: 104.5 kB / 388.1 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.666e-05/0.4383, allocations: 14.14 kB / 388.1 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.4386, allocations: 26.56 kB / 388.2 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.567e-05/0.4388, allocations: 28.44 kB / 388.2 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.052e-05/0.4388, allocations: 17.83 kB / 388.2 MB, free: 17.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.4389, allocations: 132.2 kB / 388.3 MB, free: 17.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.78e-07/0.439, allocations: 0 / 388.3 MB, free: 17.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005071/0.4395, allocations: 71.94 kB / 388.4 MB, free: 17.89 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.0001792/0.4397, allocations: 141.9 kB / 388.6 MB, free: 17.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006133/0.4403, allocations: 378.4 kB / 388.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.815e-06/0.4403, allocations: 6.125 kB / 388.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004454/0.4408, allocations: 374.2 kB / 389.3 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.4414, allocations: 123.5 kB / 389.4 MB, free: 17.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008434/0.4423, allocations: 375.8 kB / 389.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.4425, allocations: 0.7496 MB / 390.5 MB, free: 16.69 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002213/0.4427, allocations: 62.88 kB / 390.6 MB, free: 16.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.822e-05/0.4428, allocations: 19.06 kB / 390.6 MB, free: 16.67 MB / 314.7 MB Notification: Performance of SimCode: time 1.556e-06/0.4428, allocations: 0 / 390.6 MB, free: 16.67 MB / 314.7 MB Notification: Performance of Templates: time 0.009186/0.452, allocations: 3.749 MB / 394.4 MB, free: 16.36 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