Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001435/0.001435, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.19 kB / 306.3 MB, free: 1.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.124, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004848/0.129, allocations: 3.286 MB / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.1313, allocations: 1.025 MB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1316, allocations: 4 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002609/0.132, allocations: 47.61 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000515/0.1325, allocations: 103.2 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.133, allocations: 135.7 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.1335, allocations: 458 kB / 361.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000289/0.1338, allocations: 115.8 kB / 361.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.1341, allocations: 179.3 kB / 362.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.1344, allocations: 203.1 kB / 362.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.1344, allocations: 28 kB / 362.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.1346, allocations: 59.97 kB / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.1347, allocations: 83.67 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.1349, allocations: 198.9 kB / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005159/0.1354, allocations: 490.5 kB / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1354, allocations: 0 / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1354, allocations: 0 / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1354, allocations: 0 / 363.2 MB, free: 8.109 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.001505/0.1369, allocations: 0.7364 MB / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.137, allocations: 8.031 kB / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.1372, allocations: 52.45 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.1376, allocations: 315.3 kB / 364.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.1377, allocations: 25.03 kB / 364.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/0.1377, allocations: 40.27 kB / 364.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006905/0.1384, allocations: 349.3 kB / 364.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.1385, allocations: 0 / 364.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.1385, allocations: 16 kB / 364.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1385, allocations: 8 kB / 364.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004887/0.139, allocations: 242.4 kB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.1411, allocations: 1.182 MB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/0.1418, allocations: 280.3 kB / 366.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00048/0.1423, allocations: 209.2 kB / 366.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009524/0.1433, allocations: 1.113 MB / 367.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.1433, allocations: 38.8 kB / 367.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.005e-06/0.1433, allocations: 0 / 367.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001522/0.1449, allocations: 0.5306 MB / 368.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.1449, allocations: 81.11 kB / 368.3 MB, free: 2.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004183/0.1454, allocations: 345.5 kB / 368.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.1454, allocations: 37.64 kB / 368.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.1456, allocations: 216.1 kB / 368.9 MB, free: 1.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.596e-05/0.1457, allocations: 102.5 kB / 369 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.1458, allocations: 66.08 kB / 369.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.146, allocations: 350.7 kB / 369.4 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.1463, allocations: 104.7 kB / 369.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.1466, allocations: 182 kB / 369.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005081/0.1471, allocations: 295.3 kB / 370 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1471, allocations: 0 / 370 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008529/0.1479, allocations: 430 kB / 370.4 MB, free: 248 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.148, allocations: 8 kB / 370.4 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.148, allocations: 0 / 370.4 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002951/0.1483, allocations: 68.75 kB / 370.5 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.1487, allocations: 79.89 kB / 370.6 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2315/0.3801, allocations: 1.752 MB / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/0.3806, allocations: 47.48 kB / 372.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.3807, allocations: 15.73 kB / 372.4 MB, free: 19.52 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.0002353/0.3809, allocations: 152.6 kB / 372.5 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-05/0.381, allocations: 35.06 kB / 372.6 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008469/0.3819, allocations: 336.7 kB / 372.9 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3819, allocations: 3.922 kB / 372.9 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.3819, allocations: 0 / 372.9 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3819, allocations: 3.062 kB / 372.9 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005729/0.3825, allocations: 392.1 kB / 373.3 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3825, allocations: 0.5938 kB / 373.3 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/0.3829, allocations: 62.53 kB / 373.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.3831, allocations: 64.88 kB / 373.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.3832, allocations: 8.781 kB / 373.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003704/0.3836, allocations: 0.605 MB / 374 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3836, allocations: 1.062 kB / 374 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3846, allocations: 0.5183 MB / 374.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.94e-05/0.3847, allocations: 115.2 kB / 374.7 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.3848, allocations: 6.25 kB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.385, allocations: 19.83 kB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.516e-05/0.3851, allocations: 18.97 kB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.3851, allocations: 15.84 kB / 374.7 MB, free: 18.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002741/0.3854, allocations: 236.6 kB / 375 MB, free: 17.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3854, allocations: 0 / 375 MB, free: 17.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000574/0.386, allocations: 119.5 kB / 375.1 MB, free: 17.86 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.000269/0.3863, allocations: 130.4 kB / 375.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.3873, allocations: 419.3 kB / 375.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.3873, allocations: 1.156 kB / 375.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.3877, allocations: 141.4 kB / 375.8 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.3883, allocations: 43.08 kB / 375.8 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.3896, allocations: 0.9866 MB / 376.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.3899, allocations: 0.7913 MB / 377.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.3901, allocations: 42.23 kB / 377.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.08e-05/0.3902, allocations: 32.03 kB / 377.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3902, allocations: 0 / 377.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of Templates: time 0.01011/0.4003, allocations: 3.745 MB / 381.4 MB, free: 15.88 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,sineVoltage.signalSource.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time