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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.573/1.573, allocations: 171.3 MB / 179.2 MB, free: 7.59 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.477e-05, allocations: 4 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06834/0.06839, allocations: 38.77 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.282/0.3505, allocations: 68.08 MB / 329.4 MB, free: 4.211 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3508, allocations: 71.02 kB / 329.4 MB, free: 4.172 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02745/0.3782, allocations: 7.257 MB / 336.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.66e-06/0.3783, allocations: 4 kB / 336.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.3783, allocations: 4 kB / 336.7 MB, free: 14.29 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.001062/0.3794, allocations: 0.565 MB / 337.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.3795, allocations: 8.031 kB / 337.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.3796, allocations: 27.72 kB / 337.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.3802, allocations: 263.9 kB / 337.5 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.3803, allocations: 45.69 kB / 337.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.971e-05/0.3803, allocations: 16 kB / 337.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004032/0.3808, allocations: 162.6 kB / 337.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.3812, allocations: 198.9 kB / 338 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3813, allocations: 0 / 338 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.852e-05/0.3813, allocations: 7.984 kB / 338 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.843e-06/0.3813, allocations: 4 kB / 338 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.3832, allocations: 0.7215 MB / 338.7 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004697/0.3837, allocations: 249.1 kB / 338.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.3841, allocations: 194.5 kB / 339.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.3841, allocations: 0 / 339.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005205/0.3846, allocations: 296.6 kB / 339.4 MB, free: 11.79 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 3.349e-06/0.3847, allocations: 0 / 339.4 MB, free: 11.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.000756/0.3854, allocations: 298.7 kB / 339.7 MB, free: 11.56 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001926/0.3856, allocations: 236.4 kB / 339.9 MB, free: 11.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.3859, allocations: 162.2 kB / 340.1 MB, free: 11.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.479e-05/0.386, allocations: 36.83 kB / 340.1 MB, free: 11.1 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.3861, allocations: 192.8 kB / 340.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.3862, allocations: 69.62 kB / 340.4 MB, free: 10.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.3863, allocations: 4 kB / 340.4 MB, free: 10.86 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3864, allocations: 333.4 kB / 340.7 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.3866, allocations: 75.92 kB / 340.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.3869, allocations: 183.7 kB / 341 MB, free: 10.3 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.3872, allocations: 95.12 kB / 341.1 MB, free: 10.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3872, allocations: 0 / 341.1 MB, free: 10.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006756/0.3879, allocations: 290.9 kB / 341.3 MB, free: 9.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.104e-05/0.388, allocations: 63.42 kB / 341.4 MB, free: 9.922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.388, allocations: 4 kB / 341.4 MB, free: 9.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.388, allocations: 8 kB / 341.4 MB, free: 9.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.3883, allocations: 42.98 kB / 341.5 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.3884, allocations: 4 kB / 341.5 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.3887, allocations: 31.78 kB / 341.5 MB, free: 9.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.3887, allocations: 15.94 kB / 341.5 MB, free: 9.824 MB / 282.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.0002959/0.389, allocations: 207.3 kB / 341.7 MB, free: 9.609 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.069e-05/0.3891, allocations: 23.81 kB / 341.7 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.503e-05/0.3892, allocations: 19.28 kB / 341.8 MB, free: 9.574 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.3892, allocations: 0 / 341.8 MB, free: 9.574 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.396e-06/0.3893, allocations: 4 kB / 341.8 MB, free: 9.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.3893, allocations: 3.984 kB / 341.8 MB, free: 9.566 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.3908, allocations: 0.799 MB / 342.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.056e-06/0.3908, allocations: 4 kB / 342.6 MB, free: 8.848 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.391, allocations: 23.36 kB / 342.6 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.7e-06/0.391, allocations: 0 / 342.6 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.3911, allocations: 11.98 kB / 342.6 MB, free: 8.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.266e-06/0.3911, allocations: 8 kB / 342.6 MB, free: 8.809 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.54e-06/0.3911, allocations: 0 / 342.6 MB, free: 8.809 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008576/0.392, allocations: 476.7 kB / 343.1 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.3922, allocations: 120 kB / 343.2 MB, free: 8.277 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.144e-05/0.3923, allocations: 23.11 kB / 343.2 MB, free: 8.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003455/0.3927, allocations: 23.98 kB / 343.2 MB, free: 8.234 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3928, allocations: 23.39 kB / 343.3 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.3929, allocations: 11.81 kB / 343.3 MB, free: 8.207 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001531/0.393, allocations: 118.9 kB / 343.4 MB, free: 8.105 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.393, allocations: 0 / 343.4 MB, free: 8.105 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005819/0.3936, allocations: 71.83 kB / 343.5 MB, free: 8.035 MB / 282.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.0002528/0.3939, allocations: 136.9 kB / 343.6 MB, free: 7.898 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007143/0.3946, allocations: 369 kB / 344 MB, free: 7.586 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.684e-06/0.3947, allocations: 0 / 344 MB, free: 7.586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004838/0.3952, allocations: 368.9 kB / 344.3 MB, free: 7.305 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.396, allocations: 121.4 kB / 344.4 MB, free: 7.199 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.397, allocations: 396.5 kB / 344.8 MB, free: 6.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.3976, allocations: 0.7563 MB / 345.6 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3977, allocations: 27.42 kB / 345.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of SimCode: time 1.882e-06/0.3977, allocations: 0 / 345.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of Templates: time 0.007074/0.4048, allocations: 2.939 MB / 348.5 MB, free: 3.125 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 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,_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,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.sampling,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.useHeatPort,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