Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.867/1.867, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003533, allocations: 12 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0771/0.07748, allocations: 44.5 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3523/0.4299, allocations: 73.92 MB / 382.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.4301, allocations: 73.58 kB / 382.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02393/0.4541, allocations: 7.255 MB / 389.7 MB, free: 18.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.458e-06/0.4541, allocations: 0 / 389.7 MB, free: 18.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.4541, allocations: 3.75 kB / 389.7 MB, free: 18.07 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.0008164/0.455, allocations: 0.5823 MB / 390.3 MB, free: 17.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.455, allocations: 11.69 kB / 390.3 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.548e-05/0.4551, allocations: 35.25 kB / 390.3 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.4555, allocations: 253.6 kB / 390.6 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.733e-05/0.4556, allocations: 59.34 kB / 390.6 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.4557, allocations: 23.19 kB / 390.6 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006439/0.4563, allocations: 257.1 kB / 390.9 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4564, allocations: 0 / 390.9 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.4564, allocations: 7.25 kB / 390.9 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.046e-06/0.4564, allocations: 7.75 kB / 390.9 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006182/0.4571, allocations: 220.9 kB / 391.1 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.4586, allocations: 0.76 MB / 391.9 MB, free: 16.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/0.4593, allocations: 304.3 kB / 392.2 MB, free: 16.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.4594, allocations: 7.812 kB / 392.2 MB, free: 16.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000565/0.46, allocations: 330.5 kB / 392.5 MB, free: 16.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.787e-06/0.46, allocations: 0 / 392.5 MB, free: 16.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.001607/0.4616, allocations: 0.7626 MB / 393.3 MB, free: 16.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/0.4617, allocations: 197.5 kB / 393.5 MB, free: 16.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.4619, allocations: 173.7 kB / 393.6 MB, free: 16.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.4619, allocations: 39.67 kB / 393.7 MB, free: 16.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.14e-05/0.462, allocations: 197.1 kB / 393.9 MB, free: 15.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.4621, allocations: 78.98 kB / 393.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.4621, allocations: 6.938 kB / 393.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.914e-05/0.4622, allocations: 325.6 kB / 394.3 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.4625, allocations: 114.7 kB / 394.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.4629, allocations: 206.8 kB / 394.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.4632, allocations: 197.5 kB / 394.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.821e-06/0.4633, allocations: 3.906 kB / 394.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008758/0.4641, allocations: 413.7 kB / 395.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.4642, allocations: 62.53 kB / 395.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.005e-06/0.4642, allocations: 3.875 kB / 395.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.4643, allocations: 7.828 kB / 395.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.4645, allocations: 45.25 kB / 395.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.4645, allocations: 7.859 kB / 395.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.4648, allocations: 33.8 kB / 395.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.4648, allocations: 19.09 kB / 395.4 MB, free: 15.1 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.0002374/0.4651, allocations: 241.6 kB / 395.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.283e-05/0.4652, allocations: 23.25 kB / 395.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.867e-05/0.4652, allocations: 24.34 kB / 395.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.347e-06/0.4652, allocations: 0 / 395.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.35e-06/0.4653, allocations: 3.953 kB / 395.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.774e-06/0.4653, allocations: 0 / 395.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.4667, allocations: 0.9058 MB / 396.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.011e-06/0.4667, allocations: 0 / 396.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.4669, allocations: 17.67 kB / 396.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.4669, allocations: 6.281 kB / 396.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.467, allocations: 15.45 kB / 396.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.467, allocations: 4 kB / 396.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.467, allocations: 2.344 kB / 396.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.4682, allocations: 0.6283 MB / 397.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.4683, allocations: 103.8 kB / 397.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.134e-05/0.4684, allocations: 17.61 kB / 397.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/0.4687, allocations: 26.3 kB / 397.4 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.295e-05/0.4688, allocations: 27.11 kB / 397.4 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-05/0.4688, allocations: 14.11 kB / 397.4 MB, free: 14.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.469, allocations: 125.7 kB / 397.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.469, allocations: 0 / 397.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004948/0.4695, allocations: 72.97 kB / 397.6 MB, free: 14.08 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.0001688/0.4697, allocations: 136.2 kB / 397.7 MB, free: 13.99 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008508/0.4705, allocations: 443.6 kB / 398.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.923e-06/0.4706, allocations: 7.969 kB / 398.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005407/0.4711, allocations: 402.3 kB / 398.6 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.4718, allocations: 122.8 kB / 398.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.4729, allocations: 0.6238 MB / 399.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.4731, allocations: 0.7471 MB / 400.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.674e-05/0.4732, allocations: 29.27 kB / 400.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of SimCode: time 3.067e-06/0.4732, allocations: 0 / 400.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of Templates: time 0.005405/0.4786, allocations: 3.009 MB / 403.1 MB, free: 12.47 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