Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") 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_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 98.89 kB / 16.5 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 50.89 kB / 300 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1294, allocations: 49.44 MB / 349.4 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004884/0.1343, allocations: 3.263 MB / 352.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.1363, allocations: 0.9663 MB / 353.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.1366, allocations: 4 kB / 353.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002323/0.1368, allocations: 43.67 kB / 353.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003996/0.1373, allocations: 109.3 kB / 353.8 MB, free: 432 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.1376, allocations: 127.8 kB / 353.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.1381, allocations: 465.8 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.1383, allocations: 111.8 kB / 354.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.1386, allocations: 175.3 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.1388, allocations: 195.1 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.1389, allocations: 28 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.1391, allocations: 59.91 kB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.068e-05/0.1391, allocations: 83.61 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.1393, allocations: 199 kB / 355.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004967/0.1398, allocations: 482.5 kB / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1399, allocations: 0 / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1399, allocations: 0 / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.1399, allocations: 0 / 355.7 MB, free: 14.53 MB / 302.1 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.00142/0.1413, allocations: 0.7403 MB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1413, allocations: 12.03 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.264e-05/0.1414, allocations: 44.47 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.1418, allocations: 303.3 kB / 356.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.1418, allocations: 29.03 kB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/0.1419, allocations: 32.38 kB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006603/0.1426, allocations: 353.3 kB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1426, allocations: 4 kB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.1426, allocations: 12 kB / 357.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1427, allocations: 8 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004849/0.1431, allocations: 234.5 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.1451, allocations: 1.166 MB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006838/0.1458, allocations: 287.6 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005047/0.1463, allocations: 209.2 kB / 359.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009925/0.1473, allocations: 1.117 MB / 360.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.1474, allocations: 38.72 kB / 360.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.364e-06/0.1474, allocations: 0 / 360.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001528/0.149, allocations: 0.5333 MB / 360.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.149, allocations: 77.11 kB / 360.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000383/0.1494, allocations: 336.5 kB / 361.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.1495, allocations: 29.7 kB / 361.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.1496, allocations: 216.1 kB / 361.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.327e-05/0.1497, allocations: 102.5 kB / 361.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.1499, allocations: 69.98 kB / 361.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.15, allocations: 350.7 kB / 361.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.1503, allocations: 104.7 kB / 362 MB, free: 7.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/0.1506, allocations: 189.7 kB / 362.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005193/0.1511, allocations: 288 kB / 362.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1511, allocations: 0 / 362.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008564/0.152, allocations: 425.2 kB / 362.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.152, allocations: 4 kB / 362.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.152, allocations: 4 kB / 362.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.1523, allocations: 73 kB / 363 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.1527, allocations: 79.89 kB / 363 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.1545, allocations: 1.764 MB / 364.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.1547, allocations: 35.59 kB / 364.8 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.1548, allocations: 24.05 kB / 364.9 MB, free: 4.578 MB / 302.1 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 (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001732/0.155, allocations: 149.7 kB / 365 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-05/0.155, allocations: 43.41 kB / 365.1 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006966/0.1557, allocations: 330.3 kB / 365.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1558, allocations: 8 kB / 365.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1558, allocations: 0 / 365.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1558, allocations: 0 / 365.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005416/0.1563, allocations: 397.2 kB / 365.8 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.1563, allocations: 0 / 365.8 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.1567, allocations: 59.89 kB / 365.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.1569, allocations: 56.81 kB / 365.9 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.157, allocations: 15.98 kB / 365.9 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004665/0.1574, allocations: 0.5992 MB / 366.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1575, allocations: 0 / 366.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008922/0.1584, allocations: 0.5206 MB / 367 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.088e-05/0.1585, allocations: 112.6 kB / 367.1 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.1585, allocations: 8.172 kB / 367.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.1588, allocations: 23.97 kB / 367.2 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.925e-05/0.1588, allocations: 15.92 kB / 367.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.1589, allocations: 15.98 kB / 367.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002233/0.1591, allocations: 235.1 kB / 367.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1591, allocations: 0 / 367.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004827/0.1596, allocations: 107.8 kB / 367.5 MB, free: 1.773 MB / 302.1 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002166/0.1598, allocations: 139.1 kB / 367.7 MB, free: 1.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008436/0.1607, allocations: 419 kB / 368.1 MB, free: 1.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.1607, allocations: 4 kB / 368.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003546/0.161, allocations: 139.8 kB / 368.2 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.1615, allocations: 45.86 kB / 368.3 MB, free: 1.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.163, allocations: 0.9933 MB / 369.3 MB, free: 0 / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.18/0.3429, allocations: 0.7867 MB / 370 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.3433, allocations: 36.42 kB / 370.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3434, allocations: 28.31 kB / 370.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3434, allocations: 0 / 370.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01111/0.3545, allocations: 3.747 MB / 373.9 MB, free: 24.9 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.f,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time