Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.576/1.576, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.494e-05/2.502e-05, allocations: 0 / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3299, allocations: 38.78 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.4582, allocations: 68.74 MB / 336.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.4586, allocations: 67.97 kB / 336.4 MB, free: 4.527 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03744/0.4961, allocations: 7.31 MB / 343.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.66e-06/0.4961, allocations: 0 / 343.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.4962, allocations: 8 kB / 343.7 MB, free: 13.2 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.001009/0.4972, allocations: 0.5684 MB / 344.3 MB, free: 12.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.4972, allocations: 8.031 kB / 344.3 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.486e-05/0.4973, allocations: 27.72 kB / 344.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.4979, allocations: 250.7 kB / 344.6 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.498, allocations: 53.48 kB / 344.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.875e-05/0.4981, allocations: 24 kB / 344.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.4986, allocations: 224.2 kB / 344.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4987, allocations: 4 kB / 344.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.74e-05/0.4987, allocations: 8 kB / 344.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.4987, allocations: 4 kB / 344.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.4992, allocations: 164.3 kB / 345 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.501, allocations: 0.7798 MB / 345.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005338/0.5016, allocations: 263.4 kB / 346.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.502, allocations: 209.3 kB / 346.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.5021, allocations: 0 / 346.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005292/0.5026, allocations: 302.1 kB / 346.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.696e-06/0.5026, allocations: 0 / 346.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.000897/0.5036, allocations: 392.9 kB / 347 MB, free: 9.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.5037, allocations: 237.5 kB / 347.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.504, allocations: 161.8 kB / 347.3 MB, free: 9.262 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.5041, allocations: 41.69 kB / 347.4 MB, free: 9.215 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.5042, allocations: 195 kB / 347.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.563e-05/0.5043, allocations: 75 kB / 347.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.5044, allocations: 11.94 kB / 347.7 MB, free: 8.938 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.5046, allocations: 330.9 kB / 348 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.5048, allocations: 88.72 kB / 348.1 MB, free: 8.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.5051, allocations: 181.7 kB / 348.3 MB, free: 8.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.5055, allocations: 167.3 kB / 348.4 MB, free: 8.121 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.5055, allocations: 0 / 348.4 MB, free: 8.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007637/0.5062, allocations: 368.5 kB / 348.8 MB, free: 7.742 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.5063, allocations: 63.52 kB / 348.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.5064, allocations: 8 kB / 348.8 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.5064, allocations: 7.953 kB / 348.9 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.5067, allocations: 47.86 kB / 348.9 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.5067, allocations: 7.984 kB / 348.9 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.507, allocations: 27.84 kB / 348.9 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.5071, allocations: 19.98 kB / 349 MB, free: 7.551 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.0002746/0.5074, allocations: 219.9 kB / 349.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.5075, allocations: 19.81 kB / 349.2 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.146e-05/0.5075, allocations: 30.7 kB / 349.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.5076, allocations: 8 kB / 349.2 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.295e-06/0.5076, allocations: 7.891 kB / 349.2 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-06/0.5076, allocations: 3.984 kB / 349.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.5092, allocations: 0.9585 MB / 350.2 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.5093, allocations: 0 / 350.2 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.5094, allocations: 23.92 kB / 350.2 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.118e-05/0.5095, allocations: 4 kB / 350.2 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.5095, allocations: 12.02 kB / 350.2 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.5095, allocations: 4 kB / 350.2 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.115e-06/0.5095, allocations: 0 / 350.2 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009831/0.5105, allocations: 0.5773 MB / 350.8 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/0.5107, allocations: 116.9 kB / 350.9 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.229e-05/0.5108, allocations: 19.98 kB / 350.9 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.5112, allocations: 27.98 kB / 351 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.5113, allocations: 19.97 kB / 351 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.5114, allocations: 11.98 kB / 351 MB, free: 5.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001542/0.5115, allocations: 131.2 kB / 351.1 MB, free: 5.223 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.5115, allocations: 0 / 351.1 MB, free: 5.223 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005286/0.5121, allocations: 75.84 kB / 351.2 MB, free: 5.148 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.0002297/0.5123, allocations: 144.7 kB / 351.4 MB, free: 5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007312/0.5131, allocations: 387.1 kB / 351.7 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.98e-06/0.5131, allocations: 0 / 351.7 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000544/0.5136, allocations: 378.7 kB / 352.1 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007179/0.5144, allocations: 124.4 kB / 352.2 MB, free: 4.086 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.5154, allocations: 412.9 kB / 352.6 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.5159, allocations: 0.7564 MB / 353.4 MB, free: 2.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.431e-05/0.516, allocations: 27.8 kB / 353.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of SimCode: time 1.467e-06/0.516, allocations: 0 / 353.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of Templates: time 0.1806/0.6967, allocations: 2.976 MB / 356.4 MB, free: 80.15 MB / 298.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