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.001578/0.001579, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001565/0.001565, allocations: 188 kB / 18 MB, free: 5.219 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.586/1.586, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4468/0.4479, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.006784/0.4547, allocations: 3.228 MB / 404 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.4574, allocations: 0.9583 MB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.4577, allocations: 4 kB / 404.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002649/0.4579, allocations: 59.42 kB / 405 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005563/0.4585, allocations: 133 kB / 405.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004895/0.459, allocations: 147.7 kB / 405.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000682/0.4597, allocations: 489.9 kB / 405.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003342/0.4601, allocations: 131.2 kB / 405.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.4604, allocations: 179.4 kB / 406 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003644/0.4607, allocations: 207.1 kB / 406.2 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.079e-05/0.4608, allocations: 40 kB / 406.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002252/0.4611, allocations: 71.97 kB / 406.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.4612, allocations: 99.59 kB / 406.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002769/0.4615, allocations: 211 kB / 406.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007493/0.4623, allocations: 0.4955 MB / 407.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.4623, allocations: 0 / 407.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.489e-06/0.4623, allocations: 0 / 407.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.4623, allocations: 7.938 kB / 407.2 MB, free: 2.43 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.001807/0.4641, allocations: 0.7287 MB / 407.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.4642, allocations: 12.03 kB / 407.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.4643, allocations: 44.38 kB / 407.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006334/0.465, allocations: 311.4 kB / 408.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.465, allocations: 25.03 kB / 408.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.692e-05/0.4651, allocations: 36.28 kB / 408.3 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/0.4661, allocations: 353.3 kB / 408.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4661, allocations: 0 / 408.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.4661, allocations: 16 kB / 408.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.4662, allocations: 8 kB / 408.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006929/0.4669, allocations: 234.5 kB / 408.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002679/0.4696, allocations: 1.17 MB / 410.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000929/0.4705, allocations: 282.3 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007155/0.4712, allocations: 217.3 kB / 410.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001157/0.4724, allocations: 1.121 MB / 411.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.4725, allocations: 34.8 kB / 411.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.384e-06/0.4725, allocations: 0 / 411.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001952/0.4744, allocations: 0.5295 MB / 412.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.4745, allocations: 81.11 kB / 412.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.4751, allocations: 332.5 kB / 412.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.4751, allocations: 33.7 kB / 412.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.4754, allocations: 212.1 kB / 412.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.4755, allocations: 106.5 kB / 413 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.4757, allocations: 66.06 kB / 413 MB, free: 11.99 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.4759, allocations: 350.7 kB / 413.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003229/0.4762, allocations: 104.7 kB / 413.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004152/0.4766, allocations: 189.7 kB / 413.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007226/0.4774, allocations: 296.3 kB / 414 MB, free: 11.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.4774, allocations: 0 / 414 MB, free: 11.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001114/0.4785, allocations: 425.5 kB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.4785, allocations: 8 kB / 414.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.4786, allocations: 0 / 414.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003873/0.479, allocations: 76.98 kB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004321/0.4794, allocations: 75.89 kB / 414.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002742/0.4822, allocations: 1.955 MB / 416.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.4826, allocations: 47.64 kB / 416.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.4826, allocations: 20 kB / 416.6 MB, free: 8.262 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.0002825/0.4829, allocations: 149.7 kB / 416.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.4831, allocations: 35.62 kB / 416.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.4841, allocations: 326.3 kB / 417.1 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.4841, allocations: 8 kB / 417.1 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.4841, allocations: 4.125 kB / 417.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.4842, allocations: 0 / 417.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.4849, allocations: 397.2 kB / 417.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4849, allocations: 0 / 417.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/0.4853, allocations: 63.89 kB / 417.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/0.4856, allocations: 52.83 kB / 417.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.4857, allocations: 11.98 kB / 417.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006439/0.4863, allocations: 0.6147 MB / 418.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4863, allocations: 0 / 418.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.4877, allocations: 0.5132 MB / 418.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.4878, allocations: 112.7 kB / 418.8 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.26e-05/0.4879, allocations: 11.94 kB / 418.8 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003962/0.4883, allocations: 19.98 kB / 418.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.668e-05/0.4884, allocations: 11.98 kB / 418.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.4885, allocations: 15.98 kB / 418.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003794/0.4888, allocations: 231.1 kB / 419.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4889, allocations: 0 / 419.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008159/0.4897, allocations: 115.8 kB / 419.2 MB, free: 5.465 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.0003158/0.49, allocations: 132.7 kB / 419.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.4913, allocations: 426.3 kB / 419.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4913, allocations: 0 / 419.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.4918, allocations: 155.7 kB / 419.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000551/0.4924, allocations: 33.92 kB / 420 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.4945, allocations: 0.8697 MB / 420.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005289/0.495, allocations: 0.7911 MB / 421.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002139/0.4952, allocations: 34.97 kB / 421.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.4954, allocations: 31.42 kB / 421.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4954, allocations: 0 / 421.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Templates: time 0.01377/0.5092, allocations: 4.007 MB / 425.7 MB, free: 14.94 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