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.001437/0.001437, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001411/0.001412, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.574/1.574, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.0002847, allocations: 8 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.104, allocations: 50.41 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.003167/0.1072, allocations: 2.873 MB / 354.7 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.109, allocations: 0.9548 MB / 355.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.1092, allocations: 4 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.1094, allocations: 43.61 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.1098, allocations: 99.22 kB / 355.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.1101, allocations: 135.7 kB / 355.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004297/0.1105, allocations: 461.9 kB / 356.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.1108, allocations: 115.7 kB / 356.5 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.111, allocations: 159.4 kB / 356.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/0.1113, allocations: 195.1 kB / 356.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/0.1113, allocations: 20 kB / 356.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1115, allocations: 51.97 kB / 356.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.665e-05/0.1115, allocations: 71.67 kB / 357 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001848/0.1117, allocations: 220.6 kB / 357.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.1122, allocations: 474.4 kB / 357.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1122, allocations: 0 / 357.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1122, allocations: 0 / 357.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1122, allocations: 0 / 357.7 MB, free: 13.82 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.001267/0.1135, allocations: 0.6742 MB / 358.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.1136, allocations: 12.03 kB / 358.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.992e-05/0.1137, allocations: 44.38 kB / 358.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.1141, allocations: 307.3 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.1141, allocations: 29.03 kB / 358.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.686e-05/0.1142, allocations: 32.38 kB / 358.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000669/0.1148, allocations: 365.3 kB / 359.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1149, allocations: 0 / 359.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.1149, allocations: 12 kB / 359.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1149, allocations: 8 kB / 359.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004974/0.1154, allocations: 254.4 kB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.1175, allocations: 1.174 MB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/0.1182, allocations: 295.5 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004827/0.1187, allocations: 218.2 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008081/0.1195, allocations: 1.121 MB / 362.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.1195, allocations: 34.8 kB / 362.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.804e-06/0.1195, allocations: 4 kB / 362.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.00144/0.121, allocations: 0.5523 MB / 362.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1211, allocations: 77.11 kB / 362.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.1214, allocations: 348.3 kB / 363.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.1215, allocations: 29.7 kB / 363.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.1216, allocations: 212.1 kB / 363.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.58e-05/0.1217, allocations: 94.56 kB / 363.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.1218, allocations: 41.69 kB / 363.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.122, allocations: 350.7 kB / 363.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.1222, allocations: 104.7 kB / 364 MB, free: 6.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/0.1225, allocations: 197.8 kB / 364.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.123, allocations: 300 kB / 364.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.123, allocations: 0 / 364.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008096/0.1238, allocations: 445.4 kB / 364.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.1239, allocations: 11.94 kB / 364.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1239, allocations: 4 kB / 364.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.1242, allocations: 68.75 kB / 365 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003174/0.1245, allocations: 79.89 kB / 365.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001843/0.1264, allocations: 1.764 MB / 366.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.1267, allocations: 39.67 kB / 366.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.1267, allocations: 16 kB / 366.9 MB, free: 3.852 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.0001868/0.1269, allocations: 153.8 kB / 367 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.701e-05/0.127, allocations: 43.47 kB / 367.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007128/0.1277, allocations: 346.2 kB / 367.4 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1277, allocations: 4 kB / 367.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.1277, allocations: 0 / 367.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.1277, allocations: 7.984 kB / 367.4 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004757/0.1282, allocations: 401.2 kB / 367.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1282, allocations: 0 / 367.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.1285, allocations: 59.95 kB / 367.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/0.1288, allocations: 56.81 kB / 367.9 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.1288, allocations: 16 kB / 368 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003862/0.1292, allocations: 0.6031 MB / 368.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1292, allocations: 0 / 368.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008915/0.1301, allocations: 0.5452 MB / 369.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.163e-05/0.1302, allocations: 112.7 kB / 369.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.1303, allocations: 8 kB / 369.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.1305, allocations: 27.98 kB / 369.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.029e-05/0.1306, allocations: 15.97 kB / 369.3 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.1306, allocations: 8 kB / 369.3 MB, free: 1.332 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.1309, allocations: 235 kB / 369.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1309, allocations: 0 / 369.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004485/0.1313, allocations: 111.8 kB / 369.6 MB, free: 0.9922 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.0002352/0.1316, allocations: 139 kB / 369.8 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008496/0.1324, allocations: 430.5 kB / 370.2 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1324, allocations: 0 / 370.2 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.1328, allocations: 151.8 kB / 370.3 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.1333, allocations: 47.11 kB / 370.4 MB, free: 224 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1728/0.3061, allocations: 1.083 MB / 371.4 MB, free: 24.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.3065, allocations: 0.7903 MB / 372.2 MB, free: 23.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002376/0.3067, allocations: 34.67 kB / 372.3 MB, free: 23.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.501e-05/0.3068, allocations: 27.19 kB / 372.3 MB, free: 23.72 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3068, allocations: 1.469 kB / 372.3 MB, free: 23.72 MB / 302.1 MB Notification: Performance of Templates: time 0.0105/0.3173, allocations: 3.697 MB / 376 MB, free: 23.5 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