Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 2.193/2.193, allocations: 194.9 MB / 211.7 MB, free: 2.848 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005223/0.0005225, allocations: 12 kB / 264.5 MB, free: 12.88 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1322, allocations: 44.51 MB / 309.1 MB, free: 316 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5842/0.7165, allocations: 73.91 MB / 383 MB, free: 15.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003484/0.7169, allocations: 75.56 kB / 383 MB, free: 15.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04036/0.7573, allocations: 7.255 MB / 390.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.7573, allocations: 0 / 390.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.523e-05/0.7574, allocations: 7.438 kB / 390.3 MB, free: 14.67 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.001475/0.7589, allocations: 0.5846 MB / 390.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.7589, allocations: 7.719 kB / 390.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.7591, allocations: 35.17 kB / 390.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006981/0.7598, allocations: 255.1 kB / 391.2 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.7599, allocations: 55.69 kB / 391.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.439e-05/0.76, allocations: 25.12 kB / 391.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.7613, allocations: 259.6 kB / 391.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.7613, allocations: 0 / 391.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.684e-05/0.7614, allocations: 11.03 kB / 391.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.7614, allocations: 7.875 kB / 391.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.7627, allocations: 219 kB / 391.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.7653, allocations: 0.7641 MB / 392.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.7666, allocations: 309.1 kB / 392.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.7667, allocations: 7.531 kB / 392.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009945/0.7677, allocations: 318.9 kB / 393.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 4.448e-06/0.7678, allocations: 0 / 393.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.002636/0.7704, allocations: 0.7663 MB / 393.9 MB, free: 12.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.7706, allocations: 205.2 kB / 394.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.771, allocations: 184.3 kB / 394.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.943e-05/0.7711, allocations: 39.14 kB / 394.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.7712, allocations: 134.4 kB / 394.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.7713, allocations: 80.45 kB / 394.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.7714, allocations: 11.09 kB / 394.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7715, allocations: 333.9 kB / 394.9 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005511/0.7721, allocations: 109.5 kB / 395 MB, free: 12.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006134/0.7727, allocations: 209.6 kB / 395.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006277/0.7734, allocations: 187.5 kB / 395.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.7734, allocations: 3.844 kB / 395.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001636/0.775, allocations: 435.2 kB / 395.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.712e-05/0.7752, allocations: 59.16 kB / 395.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.7752, allocations: 3.812 kB / 395.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.162e-05/0.7752, allocations: 7.859 kB / 395.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.7757, allocations: 45.23 kB / 395.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.7757, allocations: 11.25 kB / 395.9 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/0.7763, allocations: 26.52 kB / 395.9 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.728e-05/0.7763, allocations: 18.84 kB / 395.9 MB, free: 11.75 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.0004425/0.7768, allocations: 238.5 kB / 396.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.7769, allocations: 19.06 kB / 396.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.692e-05/0.777, allocations: 28.89 kB / 396.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.777, allocations: 7.922 kB / 396.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.7771, allocations: 0 / 396.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.7771, allocations: 4 kB / 396.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002503/0.7796, allocations: 0.8934 MB / 397.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.7797, allocations: 0 / 397.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.7799, allocations: 28.62 kB / 397.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-06/0.7799, allocations: 3.906 kB / 397.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.073e-05/0.78, allocations: 14.91 kB / 397.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.819e-06/0.7801, allocations: 4 kB / 397.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.7801, allocations: 0 / 397.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.7821, allocations: 0.6243 MB / 397.8 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.7823, allocations: 100.9 kB / 397.9 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.7824, allocations: 22.22 kB / 397.9 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005544/0.783, allocations: 25.56 kB / 397.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.7832, allocations: 34.98 kB / 398 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.588e-05/0.7832, allocations: 6.766 kB / 398 MB, free: 10.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001915/0.7835, allocations: 127.5 kB / 398.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.52e-07/0.7835, allocations: 0 / 398.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008798/0.7844, allocations: 73.59 kB / 398.2 MB, free: 10.74 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.0002867/0.7847, allocations: 140.9 kB / 398.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.7863, allocations: 454.1 kB / 398.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.7864, allocations: 0 / 398.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.7874, allocations: 404.1 kB / 399.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.7888, allocations: 120.5 kB / 399.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.7908, allocations: 0.5959 MB / 399.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.7912, allocations: 0.7489 MB / 400.6 MB, free: 9.391 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004573/0.7917, allocations: 54.05 kB / 400.7 MB, free: 9.383 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.7918, allocations: 32.19 kB / 400.7 MB, free: 9.371 MB / 314.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7918, allocations: 0 / 400.7 MB, free: 9.371 MB / 314.7 MB Notification: Performance of Templates: time 0.01563/0.8075, allocations: 3.771 MB / 404.5 MB, free: 8.891 MB / 314.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