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.001239/0.001239, allocations: 107.7 kB / 17.06 MB, free: 5.992 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.002162/0.002162, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.506/1.506, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 43.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3683, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005048/0.3734, allocations: 3.227 MB / 404 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.3754, allocations: 0.9661 MB / 404.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.3756, allocations: 4 kB / 404.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.3758, allocations: 55.42 kB / 405 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003916/0.3762, allocations: 129 kB / 405.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.3766, allocations: 147.7 kB / 405.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004904/0.3771, allocations: 493.9 kB / 405.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.3774, allocations: 127.1 kB / 405.9 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.3776, allocations: 179.4 kB / 406 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.3779, allocations: 207.1 kB / 406.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.378, allocations: 44 kB / 406.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.3782, allocations: 71.97 kB / 406.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.06e-05/0.3783, allocations: 99.61 kB / 406.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.3785, allocations: 211 kB / 406.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006484/0.3792, allocations: 0.49 MB / 407.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3792, allocations: 4 kB / 407.1 MB, free: 2.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3792, allocations: 0 / 407.1 MB, free: 2.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.3792, allocations: 0 / 407.1 MB, free: 2.414 MB / 318.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.00143/0.3807, allocations: 0.7515 MB / 407.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3807, allocations: 8.031 kB / 407.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.3808, allocations: 56.66 kB / 408 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.3814, allocations: 311.5 kB / 408.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.3814, allocations: 29.02 kB / 408.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-05/0.3815, allocations: 36.38 kB / 408.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/0.3822, allocations: 349.3 kB / 408.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3822, allocations: 0 / 408.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.3823, allocations: 16 kB / 408.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3823, allocations: 8 kB / 408.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005281/0.3828, allocations: 234.5 kB / 408.9 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.3849, allocations: 1.174 MB / 410.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007099/0.3856, allocations: 271.6 kB / 410.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005488/0.3862, allocations: 221.2 kB / 410.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/0.3872, allocations: 1.121 MB / 411.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.3872, allocations: 34.8 kB / 411.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.3872, allocations: 4 kB / 411.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.00148/0.3887, allocations: 0.5335 MB / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.592e-05/0.3888, allocations: 81.11 kB / 412.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.3892, allocations: 328.5 kB / 412.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.3893, allocations: 33.7 kB / 412.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.3894, allocations: 216.5 kB / 412.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.3896, allocations: 107.1 kB / 413 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.3897, allocations: 73.97 kB / 413.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3899, allocations: 350.7 kB / 413.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.3901, allocations: 108.7 kB / 413.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.3904, allocations: 181.7 kB / 413.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005441/0.391, allocations: 300.3 kB / 414 MB, free: 10.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.391, allocations: 0 / 414 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008165/0.3918, allocations: 425.9 kB / 414.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3918, allocations: 11.98 kB / 414.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.3919, allocations: 3.984 kB / 414.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000273/0.3921, allocations: 60.83 kB / 414.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003442/0.3925, allocations: 83.89 kB / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.3947, allocations: 1.951 MB / 416.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.395, allocations: 51.62 kB / 416.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.395, allocations: 12 kB / 416.6 MB, free: 8.207 MB / 334.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.0002099/0.3952, allocations: 153.8 kB / 416.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.3953, allocations: 35.77 kB / 416.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007392/0.3961, allocations: 330.3 kB / 417.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3961, allocations: 7.984 kB / 417.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3961, allocations: 3.938 kB / 417.1 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3961, allocations: 192 / 417.1 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004709/0.3966, allocations: 393.3 kB / 417.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3966, allocations: 7.938 kB / 417.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.3969, allocations: 59.89 kB / 417.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002186/0.3972, allocations: 60.81 kB / 417.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.3972, allocations: 8 kB / 417.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004482/0.3976, allocations: 0.6109 MB / 418.2 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3977, allocations: 3.938 kB / 418.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009674/0.3986, allocations: 0.5134 MB / 418.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.3987, allocations: 116.9 kB / 418.9 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.918e-05/0.3988, allocations: 8 kB / 418.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.3991, allocations: 19.98 kB / 418.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.3991, allocations: 23.91 kB / 418.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.3992, allocations: 4 kB / 418.9 MB, free: 5.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002541/0.3994, allocations: 239 kB / 419.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3994, allocations: 0 / 419.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.3999, allocations: 111.8 kB / 419.3 MB, free: 5.395 MB / 334.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.0002309/0.4001, allocations: 127 kB / 419.4 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009143/0.4011, allocations: 426.8 kB / 419.8 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.4011, allocations: 4.062 kB / 419.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.4015, allocations: 143.8 kB / 420 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.4018, allocations: 37.42 kB / 420 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.4033, allocations: 0.8841 MB / 420.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.4037, allocations: 0.7912 MB / 421.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.4038, allocations: 34.95 kB / 421.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.4039, allocations: 31.42 kB / 421.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4039, allocations: 4 kB / 421.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of Templates: time 0.0088/0.4127, allocations: 4.001 MB / 425.7 MB, free: 14.87 MB / 350.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