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.001293/0.001294, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.62 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1358, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005199/0.141, allocations: 3.238 MB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002204/0.1432, allocations: 1.021 MB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003678/0.1437, allocations: 8 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.144, allocations: 59.36 kB / 361.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005708/0.1445, allocations: 127 kB / 361.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005034/0.1451, allocations: 151.6 kB / 362.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006477/0.1457, allocations: 486 kB / 362.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.146, allocations: 131.1 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004989/0.1465, allocations: 199.3 kB / 362.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004965/0.147, allocations: 211.1 kB / 363.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.1472, allocations: 40 kB / 363.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.1475, allocations: 79.95 kB / 363.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.1476, allocations: 95.62 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003211/0.148, allocations: 215 kB / 363.5 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008006/0.1488, allocations: 498.5 kB / 364 MB, free: 7.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.1488, allocations: 11.94 kB / 364 MB, free: 7.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1488, allocations: 0 / 364 MB, free: 7.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.1488, allocations: 0 / 364 MB, free: 7.559 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.001676/0.1505, allocations: 0.7364 MB / 364.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.1506, allocations: 8.031 kB / 364.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.1509, allocations: 52.47 kB / 364.8 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/0.1515, allocations: 315.3 kB / 365.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.375e-05/0.1516, allocations: 25.03 kB / 365.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.1517, allocations: 40.28 kB / 365.2 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007443/0.1524, allocations: 353.3 kB / 365.5 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1524, allocations: 0 / 365.5 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.1525, allocations: 8 kB / 365.5 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1525, allocations: 8 kB / 365.5 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005286/0.153, allocations: 238.5 kB / 365.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.1555, allocations: 1.178 MB / 366.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007452/0.1562, allocations: 292.1 kB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.1567, allocations: 209.2 kB / 367.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009/0.1577, allocations: 1.113 MB / 368.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.1577, allocations: 42.78 kB / 368.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.1577, allocations: 0 / 368.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001439/0.1592, allocations: 0.5294 MB / 369.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.1592, allocations: 81.11 kB / 369.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.1596, allocations: 345.5 kB / 369.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.1597, allocations: 29.7 kB / 369.5 MB, free: 1.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.1598, allocations: 212.1 kB / 369.8 MB, free: 1.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.282e-05/0.1599, allocations: 106.5 kB / 369.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.1601, allocations: 66.08 kB / 369.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1602, allocations: 354.7 kB / 370.3 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.1604, allocations: 104.7 kB / 370.4 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.1607, allocations: 174 kB / 370.5 MB, free: 452 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005546/0.1613, allocations: 295.3 kB / 370.8 MB, free: 128 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.1613, allocations: 0 / 370.8 MB, free: 128 kB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.227/0.3883, allocations: 430.2 kB / 371.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.3884, allocations: 5.906 kB / 371.3 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3884, allocations: 1.531 kB / 371.3 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.3887, allocations: 64.56 kB / 371.3 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003521/0.389, allocations: 84.33 kB / 371.4 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001632/0.3907, allocations: 1.948 MB / 373.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.391, allocations: 40.25 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.391, allocations: 15.09 kB / 373.4 MB, free: 19.17 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.0001534/0.3911, allocations: 157.4 kB / 373.6 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/0.3912, allocations: 34.31 kB / 373.6 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007403/0.392, allocations: 344.4 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.392, allocations: 3.5 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.392, allocations: 5 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.392, allocations: 1.594 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004575/0.3925, allocations: 388.2 kB / 374.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3925, allocations: 0 / 374.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003398/0.3928, allocations: 69.92 kB / 374.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002019/0.393, allocations: 54.34 kB / 374.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.3931, allocations: 8.375 kB / 374.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003285/0.3934, allocations: 0.623 MB / 375.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3934, allocations: 1.031 kB / 375.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000889/0.3943, allocations: 0.5159 MB / 375.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.434e-05/0.3944, allocations: 110.3 kB / 375.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.973e-05/0.3945, allocations: 7.25 kB / 375.7 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002642/0.3947, allocations: 23.48 kB / 375.7 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.359e-05/0.3948, allocations: 14.3 kB / 375.7 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.3948, allocations: 11.44 kB / 375.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003105/0.3951, allocations: 238.6 kB / 376 MB, free: 17.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3952, allocations: 0 / 376 MB, free: 17.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005102/0.3957, allocations: 115.3 kB / 376.1 MB, free: 17.44 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.0002251/0.3959, allocations: 123.8 kB / 376.2 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008798/0.3968, allocations: 436.4 kB / 376.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3968, allocations: 4.422 kB / 376.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.3972, allocations: 137 kB / 376.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.3976, allocations: 39.64 kB / 376.8 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.399, allocations: 0.8699 MB / 377.7 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.3994, allocations: 0.7926 MB / 378.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.3996, allocations: 38.52 kB / 378.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.775e-05/0.3996, allocations: 27.08 kB / 378.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3997, allocations: 4 kB / 378.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of Templates: time 0.009571/0.4092, allocations: 3.959 MB / 382.5 MB, free: 15.55 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