Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadModel(Modelica): time 1.591/1.591, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.0003548, allocations: 11.98 kB / 233.2 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07075/0.07113, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.281/0.3522, allocations: 69.87 MB / 341.9 MB, free: 4.145 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.3524, allocations: 74.27 kB / 342 MB, free: 4.105 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03586/0.3883, allocations: 8.432 MB / 350.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.239e-06/0.3884, allocations: 0 / 350.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.3884, allocations: 8 kB / 350.4 MB, free: 12.92 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.001398/0.3898, allocations: 0.6754 MB / 351.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3899, allocations: 8.031 kB / 351.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.39, allocations: 47.28 kB / 351.1 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.3905, allocations: 299.1 kB / 351.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.3906, allocations: 29.72 kB / 351.4 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.802e-05/0.3906, allocations: 30.38 kB / 351.5 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008724/0.3915, allocations: 352.8 kB / 351.8 MB, free: 11.56 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3916, allocations: 0 / 351.8 MB, free: 11.56 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.3916, allocations: 14.56 kB / 351.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.3916, allocations: 8 kB / 351.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006949/0.3924, allocations: 241.3 kB / 352.1 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/0.395, allocations: 1.19 MB / 353.3 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000888/0.3959, allocations: 301.1 kB / 353.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001102/0.397, allocations: 1.12 MB / 354.7 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.3971, allocations: 34.8 kB / 354.7 MB, free: 8.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 3.407e-06/0.3971, allocations: 4 kB / 354.7 MB, free: 8.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=27): time 0.001641/0.3988, allocations: 0.4989 MB / 355.2 MB, free: 8.293 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/0.3989, allocations: 84.05 kB / 355.3 MB, free: 8.195 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.3994, allocations: 301.6 kB / 355.6 MB, free: 7.949 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.809e-05/0.3994, allocations: 40.83 kB / 355.6 MB, free: 7.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.3996, allocations: 260.5 kB / 355.9 MB, free: 7.691 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.3998, allocations: 104.7 kB / 356 MB, free: 7.602 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.3998, allocations: 9.812 kB / 356 MB, free: 7.598 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.4, allocations: 321.4 kB / 356.3 MB, free: 7.281 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003451/0.4004, allocations: 105.8 kB / 356.4 MB, free: 7.207 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.4008, allocations: 190.6 kB / 356.6 MB, free: 7.031 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.4012, allocations: 136.1 kB / 356.7 MB, free: 6.945 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4012, allocations: 0 / 356.7 MB, free: 6.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009357/0.4022, allocations: 359 kB / 357.1 MB, free: 6.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.4022, allocations: 15.94 kB / 357.1 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.222e-06/0.4022, allocations: 0 / 357.1 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.4022, allocations: 4 kB / 357.1 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005382/0.4028, allocations: 98.89 kB / 357.2 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.4028, allocations: 4 kB / 357.2 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.4032, allocations: 45.7 kB / 357.2 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.522e-05/0.4032, allocations: 15.44 kB / 357.3 MB, free: 6.512 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.0002517/0.4035, allocations: 153.8 kB / 357.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.4036, allocations: 35.62 kB / 357.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009718/0.4046, allocations: 337.4 kB / 357.8 MB, free: 6.09 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.4046, allocations: 7.938 kB / 357.8 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.953e-06/0.4047, allocations: 7.938 kB / 357.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.134e-06/0.4047, allocations: 0 / 357.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006746/0.4053, allocations: 392.8 kB / 358.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.253e-06/0.4054, allocations: 4 kB / 358.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004854/0.4059, allocations: 62.7 kB / 358.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002704/0.4062, allocations: 40.36 kB / 358.3 MB, free: 5.617 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.4062, allocations: 12.61 kB / 358.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005779/0.4068, allocations: 0.5693 MB / 358.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.247e-06/0.4068, allocations: 0 / 358.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.4081, allocations: 0.5204 MB / 359.4 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002299/0.4084, allocations: 138.5 kB / 359.5 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/0.4085, allocations: 7.625 kB / 359.5 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003814/0.4089, allocations: 27.61 kB / 359.6 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.4089, allocations: 15.97 kB / 359.6 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.409, allocations: 11.62 kB / 359.6 MB, free: 4.418 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003657/0.4094, allocations: 238.7 kB / 359.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.39e-07/0.4094, allocations: 0 / 359.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005813/0.41, allocations: 103.1 kB / 359.9 MB, free: 4.137 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.0002644/0.4103, allocations: 134.5 kB / 360 MB, free: 4.004 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008111/0.4111, allocations: 277.6 kB / 360.3 MB, free: 3.797 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4111, allocations: 3.938 kB / 360.3 MB, free: 3.793 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004766/0.4116, allocations: 140.9 kB / 360.5 MB, free: 3.688 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.412, allocations: 48.7 kB / 360.5 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.414, allocations: 1.081 MB / 361.6 MB, free: 2.602 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000531/0.4146, allocations: 0.7994 MB / 362.4 MB, free: 1.773 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.4147, allocations: 27.44 kB / 362.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of SimCode: time 1.978e-06/0.4148, allocations: 0 / 362.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of Templates: time 0.01024/0.425, allocations: 4.641 MB / 367.1 MB, free: 13.16 MB / 298.7 MB "Error: Could not read variable opAmp.Pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat. Warning: Get data of variable opAmp.Pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat failed! Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat failed! " 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.i,constantVoltage.n.i,constantVoltage.n.v,constantVoltage.p.i,constantVoltage.p.v,constantVoltage.v,constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,ground.p.i,ground.p.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,der(opAmp.q_fp1),der(opAmp.q_fr1),der(opAmp.q_fr2),der(opAmp.q_fr3),der(opAmp.v_in),der(opAmp.v_source),der(opAmp.x),opAmp.fp1,opAmp.fp2,opAmp.fp3,opAmp.fp4,opAmp.fz,opAmp.i_3,opAmp.i_4,opAmp.i_c3,opAmp.i_out,opAmp.i_r2,opAmp.i_vos,opAmp.m.i,opAmp.m.v,opAmp.m_supply.i,opAmp.m_supply.v,opAmp.outp.i,opAmp.outp.v,opAmp.p.i,opAmp.p.v,opAmp.p_supply.i,opAmp.p_supply.v,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_sum,opAmp.q_sum_help,opAmp.sr_m,opAmp.sr_m_val,opAmp.sr_p,opAmp.sr_p_val,opAmp.v_3,opAmp.v_4,opAmp.v_in,opAmp.v_neg,opAmp.v_out,opAmp.v_pos,opAmp.v_source,opAmp.v_vos,opAmp.vcm,opAmp.vcm_abs,opAmp.vcp,opAmp.vcp_abs,opAmp.x,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,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.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