Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.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.2_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadModel(Modelica): time 2.209/2.209, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005465/0.0005467, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09602, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5294, allocations: 74.93 MB / 383.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5297, allocations: 74.05 kB / 384 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03698/0.5667, allocations: 8.344 MB / 392.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5667, allocations: 0 / 392.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.379e-05/0.5668, allocations: 11.3 kB / 392.3 MB, free: 13.97 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00152/0.5683, allocations: 0.676 MB / 393 MB, free: 13.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.5684, allocations: 7.719 kB / 393 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.5685, allocations: 50.77 kB / 393.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.5689, allocations: 294.3 kB / 393.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.569, allocations: 27.25 kB / 393.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/0.569, allocations: 30.69 kB / 393.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009154/0.57, allocations: 355.4 kB / 393.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.57, allocations: 0 / 393.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.5701, allocations: 14.16 kB / 393.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.5701, allocations: 7.812 kB / 393.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007649/0.5709, allocations: 250.9 kB / 394 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00265/0.5735, allocations: 1.185 MB / 395.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.5746, allocations: 291 kB / 395.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000748/0.5753, allocations: 1.124 MB / 396.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.5754, allocations: 37.58 kB / 396.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 2.955e-06/0.5754, allocations: 3.938 kB / 396.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.001809/0.5772, allocations: 0.4959 MB / 397.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.5773, allocations: 84.89 kB / 397.2 MB, free: 11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004533/0.5777, allocations: 335.5 kB / 397.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.5778, allocations: 39.45 kB / 397.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.5779, allocations: 265.9 kB / 397.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.999e-05/0.578, allocations: 101.6 kB / 397.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.553e-05/0.5781, allocations: 11.78 kB / 398 MB, free: 10.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.554e-05/0.5781, allocations: 329.2 kB / 398.3 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.5785, allocations: 106.7 kB / 398.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.5789, allocations: 190.6 kB / 398.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.5793, allocations: 130.9 kB / 398.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.5794, allocations: 3.188 kB / 398.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009929/0.5804, allocations: 353.1 kB / 399 MB, free: 10.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.5804, allocations: 11.53 kB / 399.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.5804, allocations: 3.781 kB / 399.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.5805, allocations: 3.781 kB / 399.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007129/0.5812, allocations: 98.84 kB / 399.2 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.5812, allocations: 6.734 kB / 399.2 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.5817, allocations: 53.31 kB / 399.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/0.5817, allocations: 11.38 kB / 399.2 MB, free: 10.07 MB / 314.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.0002441/0.582, allocations: 155.2 kB / 399.4 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.338e-05/0.5821, allocations: 35.12 kB / 399.4 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.5831, allocations: 325.2 kB / 399.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.5831, allocations: 3.875 kB / 399.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5831, allocations: 3.094 kB / 399.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5832, allocations: 4 kB / 399.7 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005598/0.5837, allocations: 394.5 kB / 400.1 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.5837, allocations: 0 / 400.1 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006812/0.5844, allocations: 67.3 kB / 400.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002666/0.5847, allocations: 38.88 kB / 400.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.5848, allocations: 10.75 kB / 400.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003947/0.5852, allocations: 0.5735 MB / 400.8 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5852, allocations: 0 / 400.8 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.5866, allocations: 0.5196 MB / 401.3 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.5868, allocations: 133.8 kB / 401.5 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.144e-05/0.5869, allocations: 14.48 kB / 401.5 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.5873, allocations: 34.62 kB / 401.5 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.5874, allocations: 23.31 kB / 401.5 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.5874, allocations: 7.5 kB / 401.5 MB, free: 8.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003185/0.5877, allocations: 235.5 kB / 401.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5878, allocations: 0 / 401.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005525/0.5883, allocations: 107.6 kB / 401.9 MB, free: 8.719 MB / 314.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.0002359/0.5886, allocations: 136.9 kB / 402 MB, free: 8.617 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008805/0.5895, allocations: 278 kB / 402.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5895, allocations: 0 / 402.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005215/0.59, allocations: 136.1 kB / 402.4 MB, free: 8.594 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.5904, allocations: 33.8 kB / 402.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.5924, allocations: 1.078 MB / 403.5 MB, free: 7.934 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.5927, allocations: 0.7997 MB / 404.3 MB, free: 7.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.5929, allocations: 34.44 kB / 404.4 MB, free: 7.219 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5929, allocations: 3.906 kB / 404.4 MB, free: 7.219 MB / 314.7 MB Notification: Performance of Templates: time 0.009944/0.6028, allocations: 4.626 MB / 409 MB, free: 6.035 MB / 314.7 MB "Error: Could not read variable opAmp.Pi in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat. Warning: Get data of variable opAmp.Pi from file Modelica_3.2.2_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