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.001069/0.001068, allocations: 105.7 kB / 16.62 MB, free: 6.812 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.00109/0.00109, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.411/1.411, allocations: 222.9 MB / 241.2 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 51.11 kB / 300.1 MB, free: 6.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1343, allocations: 49.45 MB / 349.6 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.00529/0.1397, allocations: 3.263 MB / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.1424, allocations: 0.9624 MB / 353.8 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007117/0.1431, allocations: 8 kB / 353.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004175/0.1436, allocations: 43.67 kB / 353.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009927/0.1447, allocations: 103.2 kB / 354 MB, free: 396 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005764/0.1453, allocations: 127.8 kB / 354.1 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006305/0.1459, allocations: 485.8 kB / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.1462, allocations: 139.1 kB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002722/0.1465, allocations: 187.3 kB / 354.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.1467, allocations: 207.1 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.1468, allocations: 40 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.147, allocations: 71.97 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.936e-05/0.1471, allocations: 95.62 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.1473, allocations: 215 kB / 355.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.1478, allocations: 498.5 kB / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1478, allocations: 0 / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1479, allocations: 0 / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.1479, allocations: 0 / 356 MB, free: 14.36 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.001383/0.1493, allocations: 0.7403 MB / 356.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.1493, allocations: 8.031 kB / 356.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.1494, allocations: 44.47 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.1498, allocations: 307.3 kB / 357.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.1499, allocations: 29.03 kB / 357.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.911e-05/0.1499, allocations: 32.38 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006613/0.1506, allocations: 357.2 kB / 357.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1506, allocations: 0 / 357.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.1507, allocations: 12 kB / 357.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1507, allocations: 8 kB / 357.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.1512, allocations: 238.5 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.1532, allocations: 1.166 MB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006666/0.1539, allocations: 283.5 kB / 359.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.1544, allocations: 212.6 kB / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000879/0.1552, allocations: 1.113 MB / 360.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.1553, allocations: 34.8 kB / 360.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.737e-06/0.1553, allocations: 0 / 360.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001394/0.1567, allocations: 0.5442 MB / 361.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.1568, allocations: 81.11 kB / 361.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003687/0.1571, allocations: 332.5 kB / 361.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.088e-05/0.1572, allocations: 33.7 kB / 361.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.1574, allocations: 208.2 kB / 361.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.415e-05/0.1575, allocations: 102.5 kB / 361.8 MB, free: 8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00022/0.1578, allocations: 69.98 kB / 361.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1579, allocations: 354.7 kB / 362.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.1582, allocations: 100.7 kB / 362.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.1585, allocations: 185.8 kB / 362.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005476/0.159, allocations: 292 kB / 362.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.159, allocations: 0 / 362.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008356/0.1599, allocations: 429.4 kB / 363.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1599, allocations: 4 kB / 363.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1599, allocations: 4 kB / 363.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002824/0.1602, allocations: 68.81 kB / 363.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.1606, allocations: 79.89 kB / 363.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.1626, allocations: 1.959 MB / 365.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.1629, allocations: 47.52 kB / 365.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.1629, allocations: 16 kB / 365.4 MB, free: 4.203 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.0001831/0.1631, allocations: 153.7 kB / 365.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.1632, allocations: 35.53 kB / 365.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007358/0.164, allocations: 334.4 kB / 365.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.164, allocations: 0 / 365.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.164, allocations: 7.938 kB / 365.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.164, allocations: 3.984 kB / 365.9 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000497/0.1645, allocations: 389.2 kB / 366.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1645, allocations: 4 kB / 366.3 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.1649, allocations: 55.89 kB / 366.3 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002479/0.1651, allocations: 64.81 kB / 366.4 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.1652, allocations: 8 kB / 366.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004665/0.1656, allocations: 0.603 MB / 367 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1657, allocations: 0 / 367 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009246/0.1666, allocations: 0.5209 MB / 367.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.534e-05/0.1667, allocations: 112.7 kB / 367.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.925e-05/0.1667, allocations: 4 kB / 367.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.167, allocations: 24.05 kB / 367.7 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.1671, allocations: 19.97 kB / 367.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.1671, allocations: 8 kB / 367.7 MB, free: 1.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.1674, allocations: 235.1 kB / 367.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1674, allocations: 0 / 367.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004698/0.1679, allocations: 107.8 kB / 368 MB, free: 1.406 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.0002565/0.1681, allocations: 143 kB / 368.2 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008958/0.169, allocations: 426.4 kB / 368.6 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.169, allocations: 4.5 kB / 368.6 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000364/0.1694, allocations: 147.8 kB / 368.7 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.1698, allocations: 45.45 kB / 368.8 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1683/0.3382, allocations: 0.9786 MB / 369.8 MB, free: 25.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3384, allocations: 0.7899 MB / 370.6 MB, free: 24.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000216/0.3387, allocations: 37.88 kB / 370.6 MB, free: 24.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.47e-05/0.3387, allocations: 29.62 kB / 370.6 MB, free: 24.98 MB / 302.1 MB Notification: Performance of SimCode: time 5.1e-07/0.3388, allocations: 1.125 kB / 370.6 MB, free: 24.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01036/0.3491, allocations: 3.918 MB / 374.5 MB, free: 24.86 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