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.763/1.763, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.789e-05, allocations: 7.469 kB / 255.3 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07481/0.07486, allocations: 44.5 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3242/0.3991, allocations: 73.81 MB / 373.6 MB, free: 22.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.3994, allocations: 70.5 kB / 373.7 MB, free: 22.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02543/0.4248, allocations: 7.225 MB / 380.9 MB, free: 21.35 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.878e-06/0.4249, allocations: 0 / 380.9 MB, free: 21.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.843e-05/0.4249, allocations: 9.031 kB / 381 MB, free: 21.35 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.0008161/0.4257, allocations: 0.5571 MB / 381.5 MB, free: 20.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4258, allocations: 8.906 kB / 381.5 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.334e-05/0.4259, allocations: 31.42 kB / 381.5 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.4263, allocations: 258.7 kB / 381.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.658e-05/0.4264, allocations: 58.95 kB / 381.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.4265, allocations: 17.78 kB / 381.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.427, allocations: 224.7 kB / 382.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.4271, allocations: 1.219 kB / 382.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.4271, allocations: 13.86 kB / 382.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.364e-06/0.4271, allocations: 4.281 kB / 382.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003802/0.4275, allocations: 170.5 kB / 382.3 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.4291, allocations: 0.7606 MB / 383 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.4296, allocations: 260.3 kB / 383.3 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.43, allocations: 200.6 kB / 383.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.43, allocations: 1.344 kB / 383.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004465/0.4305, allocations: 305.8 kB / 383.8 MB, free: 20 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 4.034e-06/0.4305, allocations: 0 / 383.8 MB, free: 20 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007956/0.4313, allocations: 396.2 kB / 384.2 MB, free: 19.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.4314, allocations: 230 kB / 384.4 MB, free: 19.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.4316, allocations: 167.9 kB / 384.6 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.4317, allocations: 36.41 kB / 384.6 MB, free: 19.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.4318, allocations: 203.1 kB / 384.8 MB, free: 19.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.524e-05/0.4319, allocations: 70.47 kB / 384.9 MB, free: 19.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.4319, allocations: 8.438 kB / 384.9 MB, free: 19.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.432, allocations: 326.8 kB / 385.2 MB, free: 18.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.4322, allocations: 83.92 kB / 385.3 MB, free: 18.97 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.4325, allocations: 196.2 kB / 385.5 MB, free: 18.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.4327, allocations: 166.4 kB / 385.6 MB, free: 18.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.158e-06/0.4327, allocations: 5.469 kB / 385.6 MB, free: 18.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006957/0.4335, allocations: 379.7 kB / 386 MB, free: 18.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.4335, allocations: 59.88 kB / 386.1 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4335, allocations: 2.938 kB / 386.1 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.4336, allocations: 5.5 kB / 386.1 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.4338, allocations: 52.08 kB / 386.1 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.4339, allocations: 7.422 kB / 386.1 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.4342, allocations: 37.91 kB / 386.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.4342, allocations: 11 kB / 386.2 MB, free: 18.55 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.0002007/0.4344, allocations: 220.8 kB / 386.4 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.06e-05/0.4345, allocations: 29.42 kB / 386.4 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.553e-05/0.4346, allocations: 29.31 kB / 386.5 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.157e-06/0.4346, allocations: 2.75 kB / 386.5 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.72e-06/0.4346, allocations: 1.375 kB / 386.5 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.056e-06/0.4347, allocations: 0 / 386.5 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.436, allocations: 0.9603 MB / 387.4 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.143e-06/0.4361, allocations: 1.438 kB / 387.4 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.4362, allocations: 28.31 kB / 387.4 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.488e-06/0.4363, allocations: 1.656 kB / 387.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/0.4363, allocations: 11.44 kB / 387.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4363, allocations: 0 / 387.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4363, allocations: 1.562 kB / 387.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008695/0.4372, allocations: 0.5732 MB / 388 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.617e-05/0.4373, allocations: 90.64 kB / 388.1 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.39e-05/0.4374, allocations: 17.61 kB / 388.1 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/0.4377, allocations: 28.77 kB / 388.2 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.4379, allocations: 34.31 kB / 388.2 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.896e-05/0.4379, allocations: 18.7 kB / 388.2 MB, free: 17.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001207/0.4381, allocations: 134.8 kB / 388.4 MB, free: 17.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.94e-07/0.4381, allocations: 1.344 kB / 388.4 MB, free: 17.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005371/0.4386, allocations: 71.72 kB / 388.4 MB, free: 17.43 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.0002015/0.4388, allocations: 141.2 kB / 388.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006405/0.4395, allocations: 390.3 kB / 388.9 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.665e-06/0.4395, allocations: 0 / 388.9 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004212/0.44, allocations: 378.9 kB / 389.3 MB, free: 17.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007112/0.4407, allocations: 124.9 kB / 389.4 MB, free: 17.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009616/0.4417, allocations: 416.1 kB / 389.8 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.4419, allocations: 0.7474 MB / 390.6 MB, free: 16.19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.826e-05/0.442, allocations: 19.06 kB / 390.6 MB, free: 16.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.778e-06/0.442, allocations: 0 / 390.6 MB, free: 16.18 MB / 314.7 MB Notification: Performance of Templates: time 0.005545/0.4476, allocations: 2.989 MB / 393.6 MB, free: 15.96 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