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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.786/1.786, allocations: 171.3 MB / 179.2 MB, free: 8.184 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.017e-05/2.031e-05, allocations: 4 kB / 222.5 MB, free: 8.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07413/0.07418, allocations: 38.76 MB / 261.3 MB, free: 1.941 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2892/0.3634, allocations: 69.13 MB / 330.4 MB, free: 3.176 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.3637, allocations: 68.09 kB / 330.5 MB, free: 3.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03488/0.3986, allocations: 8.353 MB / 338.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3987, allocations: 7.938 kB / 338.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.3987, allocations: 8 kB / 338.8 MB, free: 12.15 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.001638/0.4003, allocations: 0.6192 MB / 339.5 MB, free: 11.51 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.643e-05/0.4005, allocations: 8.031 kB / 339.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/0.4007, allocations: 47.44 kB / 339.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.4018, allocations: 291.2 kB / 339.8 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.4018, allocations: 15.95 kB / 339.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.402, allocations: 24 kB / 339.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00101/0.403, allocations: 197.2 kB / 340 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.4043, allocations: 275.5 kB / 340.3 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.4044, allocations: 3.984 kB / 340.3 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.4044, allocations: 4 kB / 340.3 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.4045, allocations: 8 kB / 340.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004635/0.4091, allocations: 1.117 MB / 341.4 MB, free: 9.809 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.4102, allocations: 226.1 kB / 341.6 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008909/0.4111, allocations: 181.2 kB / 341.8 MB, free: 9.527 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001714/0.4129, allocations: 1.128 MB / 343 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.631e-05/0.413, allocations: 42.05 kB / 343 MB, free: 8.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 5.746e-06/0.413, allocations: 0 / 343 MB, free: 8.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=27): time 0.00149/0.4145, allocations: 266.7 kB / 343.3 MB, free: 7.887 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.4146, allocations: 85.05 kB / 343.3 MB, free: 7.785 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006859/0.4153, allocations: 255.3 kB / 343.6 MB, free: 7.578 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.398e-05/0.4154, allocations: 29.52 kB / 343.6 MB, free: 7.547 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.4158, allocations: 269.8 kB / 343.9 MB, free: 7.316 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.416, allocations: 98.19 kB / 344 MB, free: 7.234 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.416, allocations: 0 / 344 MB, free: 7.234 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002568/0.4163, allocations: 320.2 kB / 344.3 MB, free: 6.918 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004334/0.4168, allocations: 89.36 kB / 344.4 MB, free: 6.859 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.4173, allocations: 153.9 kB / 344.5 MB, free: 6.723 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005773/0.4179, allocations: 105.2 kB / 344.6 MB, free: 6.656 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.568e-06/0.418, allocations: 0 / 344.6 MB, free: 6.656 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001755/0.4197, allocations: 347.3 kB / 345 MB, free: 6.383 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.4198, allocations: 4 kB / 345 MB, free: 6.379 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.4198, allocations: 4 kB / 345 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005819/0.4204, allocations: 70.56 kB / 345 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008239/0.4213, allocations: 75.91 kB / 345.1 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004091/0.4254, allocations: 1.705 MB / 346.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006984/0.4262, allocations: 27.69 kB / 346.8 MB, free: 4.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.392e-05/0.4263, allocations: 12.19 kB / 346.9 MB, free: 4.578 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002677/0.4266, allocations: 120.5 kB / 347 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.4268, allocations: 35.55 kB / 347 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.4283, allocations: 284 kB / 347.3 MB, free: 4.207 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.4284, allocations: 4 kB / 347.3 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.786e-06/0.4284, allocations: 0 / 347.3 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.4284, allocations: 3.984 kB / 347.3 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.4296, allocations: 348.1 kB / 347.6 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4296, allocations: 3.938 kB / 347.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008718/0.4305, allocations: 59.02 kB / 347.7 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004726/0.431, allocations: 52.27 kB / 347.8 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.92e-05/0.4311, allocations: 11.94 kB / 347.8 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.4322, allocations: 0.6121 MB / 348.4 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.963e-06/0.4323, allocations: 0 / 348.4 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.4342, allocations: 475.5 kB / 348.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003843/0.4346, allocations: 138.6 kB / 349 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.4348, allocations: 0 / 349 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/0.4355, allocations: 23.94 kB / 349 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.4356, allocations: 15.97 kB / 349 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.119e-05/0.4357, allocations: 11.81 kB / 349 MB, free: 2.605 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005016/0.4362, allocations: 189.6 kB / 349.2 MB, free: 2.461 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.195e-06/0.4362, allocations: 4 kB / 349.2 MB, free: 2.457 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001377/0.4376, allocations: 103.8 kB / 349.3 MB, free: 2.355 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004214/0.4381, allocations: 132.6 kB / 349.4 MB, free: 2.223 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.4396, allocations: 354.5 kB / 349.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.388e-06/0.4396, allocations: 0.5 kB / 349.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006409/0.4403, allocations: 120.3 kB / 349.9 MB, free: 1.855 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.441, allocations: 24.45 kB / 349.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.4437, allocations: 0.6907 MB / 350.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000874/0.4446, allocations: 0.8069 MB / 351.4 MB, free: 336 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.4449, allocations: 31.11 kB / 351.5 MB, free: 308 kB / 282.7 MB Notification: Performance of SimCode: time 2.703e-06/0.4449, allocations: 0 / 351.5 MB, free: 308 kB / 282.7 MB Notification: Performance of Templates: time 0.01814/0.4631, allocations: 5.022 MB / 356.5 MB, free: 11.32 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.useHeatPort,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.useHeatPort,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.useHeatPort,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