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.001292/0.001292, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.001479, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.362, allocations: 50.54 MB / 409.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004421/0.3665, allocations: 3.244 MB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.369, allocations: 1.017 MB / 413.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003404/0.3694, allocations: 4 kB / 413.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.3698, allocations: 67.36 kB / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006692/0.3705, allocations: 126.6 kB / 413.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006821/0.3712, allocations: 159.6 kB / 413.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006578/0.3719, allocations: 482 kB / 414.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.3722, allocations: 143.1 kB / 414.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003537/0.3726, allocations: 187.3 kB / 414.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.3729, allocations: 211.1 kB / 414.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.041e-05/0.3729, allocations: 40 kB / 414.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.3732, allocations: 75.97 kB / 415 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.084e-05/0.3733, allocations: 103.6 kB / 415.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.3735, allocations: 203 kB / 415.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007205/0.3742, allocations: 0.5056 MB / 415.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.3742, allocations: 4 kB / 415.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3742, allocations: 0 / 415.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3743, allocations: 0 / 415.8 MB, free: 11.05 MB / 334.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.001508/0.3758, allocations: 0.7438 MB / 416.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.3758, allocations: 12.03 kB / 416.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.3761, allocations: 56.64 kB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.3765, allocations: 315.5 kB / 416.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.3766, allocations: 29.03 kB / 416.9 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.3766, allocations: 36.38 kB / 417 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006373/0.3773, allocations: 353.3 kB / 417.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.3773, allocations: 0 / 417.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.3774, allocations: 16 kB / 417.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3774, allocations: 15.92 kB / 417.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005392/0.3779, allocations: 234.5 kB / 417.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.3801, allocations: 1.167 MB / 418.7 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000671/0.3808, allocations: 291.5 kB / 419 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005051/0.3813, allocations: 205.2 kB / 419.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000869/0.3822, allocations: 1.121 MB / 420.3 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.3823, allocations: 34.8 kB / 420.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.3823, allocations: 0 / 420.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001444/0.3837, allocations: 0.5367 MB / 420.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.3838, allocations: 81.11 kB / 421 MB, free: 5.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.3842, allocations: 337.7 kB / 421.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.3843, allocations: 33.7 kB / 421.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002011/0.3845, allocations: 216.5 kB / 421.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.149e-05/0.3846, allocations: 107.1 kB / 421.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.3847, allocations: 74.02 kB / 421.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3849, allocations: 350.7 kB / 422.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.3851, allocations: 100.7 kB / 422.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.3854, allocations: 186 kB / 422.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005414/0.386, allocations: 280.2 kB / 422.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.386, allocations: 0 / 422.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008641/0.3869, allocations: 445 kB / 423.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3869, allocations: 4 kB / 423.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.3869, allocations: 8.25 kB / 423.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003211/0.3873, allocations: 64.81 kB / 423.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.3876, allocations: 75.89 kB / 423.2 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.3895, allocations: 1.955 MB / 425.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.3898, allocations: 39.73 kB / 425.2 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.3899, allocations: 12 kB / 425.2 MB, free: 0.8555 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.0002706/0.3902, allocations: 165 kB / 425.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.341e-05/0.3903, allocations: 39.75 kB / 425.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007949/0.3911, allocations: 330.4 kB / 425.8 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3911, allocations: 4 kB / 425.8 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3911, allocations: 3.938 kB / 425.8 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3911, allocations: 0 / 425.8 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000572/0.3917, allocations: 401.2 kB / 426.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3917, allocations: 0 / 426.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.392, allocations: 51.95 kB / 426.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002524/0.3923, allocations: 68.75 kB / 426.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.3923, allocations: 12 kB / 426.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004924/0.3928, allocations: 0.6032 MB / 426.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3928, allocations: 0 / 426.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009435/0.3938, allocations: 0.5367 MB / 427.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.3939, allocations: 108.9 kB / 427.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.222e-05/0.394, allocations: 8 kB / 427.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.3943, allocations: 23.98 kB / 427.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/0.3943, allocations: 11.97 kB / 427.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.3944, allocations: 12 kB / 427.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.3946, allocations: 239.2 kB / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3947, allocations: 0 / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005621/0.3952, allocations: 115.8 kB / 427.9 MB, free: 14.03 MB / 350.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.0002864/0.3955, allocations: 127.2 kB / 428.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3966, allocations: 426.3 kB / 428.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3967, allocations: 0 / 428.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003625/0.397, allocations: 140.4 kB / 428.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.3975, allocations: 44.22 kB / 428.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.399, allocations: 0.8801 MB / 429.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.3993, allocations: 0.7912 MB / 430.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001499/0.3995, allocations: 38.95 kB / 430.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.925e-05/0.3996, allocations: 27.44 kB / 430.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3996, allocations: 0 / 430.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of Templates: time 0.008769/0.4084, allocations: 4.015 MB / 434.4 MB, free: 7.504 MB / 350.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