Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.77/1.77, allocations: 171.2 MB / 186.7 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004948/0.0004949, allocations: 12 kB / 233.9 MB, free: 2.367 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09215/0.09268, allocations: 38.76 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3639/0.4567, allocations: 68.83 MB / 341.4 MB, free: 4.547 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00034/0.4571, allocations: 75.28 kB / 341.5 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04036/0.4975, allocations: 7.309 MB / 348.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4975, allocations: 0 / 348.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.89e-05/0.4976, allocations: 8 kB / 348.8 MB, free: 14.44 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.00155/0.4991, allocations: 0.5903 MB / 349.4 MB, free: 13.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.279e-05/0.4992, allocations: 12.03 kB / 349.4 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.4994, allocations: 23.72 kB / 349.5 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007339/0.5001, allocations: 260.6 kB / 349.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.5003, allocations: 48.27 kB / 349.8 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.824e-05/0.5004, allocations: 22.81 kB / 349.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.5016, allocations: 260.3 kB / 350 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.5016, allocations: 4 kB / 350 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.5017, allocations: 10.75 kB / 350.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.5017, allocations: 4 kB / 350.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.5029, allocations: 215.2 kB / 350.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.5056, allocations: 0.7753 MB / 351 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.5069, allocations: 302.5 kB / 351.3 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.022e-05/0.507, allocations: 7.938 kB / 351.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.5081, allocations: 331.6 kB / 351.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 4.078e-06/0.5081, allocations: 0 / 351.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.002903/0.511, allocations: 0.7591 MB / 352.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002255/0.5113, allocations: 202 kB / 352.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/0.5117, allocations: 188.9 kB / 352.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.819e-05/0.5118, allocations: 40.89 kB / 352.9 MB, free: 10.67 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.512, allocations: 131.3 kB / 353 MB, free: 10.56 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.5121, allocations: 76.31 kB / 353.1 MB, free: 10.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.5122, allocations: 11.81 kB / 353.1 MB, free: 10.49 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.5124, allocations: 330.3 kB / 353.4 MB, free: 10.17 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.513, allocations: 113.6 kB / 353.5 MB, free: 10.08 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006901/0.5137, allocations: 214.8 kB / 353.7 MB, free: 9.871 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.5144, allocations: 185.8 kB / 353.9 MB, free: 9.715 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.5144, allocations: 4 kB / 353.9 MB, free: 9.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001664/0.5161, allocations: 424.6 kB / 354.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.52e-05/0.5162, allocations: 63.53 kB / 354.4 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/0.5162, allocations: 11.92 kB / 354.4 MB, free: 9.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/0.5163, allocations: 4 kB / 354.4 MB, free: 9.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.5167, allocations: 39.92 kB / 354.4 MB, free: 9.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.5168, allocations: 4 kB / 354.4 MB, free: 9.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004897/0.5173, allocations: 38.97 kB / 354.5 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-05/0.5173, allocations: 14.69 kB / 354.5 MB, free: 9.184 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.0004745/0.5178, allocations: 236.3 kB / 354.7 MB, free: 8.953 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.5179, allocations: 31.28 kB / 354.7 MB, free: 8.926 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.528e-05/0.518, allocations: 20.7 kB / 354.8 MB, free: 8.914 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.5181, allocations: 8 kB / 354.8 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.5181, allocations: 0 / 354.8 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.5181, allocations: 4.266 kB / 354.8 MB, free: 8.902 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.5208, allocations: 0.9029 MB / 355.7 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5208, allocations: 0 / 355.7 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.5211, allocations: 19.98 kB / 355.7 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/0.5212, allocations: 8 kB / 355.7 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.353e-05/0.5212, allocations: 11.8 kB / 355.7 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.5212, allocations: 4 kB / 355.7 MB, free: 8.051 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5213, allocations: 3.984 kB / 355.7 MB, free: 8.047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002257/0.5235, allocations: 0.6298 MB / 356.4 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003035/0.5239, allocations: 125 kB / 356.5 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.524, allocations: 17.42 kB / 356.5 MB, free: 7.355 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005316/0.5246, allocations: 27.42 kB / 356.5 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.5248, allocations: 23.47 kB / 356.5 MB, free: 7.312 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.236e-05/0.5248, allocations: 13.61 kB / 356.6 MB, free: 7.301 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002323/0.5251, allocations: 131.2 kB / 356.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5251, allocations: 4 kB / 356.7 MB, free: 7.184 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009151/0.526, allocations: 75.5 kB / 356.8 MB, free: 7.117 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.0003403/0.5264, allocations: 139.1 kB / 356.9 MB, free: 6.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.5283, allocations: 452.4 kB / 357.3 MB, free: 6.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5283, allocations: 0 / 357.3 MB, free: 6.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.5294, allocations: 405.8 kB / 357.7 MB, free: 6.273 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5307, allocations: 120.5 kB / 357.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.5327, allocations: 0.6085 MB / 358.5 MB, free: 5.598 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.5332, allocations: 0.7526 MB / 359.2 MB, free: 4.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003876/0.5336, allocations: 58.53 kB / 359.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.5337, allocations: 19.44 kB / 359.3 MB, free: 4.738 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5338, allocations: 4 kB / 359.3 MB, free: 4.734 MB / 282.7 MB Notification: Performance of Templates: time 0.01811/0.5519, allocations: 3.777 MB / 363.1 MB, free: 1.004 MB / 282.7 MB "" 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.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.vout,dA_Converter.y,pulse.T0,pulse.np,pulse.nperiod,pulse.period,pulse.pulse,pulse.quiet,pulse.startTime,pulse.width,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,sineVoltage.V,sineVoltage.freqHz,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time