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.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadModel(Modelica): time 1.773/1.773, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003822, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08283/0.08324, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3523/0.4356, allocations: 69.87 MB / 342.5 MB, free: 3.605 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.436, allocations: 78.58 kB / 342.6 MB, free: 3.562 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05241/0.4884, allocations: 8.436 MB / 351 MB, free: 12.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4885, allocations: 0 / 351 MB, free: 12.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.101e-05/0.4886, allocations: 8 kB / 351 MB, free: 12.38 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002338/0.4909, allocations: 0.6732 MB / 351.7 MB, free: 11.69 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.491, allocations: 8.031 kB / 351.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.4912, allocations: 43.53 kB / 351.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007141/0.4919, allocations: 304.6 kB / 352 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.463e-05/0.492, allocations: 23.09 kB / 352.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.4922, allocations: 34.94 kB / 352.1 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.4936, allocations: 354.4 kB / 352.4 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.4937, allocations: 3.938 kB / 352.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.19e-05/0.4938, allocations: 11.19 kB / 352.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.4938, allocations: 8 kB / 352.5 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.495, allocations: 248 kB / 352.7 MB, free: 10.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00412/0.4991, allocations: 1.185 MB / 353.9 MB, free: 9.828 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.5007, allocations: 299.4 kB / 354.2 MB, free: 9.613 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001394/0.5021, allocations: 1.12 MB / 355.3 MB, free: 8.238 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.5022, allocations: 34.11 kB / 355.3 MB, free: 8.199 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 3.787e-06/0.5022, allocations: 8 kB / 355.3 MB, free: 8.191 MB / 282.7 MB Notification: Performance of matching and sorting (n=27): time 0.002648/0.5049, allocations: 0.4928 MB / 355.8 MB, free: 7.762 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/0.5051, allocations: 84.73 kB / 355.9 MB, free: 7.664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007675/0.5058, allocations: 341.4 kB / 356.2 MB, free: 7.391 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.306e-05/0.5059, allocations: 33.45 kB / 356.3 MB, free: 7.355 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.5062, allocations: 213.2 kB / 356.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.5064, allocations: 107.8 kB / 356.6 MB, free: 7.098 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.5064, allocations: 7.25 kB / 356.6 MB, free: 7.098 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.5067, allocations: 344 kB / 356.9 MB, free: 6.766 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005808/0.5073, allocations: 108.5 kB / 357 MB, free: 6.691 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006592/0.5079, allocations: 192.6 kB / 357.2 MB, free: 6.516 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.5086, allocations: 133.9 kB / 357.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.5086, allocations: 0 / 357.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001832/0.5105, allocations: 384.5 kB / 357.7 MB, free: 6.141 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.5105, allocations: 8.625 kB / 357.7 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.5106, allocations: 0 / 357.7 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/0.5106, allocations: 4 kB / 357.7 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.5116, allocations: 101.8 kB / 357.8 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.316e-05/0.5117, allocations: 7.984 kB / 357.9 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006303/0.5123, allocations: 50.56 kB / 357.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-05/0.5124, allocations: 14.75 kB / 357.9 MB, free: 5.969 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.0003607/0.5128, allocations: 155.6 kB / 358.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.513, allocations: 43.52 kB / 358.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.5146, allocations: 334.2 kB / 358.4 MB, free: 5.543 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.5146, allocations: 4 kB / 358.4 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.5146, allocations: 8 kB / 358.5 MB, free: 5.531 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5147, allocations: 0 / 358.5 MB, free: 5.531 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008475/0.5155, allocations: 384.4 kB / 358.8 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.5156, allocations: 3.984 kB / 358.8 MB, free: 5.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007308/0.5163, allocations: 67.27 kB / 358.9 MB, free: 5.113 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003222/0.5166, allocations: 39.55 kB / 358.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.5167, allocations: 15.23 kB / 359 MB, free: 5.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006328/0.5173, allocations: 0.5673 MB / 359.5 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/0.5174, allocations: 7.969 kB / 359.5 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.519, allocations: 0.5176 MB / 360 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.5193, allocations: 138.8 kB / 360.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.472e-05/0.5194, allocations: 3.312 kB / 360.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004588/0.5198, allocations: 27.73 kB / 360.2 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.5199, allocations: 23.41 kB / 360.2 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.52, allocations: 11.19 kB / 360.2 MB, free: 3.871 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004068/0.5204, allocations: 235.2 kB / 360.5 MB, free: 3.684 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5204, allocations: 0 / 360.5 MB, free: 3.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006244/0.521, allocations: 105.3 kB / 360.6 MB, free: 3.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003002/0.5214, allocations: 134.4 kB / 360.7 MB, free: 3.457 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.5224, allocations: 276.8 kB / 361 MB, free: 3.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5224, allocations: 0 / 361 MB, free: 3.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005818/0.523, allocations: 140.5 kB / 361.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.5235, allocations: 39.27 kB / 361.2 MB, free: 3.125 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.5259, allocations: 1.055 MB / 362.2 MB, free: 2.098 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.5264, allocations: 0.7955 MB / 363 MB, free: 1.277 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.00035/0.5268, allocations: 38.95 kB / 363 MB, free: 1.238 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.5269, allocations: 31.06 kB / 363.1 MB, free: 1.211 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5269, allocations: 0 / 363.1 MB, free: 1.211 MB / 282.7 MB Notification: Performance of Templates: time 0.01212/0.5391, allocations: 3.191 MB / 366.3 MB, free: 14.04 MB / 298.7 MB "" Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:constantVoltage.V,constantVoltage.p.v,constantVoltage.v,constantVoltage1.V,constantVoltage1.p.v,constantVoltage1.v,opAmp.Avcm_val,opAmp.Avd0,opAmp.Avd0_val,opAmp.CMRR,opAmp.Cin,opAmp.I1,opAmp.I2,opAmp.Ib,opAmp.Imaxsi,opAmp.Imaxsi_val,opAmp.Imaxso,opAmp.Imaxso_val,opAmp.Ios,opAmp.Rcm,opAmp.Rdm,opAmp.Rout,opAmp.Ts,opAmp.Vos,opAmp.fp1,opAmp.fp2,opAmp.fp3,opAmp.fp4,opAmp.fz,opAmp.m_supply.v,opAmp.p_supply.v,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.sr_m,opAmp.sr_m_val,opAmp.sr_p,opAmp.sr_p_val,opAmp.v_3,opAmp.v_in,opAmp.v_neg,opAmp.v_pos,opAmp.v_source,opAmp.v_vos,opAmp.vcm,opAmp.vcm_abs,opAmp.vcp,opAmp.vcp_abs,opAmp.x,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor1.R,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor2.R,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.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