Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 171.2 MB / 187.3 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003648, allocations: 12 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08242/0.0828, allocations: 38.76 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4254, allocations: 68.82 MB / 341.4 MB, free: 5.145 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4257, allocations: 72.84 kB / 341.4 MB, free: 5.109 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02966/0.4554, allocations: 7.315 MB / 348.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4554, allocations: 0 / 348.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.4555, allocations: 4 kB / 348.7 MB, free: 15.03 MB / 282.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.001175/0.4567, allocations: 0.5867 MB / 349.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4567, allocations: 8.031 kB / 349.3 MB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.4568, allocations: 27.72 kB / 349.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005303/0.4574, allocations: 260.6 kB / 349.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.782e-05/0.4575, allocations: 53.06 kB / 349.7 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.4576, allocations: 22.94 kB / 349.7 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008467/0.4584, allocations: 260.8 kB / 350 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.4584, allocations: 0 / 350 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.4585, allocations: 11.38 kB / 350 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.4585, allocations: 4 kB / 350 MB, free: 13.81 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008563/0.4594, allocations: 215.4 kB / 350.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.4613, allocations: 0.7744 MB / 351 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.4623, allocations: 316.7 kB / 351.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4624, allocations: 0 / 351.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008291/0.4632, allocations: 328.9 kB / 351.6 MB, free: 12.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 2.395e-06/0.4632, allocations: 0 / 351.6 MB, free: 12.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.002042/0.4653, allocations: 0.758 MB / 352.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.4654, allocations: 203.6 kB / 352.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.4657, allocations: 188 kB / 352.7 MB, free: 11.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.714e-05/0.4658, allocations: 40.25 kB / 352.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.4659, allocations: 196.6 kB / 353 MB, free: 11.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.466, allocations: 74.31 kB / 353 MB, free: 11.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.4661, allocations: 10.88 kB / 353 MB, free: 11.02 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.4662, allocations: 329.2 kB / 353.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004037/0.4666, allocations: 107.6 kB / 353.5 MB, free: 10.62 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.4671, allocations: 209.8 kB / 353.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.4677, allocations: 194.8 kB / 353.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.4677, allocations: 4 kB / 353.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001123/0.4688, allocations: 409.9 kB / 354.3 MB, free: 9.902 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.059e-05/0.4689, allocations: 67.08 kB / 354.3 MB, free: 9.828 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.4689, allocations: 4 kB / 354.3 MB, free: 9.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.4689, allocations: 4 kB / 354.3 MB, free: 9.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.4693, allocations: 39.91 kB / 354.4 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.4693, allocations: 11.94 kB / 354.4 MB, free: 9.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.4697, allocations: 42.69 kB / 354.4 MB, free: 9.734 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.4697, allocations: 15.75 kB / 354.4 MB, free: 9.723 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 () * Number of clocked 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.0003429/0.4701, allocations: 228.5 kB / 354.7 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.197e-05/0.4702, allocations: 27.7 kB / 354.7 MB, free: 9.473 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.436e-05/0.4702, allocations: 27.16 kB / 354.7 MB, free: 9.457 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.4703, allocations: 4 kB / 354.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4703, allocations: 8.328 kB / 354.7 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4703, allocations: 0 / 354.7 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.4723, allocations: 0.9055 MB / 355.6 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4723, allocations: 0 / 355.6 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.4725, allocations: 26.98 kB / 355.7 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.4725, allocations: 3.984 kB / 355.7 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.4726, allocations: 15.88 kB / 355.7 MB, free: 8.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.4726, allocations: 0 / 355.7 MB, free: 8.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.4726, allocations: 3.984 kB / 355.7 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.4741, allocations: 0.6298 MB / 356.3 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.4743, allocations: 120 kB / 356.4 MB, free: 7.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.65e-05/0.4744, allocations: 18.23 kB / 356.5 MB, free: 7.898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/0.4748, allocations: 23.98 kB / 356.5 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.4749, allocations: 31.33 kB / 356.5 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.475, allocations: 7.938 kB / 356.5 MB, free: 7.844 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001577/0.4751, allocations: 136.9 kB / 356.7 MB, free: 7.727 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4751, allocations: 192 / 356.7 MB, free: 7.727 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005111/0.4757, allocations: 78.86 kB / 356.7 MB, free: 7.656 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.0002257/0.4759, allocations: 139.3 kB / 356.9 MB, free: 7.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.4772, allocations: 447.8 kB / 357.3 MB, free: 7.129 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4772, allocations: 0.625 kB / 357.3 MB, free: 7.129 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007906/0.478, allocations: 406.2 kB / 357.7 MB, free: 6.812 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00095/0.479, allocations: 117.1 kB / 357.8 MB, free: 6.715 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.4805, allocations: 0.6312 MB / 358.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.4809, allocations: 0.7565 MB / 359.2 MB, free: 5.332 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.481, allocations: 24.69 kB / 359.2 MB, free: 5.309 MB / 282.7 MB Notification: Performance of SimCode: time 8.41e-07/0.481, allocations: 0 / 359.2 MB, free: 5.309 MB / 282.7 MB Notification: Performance of Templates: time 0.007847/0.4889, allocations: 3.013 MB / 362.2 MB, free: 2.34 MB / 282.7 MB "Error: Could not read variable _derdummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable pulse.sampling in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable pulse.sampling from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat failed! Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_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