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.001091/0.001091, allocations: 99.78 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002591, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1172, allocations: 51.5 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.003273/0.1205, allocations: 2.6 MB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1223, allocations: 0.9671 MB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002672/0.1226, allocations: 4 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.32e-05/0.1227, allocations: 43.66 kB / 361.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.1231, allocations: 135.6 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.1234, allocations: 111.8 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.1238, allocations: 319.3 kB / 362.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.124, allocations: 106.5 kB / 362.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.1242, allocations: 159.5 kB / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.1245, allocations: 183.2 kB / 362.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.046e-05/0.1245, allocations: 20 kB / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.1247, allocations: 59.91 kB / 362.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.511e-05/0.1247, allocations: 75.67 kB / 362.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.111e-05/0.1248, allocations: 97.52 kB / 362.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003547/0.1252, allocations: 363.2 kB / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1252, allocations: 0 / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1252, allocations: 0 / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.1252, allocations: 0 / 363.3 MB, free: 8.688 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.001202/0.1264, allocations: 0.6852 MB / 364 MB, free: 7.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1265, allocations: 12.03 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.1267, allocations: 59.42 kB / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.127, allocations: 290.3 kB / 364.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.1271, allocations: 24.66 kB / 364.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.679e-05/0.1271, allocations: 35.91 kB / 364.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/0.1277, allocations: 357 kB / 364.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1278, allocations: 0 / 364.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.1278, allocations: 15.94 kB / 364.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.1278, allocations: 11.98 kB / 364.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004831/0.1283, allocations: 238.5 kB / 365 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.1302, allocations: 1.186 MB / 366.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006307/0.1308, allocations: 295.7 kB / 366.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008084/0.1316, allocations: 1.129 MB / 367.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.1317, allocations: 34.8 kB / 367.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.1317, allocations: 0 / 367.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001165/0.1328, allocations: 0.496 MB / 368.1 MB, free: 3.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.1329, allocations: 81.11 kB / 368.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.1333, allocations: 332.5 kB / 368.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.1333, allocations: 29.7 kB / 368.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.1335, allocations: 220.1 kB / 368.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.1336, allocations: 98.56 kB / 368.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/0.1336, allocations: 11.94 kB / 368.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.1338, allocations: 342.8 kB / 369.2 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.1341, allocations: 116.6 kB / 369.3 MB, free: 2.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.1344, allocations: 193.5 kB / 369.5 MB, free: 1.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.1347, allocations: 128 kB / 369.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1347, allocations: 0 / 369.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006822/0.1354, allocations: 381.4 kB / 370 MB, free: 1.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1354, allocations: 4 kB / 370 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1354, allocations: 7.938 kB / 370 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1354, allocations: 4 kB / 370 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.1358, allocations: 99.84 kB / 370.1 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1358, allocations: 4 kB / 370.1 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.1361, allocations: 51.58 kB / 370.2 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.1361, allocations: 12 kB / 370.2 MB, free: 1.211 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 (45): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001776/0.1363, allocations: 145.8 kB / 370.3 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-05/0.1364, allocations: 43.52 kB / 370.4 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006877/0.1371, allocations: 331.2 kB / 370.7 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.1371, allocations: 0 / 370.7 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.1371, allocations: 4 kB / 370.7 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1371, allocations: 7.922 kB / 370.7 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004653/0.1376, allocations: 385.2 kB / 371.1 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1376, allocations: 4 kB / 371.1 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/0.1379, allocations: 67.95 kB / 371.2 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002141/0.1382, allocations: 44.78 kB / 371.2 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.1382, allocations: 4 kB / 371.2 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2171/0.3553, allocations: 0.562 MB / 371.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3554, allocations: 0.6562 kB / 371.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.3567, allocations: 0.5304 MB / 372.3 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.3568, allocations: 114.3 kB / 372.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.3569, allocations: 5.906 kB / 372.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.3572, allocations: 28.44 kB / 372.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/0.3572, allocations: 24.45 kB / 372.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.3573, allocations: 10.91 kB / 372.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003188/0.3576, allocations: 231.8 kB / 372.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3576, allocations: 0 / 372.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005028/0.3581, allocations: 98.88 kB / 372.8 MB, free: 18.91 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 (23): * Single equations (assignments): 22 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002236/0.3583, allocations: 127.8 kB / 372.9 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006668/0.359, allocations: 277.7 kB / 373.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.359, allocations: 0 / 373.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.3594, allocations: 140.5 kB / 373.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.3597, allocations: 35.69 kB / 373.4 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.3613, allocations: 1.047 MB / 374.4 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.3617, allocations: 0.8006 MB / 375.2 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.3619, allocations: 42.67 kB / 375.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.111e-05/0.3619, allocations: 28.17 kB / 375.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.362, allocations: 4.875 kB / 375.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of Templates: time 0.009241/0.3712, allocations: 3.2 MB / 378.5 MB, free: 17.3 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","../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.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time