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.001543/0.001543, allocations: 113.2 kB / 17.07 MB, free: 5.945 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.002416/0.002416, allocations: 194.8 kB / 18 MB, free: 5.035 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.672/1.672, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 47.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.4092, allocations: 49.43 MB / 400.7 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004576/0.4138, allocations: 3.229 MB / 404 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.4156, allocations: 0.9662 MB / 404.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/0.416, allocations: 8 kB / 404.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.4164, allocations: 55.42 kB / 405 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005921/0.417, allocations: 122.9 kB / 405.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.4175, allocations: 147.7 kB / 405.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006957/0.4182, allocations: 489.9 kB / 405.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002774/0.4185, allocations: 127.2 kB / 405.9 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000342/0.4189, allocations: 187.3 kB / 406 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.4192, allocations: 207.1 kB / 406.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.607e-05/0.4193, allocations: 40 kB / 406.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.4195, allocations: 71.97 kB / 406.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.081e-05/0.4196, allocations: 99.61 kB / 406.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.4199, allocations: 215 kB / 406.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005936/0.4205, allocations: 0.4917 MB / 407.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4205, allocations: 0 / 407.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4205, allocations: 0 / 407.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.718e-05/0.4205, allocations: 0 / 407.1 MB, free: 2.578 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.001351/0.4219, allocations: 0.7326 MB / 407.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.4219, allocations: 8.031 kB / 407.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.422, allocations: 48.38 kB / 407.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.4224, allocations: 303.5 kB / 408.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.4224, allocations: 25.03 kB / 408.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.856e-05/0.4225, allocations: 48.22 kB / 408.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.4232, allocations: 349.3 kB / 408.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4232, allocations: 0 / 408.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.4233, allocations: 19.98 kB / 408.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.4233, allocations: 11.94 kB / 408.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.4238, allocations: 234.5 kB / 408.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.4257, allocations: 1.174 MB / 410.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.4263, allocations: 279.5 kB / 410.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.4268, allocations: 217.2 kB / 410.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008786/0.4277, allocations: 1.105 MB / 411.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.4278, allocations: 42.73 kB / 411.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.4278, allocations: 0 / 411.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001445/0.4292, allocations: 0.5334 MB / 412.2 MB, free: 13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.4293, allocations: 81.11 kB / 412.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003513/0.4297, allocations: 336.5 kB / 412.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.4297, allocations: 29.7 kB / 412.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.4299, allocations: 212.1 kB / 412.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.07e-05/0.4299, allocations: 98.56 kB / 413 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.43, allocations: 70.06 kB / 413.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4302, allocations: 350.7 kB / 413.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.4304, allocations: 104.7 kB / 413.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.4307, allocations: 189.7 kB / 413.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.4312, allocations: 292.3 kB / 414 MB, free: 11.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.4312, allocations: 4 kB / 414 MB, free: 11.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007537/0.432, allocations: 429.6 kB / 414.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.432, allocations: 4 kB / 414.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.432, allocations: 4 kB / 414.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.4323, allocations: 64.81 kB / 414.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.4326, allocations: 75.89 kB / 414.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/0.4345, allocations: 1.959 MB / 416.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.4348, allocations: 43.58 kB / 416.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.4348, allocations: 12 kB / 416.5 MB, free: 8.418 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.0001746/0.435, allocations: 161.6 kB / 416.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.979e-05/0.4351, allocations: 35.69 kB / 416.7 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007004/0.4358, allocations: 330.2 kB / 417.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.4358, allocations: 4 kB / 417.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4358, allocations: 3.938 kB / 417.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4358, allocations: 0 / 417.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004704/0.4363, allocations: 401.2 kB / 417.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4363, allocations: 0 / 417.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.4366, allocations: 63.89 kB / 417.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001881/0.4368, allocations: 56.83 kB / 417.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.4369, allocations: 11.98 kB / 417.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003949/0.4373, allocations: 0.6031 MB / 418.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4373, allocations: 4.062 kB / 418.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008495/0.4381, allocations: 0.5248 MB / 418.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.945e-05/0.4382, allocations: 108.7 kB / 418.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.133e-05/0.4383, allocations: 7.984 kB / 418.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.4385, allocations: 23.98 kB / 418.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.434e-05/0.4386, allocations: 11.98 kB / 418.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.4386, allocations: 11.98 kB / 418.9 MB, free: 5.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002221/0.4389, allocations: 239 kB / 419.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4389, allocations: 0 / 419.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004416/0.4393, allocations: 111.8 kB / 419.2 MB, free: 5.602 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.0002332/0.4396, allocations: 132.7 kB / 419.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008561/0.4404, allocations: 430.3 kB / 419.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4404, allocations: 0.5 kB / 419.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.4408, allocations: 147.8 kB / 419.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.4411, allocations: 45.45 kB / 420 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.4425, allocations: 0.858 MB / 420.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.4429, allocations: 0.7989 MB / 421.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.4431, allocations: 38.95 kB / 421.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.078e-05/0.4432, allocations: 23.44 kB / 421.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4432, allocations: 0 / 421.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of Templates: time 0.009386/0.4526, allocations: 4.008 MB / 425.7 MB, free: 15.08 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