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.627/1.627, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003531, allocations: 8 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07094/0.07131, allocations: 38.78 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2885/0.3599, allocations: 68.82 MB / 340.8 MB, free: 5.109 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.3601, allocations: 76.31 kB / 340.9 MB, free: 5.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02697/0.3871, allocations: 7.307 MB / 348.2 MB, free: 15.01 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.008e-06/0.3872, allocations: 0 / 348.2 MB, free: 15.01 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.3872, allocations: 4 kB / 348.2 MB, free: 15 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.001055/0.3883, allocations: 0.5943 MB / 348.8 MB, free: 14.37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3883, allocations: 8.031 kB / 348.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.729e-05/0.3884, allocations: 27.72 kB / 348.8 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.3889, allocations: 258.2 kB / 349.1 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.3891, allocations: 57.38 kB / 349.2 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.195e-05/0.3891, allocations: 18.88 kB / 349.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007534/0.3899, allocations: 265 kB / 349.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.3899, allocations: 4 kB / 349.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.39, allocations: 10.56 kB / 349.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.232e-06/0.39, allocations: 4 kB / 349.4 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007014/0.3907, allocations: 217.3 kB / 349.7 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.3925, allocations: 0.7699 MB / 350.4 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008413/0.3934, allocations: 311 kB / 350.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.3934, allocations: 0 / 350.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007187/0.3942, allocations: 334.3 kB / 351.1 MB, free: 12.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 3.038e-06/0.3942, allocations: 0 / 351.1 MB, free: 12.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.001811/0.396, allocations: 0.7574 MB / 351.8 MB, free: 11.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.3962, allocations: 198.9 kB / 352 MB, free: 11.44 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.3964, allocations: 174.6 kB / 352.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.3965, allocations: 40.94 kB / 352.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.3967, allocations: 197.8 kB / 352.4 MB, free: 11.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.261e-05/0.3968, allocations: 70.06 kB / 352.5 MB, free: 11.01 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.09e-05/0.3968, allocations: 11.12 kB / 352.5 MB, free: 11 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.397, allocations: 329.9 kB / 352.8 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.3974, allocations: 112.3 kB / 352.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.3978, allocations: 209.3 kB / 353.1 MB, free: 10.39 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004165/0.3982, allocations: 191.9 kB / 353.3 MB, free: 10.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.878e-06/0.3982, allocations: 0 / 353.3 MB, free: 10.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001005/0.3993, allocations: 417.9 kB / 353.7 MB, free: 9.879 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.562e-05/0.3993, allocations: 59.39 kB / 353.8 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3994, allocations: 4 kB / 353.8 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3994, allocations: 4 kB / 353.8 MB, free: 9.801 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.3997, allocations: 42.86 kB / 353.8 MB, free: 9.762 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.3997, allocations: 7.984 kB / 353.8 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.4, allocations: 38.23 kB / 353.9 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.4, allocations: 19.33 kB / 353.9 MB, free: 9.707 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.0003495/0.4004, allocations: 231.3 kB / 354.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-05/0.4005, allocations: 31.7 kB / 354.2 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.83e-05/0.4006, allocations: 22.47 kB / 354.2 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.881e-06/0.4006, allocations: 4 kB / 354.2 MB, free: 9.434 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.948e-06/0.4006, allocations: 4.125 kB / 354.2 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.837e-06/0.4006, allocations: 0 / 354.2 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.4025, allocations: 0.9053 MB / 355.1 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4025, allocations: 0 / 355.1 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.4027, allocations: 22.61 kB / 355.1 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.4027, allocations: 11.98 kB / 355.1 MB, free: 8.582 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.4028, allocations: 7.312 kB / 355.1 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.23e-06/0.4028, allocations: 0 / 355.1 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.188e-06/0.4028, allocations: 0 / 355.1 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.4042, allocations: 0.6287 MB / 355.8 MB, free: 8.031 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.4044, allocations: 127.5 kB / 355.9 MB, free: 7.898 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/0.4045, allocations: 11.25 kB / 355.9 MB, free: 7.891 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.4048, allocations: 31.47 kB / 355.9 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.405, allocations: 23.09 kB / 355.9 MB, free: 7.844 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.405, allocations: 15.36 kB / 356 MB, free: 7.832 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.4052, allocations: 125.4 kB / 356.1 MB, free: 7.723 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.25e-07/0.4052, allocations: 4 kB / 356.1 MB, free: 7.719 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005297/0.4058, allocations: 74.58 kB / 356.2 MB, free: 7.652 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.0002262/0.406, allocations: 144.5 kB / 356.3 MB, free: 7.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.4071, allocations: 452.8 kB / 356.7 MB, free: 7.113 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.904e-06/0.4071, allocations: 0 / 356.7 MB, free: 7.113 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007205/0.4078, allocations: 402.5 kB / 357.1 MB, free: 6.801 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.4086, allocations: 125.7 kB / 357.3 MB, free: 6.695 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.41, allocations: 0.6267 MB / 357.9 MB, free: 6.094 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.4105, allocations: 0.7561 MB / 358.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.779e-05/0.4106, allocations: 23.44 kB / 358.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of SimCode: time 1.603e-06/0.4106, allocations: 0 / 358.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of Templates: time 0.00659/0.4172, allocations: 3.019 MB / 361.7 MB, free: 2.312 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