Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003507, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09222, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4014/0.4937, allocations: 73.91 MB / 382.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.4941, allocations: 75.39 kB / 382.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.5325, allocations: 7.253 MB / 390.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5326, allocations: 0 / 390.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.6e-05/0.5326, allocations: 3.906 kB / 390.2 MB, free: 14.09 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.001518/0.5342, allocations: 0.5818 MB / 390.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.5343, allocations: 18.91 kB / 390.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.5344, allocations: 30.8 kB / 390.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.5351, allocations: 251.2 kB / 391.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.5353, allocations: 54.48 kB / 391.1 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.87e-05/0.5354, allocations: 18.53 kB / 391.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.5364, allocations: 265.8 kB / 391.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.5365, allocations: 0 / 391.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.368e-05/0.5366, allocations: 14.72 kB / 391.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.5366, allocations: 3.938 kB / 391.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.5377, allocations: 223.3 kB / 391.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.5402, allocations: 0.7597 MB / 392.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.5414, allocations: 303.1 kB / 392.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.5414, allocations: 7.844 kB / 392.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007089/0.5422, allocations: 324.8 kB / 393 MB, free: 12.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.866e-06/0.5422, allocations: 0 / 393 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.001826/0.544, allocations: 0.7638 MB / 393.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.546e-05/0.5442, allocations: 204.1 kB / 394 MB, free: 12.19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.5444, allocations: 183.3 kB / 394.2 MB, free: 12.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.193e-05/0.5445, allocations: 37.3 kB / 394.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.758e-05/0.5446, allocations: 197.2 kB / 394.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.056e-05/0.5446, allocations: 89.31 kB / 394.5 MB, free: 11.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/0.5447, allocations: 3.312 kB / 394.5 MB, free: 11.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.634e-05/0.5448, allocations: 327 kB / 394.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.5451, allocations: 110.1 kB / 394.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.5456, allocations: 211.6 kB / 395.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/0.5461, allocations: 185.8 kB / 395.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.5461, allocations: 3.188 kB / 395.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001016/0.5471, allocations: 425.1 kB / 395.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/0.5472, allocations: 59.09 kB / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.5472, allocations: 7.812 kB / 395.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.5472, allocations: 7.734 kB / 395.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.5476, allocations: 49.98 kB / 395.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.5476, allocations: 3.906 kB / 395.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.5479, allocations: 29.48 kB / 395.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.548, allocations: 11.81 kB / 395.9 MB, free: 11.11 MB / 314.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.0003247/0.5483, allocations: 243.9 kB / 396.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.849e-05/0.5484, allocations: 27.41 kB / 396.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.603e-05/0.5485, allocations: 23.2 kB / 396.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.5485, allocations: 7.828 kB / 396.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.5485, allocations: 0 / 396.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.5485, allocations: 0 / 396.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.5503, allocations: 0.9008 MB / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.5504, allocations: 0 / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.5506, allocations: 24.41 kB / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.5506, allocations: 336 / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.5507, allocations: 11.14 kB / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.5507, allocations: 3.719 kB / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.5507, allocations: 2.344 kB / 397.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.5521, allocations: 0.6263 MB / 397.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.467e-05/0.5522, allocations: 112.4 kB / 397.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.768e-05/0.5523, allocations: 17.75 kB / 397.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.5527, allocations: 36.38 kB / 397.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.5528, allocations: 22.17 kB / 397.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/0.5529, allocations: 10.31 kB / 397.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001339/0.553, allocations: 127.4 kB / 398.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.553, allocations: 0 / 398.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005414/0.5536, allocations: 72.91 kB / 398.1 MB, free: 10.09 MB / 314.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.0002084/0.5538, allocations: 134 kB / 398.3 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.555, allocations: 443.1 kB / 398.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.555, allocations: 0 / 398.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007456/0.5558, allocations: 413 kB / 399.1 MB, free: 9.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009682/0.5568, allocations: 128.4 kB / 399.2 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.5582, allocations: 0.6288 MB / 399.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.5585, allocations: 0.7518 MB / 400.6 MB, free: 8.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.5586, allocations: 26.16 kB / 400.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5586, allocations: 0 / 400.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of Templates: time 0.007206/0.5658, allocations: 3.015 MB / 403.7 MB, free: 8.469 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