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.001266/0.001266, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 63.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3631, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004448/0.3676, allocations: 3.233 MB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.3697, allocations: 1.017 MB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00038/0.3702, allocations: 4 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002649/0.3705, allocations: 67.36 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005709/0.371, allocations: 134.4 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.3715, allocations: 155.6 kB / 413.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006406/0.3722, allocations: 485.9 kB / 414.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.3725, allocations: 143.1 kB / 414.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003669/0.3728, allocations: 187.3 kB / 414.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.3732, allocations: 207.1 kB / 414.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-05/0.3733, allocations: 40 kB / 414.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.3735, allocations: 79.95 kB / 415 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.139e-05/0.3736, allocations: 99.61 kB / 415.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002195/0.3738, allocations: 207 kB / 415.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005893/0.3744, allocations: 0.5033 MB / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3744, allocations: 0 / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3744, allocations: 0 / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.3744, allocations: 4 kB / 415.8 MB, free: 11.04 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.001512/0.376, allocations: 0.7325 MB / 416.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.376, allocations: 15.97 kB / 416.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.3763, allocations: 60.34 kB / 416.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005037/0.3768, allocations: 311.3 kB / 416.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.3768, allocations: 29.03 kB / 416.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.318e-05/0.3769, allocations: 32.38 kB / 417 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.3776, allocations: 353.3 kB / 417.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3776, allocations: 0 / 417.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.447e-05/0.3777, allocations: 12 kB / 417.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3777, allocations: 8 kB / 417.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004976/0.3782, allocations: 234.5 kB / 417.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.3802, allocations: 1.17 MB / 418.7 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00068/0.3809, allocations: 283.5 kB / 419 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/0.3814, allocations: 217.1 kB / 419.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000811/0.3823, allocations: 1.113 MB / 420.3 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.3823, allocations: 38.8 kB / 420.4 MB, free: 6.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.824e-06/0.3823, allocations: 0 / 420.4 MB, free: 6.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001388/0.3837, allocations: 0.5287 MB / 420.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.3838, allocations: 85.09 kB / 421 MB, free: 5.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.3842, allocations: 337.7 kB / 421.3 MB, free: 5.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.255e-05/0.3842, allocations: 29.7 kB / 421.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.3844, allocations: 220.2 kB / 421.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.3844, allocations: 98.61 kB / 421.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3846, allocations: 69.98 kB / 421.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3847, allocations: 350.7 kB / 422.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.385, allocations: 104.7 kB / 422.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.3852, allocations: 186 kB / 422.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004783/0.3857, allocations: 284.2 kB / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3857, allocations: 0 / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000786/0.3865, allocations: 436.9 kB / 423 MB, free: 3.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3866, allocations: 4 kB / 423 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3866, allocations: 4 kB / 423 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.3869, allocations: 77.06 kB / 423.1 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000309/0.3872, allocations: 71.91 kB / 423.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001891/0.3891, allocations: 1.955 MB / 425.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.3893, allocations: 39.73 kB / 425.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3894, allocations: 16 kB / 425.2 MB, free: 0.8672 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.0001715/0.3896, allocations: 161.2 kB / 425.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.822e-05/0.3896, allocations: 39.52 kB / 425.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.3903, allocations: 334.2 kB / 425.7 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3903, allocations: 4 kB / 425.7 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3904, allocations: 3.938 kB / 425.7 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3904, allocations: 3.938 kB / 425.7 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004514/0.3908, allocations: 401.3 kB / 426.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3908, allocations: 0 / 426.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.3912, allocations: 51.91 kB / 426.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002077/0.3914, allocations: 64.81 kB / 426.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.3914, allocations: 8 kB / 426.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004389/0.3919, allocations: 0.603 MB / 426.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3919, allocations: 3.938 kB / 426.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009139/0.3928, allocations: 0.5248 MB / 427.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.3929, allocations: 104.7 kB / 427.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.393, allocations: 8 kB / 427.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.3933, allocations: 19.98 kB / 427.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.783e-05/0.3933, allocations: 27.91 kB / 427.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.3934, allocations: 4 kB / 427.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002735/0.3936, allocations: 243.2 kB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3936, allocations: 0 / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004643/0.3941, allocations: 115.8 kB / 427.9 MB, free: 14.05 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.0002348/0.3944, allocations: 119.2 kB / 428 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008718/0.3952, allocations: 422.5 kB / 428.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3952, allocations: 0 / 428.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.3956, allocations: 143.8 kB / 428.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.396, allocations: 52.09 kB / 428.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3974, allocations: 0.8619 MB / 429.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.3979, allocations: 0.7912 MB / 430.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.398, allocations: 38.94 kB / 430.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.505e-05/0.3981, allocations: 31.44 kB / 430.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3981, allocations: 0 / 430.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of Templates: time 0.00954/0.4076, allocations: 4.016 MB / 434.4 MB, free: 7.539 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