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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 92.69 kB / 20.95 MB, free: 460 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 146.7 kB / 24.24 MB, free: 3.492 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 173.3 MB / 200.8 MB, free: 12.74 MB / 190.1 MB " [Timeout remaining time 178] 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=2500,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=2500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.495e-06/2.495e-06, allocations: 0 / 267.3 MB, free: 10.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.424e-05/3.674e-05, allocations: 6.312 kB / 267.3 MB, free: 10.19 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005283/0.005319, allocations: 2.946 MB / 270.3 MB, free: 7.227 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.007359, allocations: 0.9117 MB / 271.2 MB, free: 6.309 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.007578, allocations: 11.88 kB / 271.2 MB, free: 6.297 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.007795, allocations: 55.42 kB / 271.2 MB, free: 6.242 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004261/0.008221, allocations: 130.9 kB / 271.4 MB, free: 6.113 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.008634, allocations: 151.5 kB / 271.5 MB, free: 5.965 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.009198, allocations: 0.4938 MB / 272 MB, free: 5.469 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.009456, allocations: 87.69 kB / 272.1 MB, free: 5.379 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.009874, allocations: 287.3 kB / 272.4 MB, free: 5.098 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.01012, allocations: 147.6 kB / 272.5 MB, free: 4.953 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-05/0.01021, allocations: 40 kB / 272.6 MB, free: 4.914 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.01039, allocations: 79.89 kB / 272.6 MB, free: 4.836 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.01049, allocations: 99.59 kB / 272.7 MB, free: 4.738 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.01068, allocations: 151.6 kB / 272.9 MB, free: 4.59 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006494/0.01133, allocations: 0.5061 MB / 273.4 MB, free: 4.082 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.01133, allocations: 0 / 273.4 MB, free: 4.082 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.01134, allocations: 0 / 273.4 MB, free: 4.082 MB / 254.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.01135, allocations: 0 / 273.4 MB, free: 4.082 MB / 254.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.001467/0.01282, allocations: 0.6606 MB / 274.1 MB, free: 3.391 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.01286, allocations: 8.922 kB / 274.1 MB, free: 3.383 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.01299, allocations: 72.66 kB / 274.1 MB, free: 3.312 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.01345, allocations: 248.5 kB / 274.4 MB, free: 3.043 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.01348, allocations: 33.03 kB / 274.4 MB, free: 3.008 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.145e-05/0.01355, allocations: 36.38 kB / 274.4 MB, free: 2.973 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007636/0.01431, allocations: 444.4 kB / 274.9 MB, free: 2.504 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.01433, allocations: 192 / 274.9 MB, free: 2.504 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.01437, allocations: 16.38 kB / 274.9 MB, free: 2.488 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.01438, allocations: 11.94 kB / 274.9 MB, free: 2.477 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005327/0.01491, allocations: 226.5 kB / 275.1 MB, free: 2.254 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.01694, allocations: 0.9927 MB / 276.1 MB, free: 1.199 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007721/0.01771, allocations: 247.6 kB / 276.4 MB, free: 0.9492 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005692/0.01828, allocations: 197.2 kB / 276.6 MB, free: 0.7539 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00035/0.01863, allocations: 76.14 kB / 276.6 MB, free: 0.6797 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/0.01868, allocations: 38.8 kB / 276.7 MB, free: 0.6328 MB / 254.1 MB Notification: Performance of pre-optimization done (n=27): time 1.452e-06/0.01868, allocations: 0 / 276.7 MB, free: 0.6328 MB / 254.1 MB Notification: Performance of matching and sorting (n=27): time 0.001427/0.02011, allocations: 452.5 kB / 277.1 MB, free: 188 kB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.02018, allocations: 81.11 kB / 277.2 MB, free: 88 kB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.02054, allocations: 296.5 kB / 277.5 MB, free: 15.79 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.02057, allocations: 37.7 kB / 277.5 MB, free: 15.75 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.02074, allocations: 220.3 kB / 277.7 MB, free: 15.53 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.304e-05/0.02084, allocations: 103.1 kB / 277.8 MB, free: 15.43 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.02096, allocations: 70.02 kB / 277.9 MB, free: 15.35 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.02114, allocations: 346.8 kB / 278.2 MB, free: 15 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.02139, allocations: 100.6 kB / 278.3 MB, free: 14.9 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.0217, allocations: 203.5 kB / 278.5 MB, free: 14.67 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005298/0.02223, allocations: 283.7 kB / 278.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.02224, allocations: 0 / 278.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00086/0.0231, allocations: 429.6 kB / 279.2 MB, free: 13.93 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.02311, allocations: 4 kB / 279.2 MB, free: 13.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.02312, allocations: 4 kB / 279.2 MB, free: 13.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002746/0.0234, allocations: 73 kB / 279.3 MB, free: 13.85 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/0.02373, allocations: 67.91 kB / 279.4 MB, free: 13.79 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.02587, allocations: 1.821 MB / 281.2 MB, free: 11.87 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.02612, allocations: 35.73 kB / 281.2 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.02614, allocations: 15.94 kB / 281.2 MB, free: 11.82 MB / 270.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.0001728/0.02632, allocations: 145.8 kB / 281.4 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.0264, allocations: 39.81 kB / 281.4 MB, free: 11.62 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007451/0.02714, allocations: 326.3 kB / 281.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.02714, allocations: 0 / 281.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.02715, allocations: 4 kB / 281.8 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.02715, allocations: 0 / 281.8 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003936/0.02754, allocations: 285 kB / 282 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.02755, allocations: 4 kB / 282 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.02788, allocations: 47.97 kB / 282.1 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/0.02809, allocations: 64.81 kB / 282.1 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.02812, allocations: 4 kB / 282.1 MB, free: 10.85 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005202/0.02864, allocations: 0.6109 MB / 282.8 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02864, allocations: 0 / 282.8 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.02964, allocations: 0.5093 MB / 283.3 MB, free: 9.684 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.0297, allocations: 31.73 kB / 283.3 MB, free: 9.652 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.644e-05/0.02974, allocations: 11.94 kB / 283.3 MB, free: 9.641 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.03, allocations: 20.05 kB / 283.3 MB, free: 9.621 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.03006, allocations: 19.97 kB / 283.3 MB, free: 9.602 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.03008, allocations: 4 kB / 283.4 MB, free: 9.598 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.03031, allocations: 211.1 kB / 283.6 MB, free: 9.395 MB / 270.1 MB Notification: Performance of sort global known variables: time 7e-08/0.03031, allocations: 0 / 283.6 MB, free: 9.395 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004978/0.03081, allocations: 115.7 kB / 283.7 MB, free: 9.281 MB / 270.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.0002319/0.03104, allocations: 131.1 kB / 283.8 MB, free: 9.145 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000887/0.03193, allocations: 389.8 kB / 284.2 MB, free: 8.754 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.03193, allocations: 0 / 284.2 MB, free: 8.754 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.03229, allocations: 124.3 kB / 284.3 MB, free: 8.633 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.03264, allocations: 39.3 kB / 284.3 MB, free: 8.598 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.03405, allocations: 0.7618 MB / 285.1 MB, free: 7.805 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.03424, allocations: 190.5 kB / 285.3 MB, free: 7.602 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001471/0.03438, allocations: 38.89 kB / 285.3 MB, free: 7.566 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.544e-05/0.03446, allocations: 28.5 kB / 285.4 MB, free: 7.539 MB / 270.1 MB Notification: Performance of SimCode: time 4.91e-07/0.03446, allocations: 0 / 285.4 MB, free: 7.539 MB / 270.1 MB Notification: Performance of Templates: time 0.009587/0.04405, allocations: 3.614 MB / 289 MB, free: 3.973 MB / 270.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] "" 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,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.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_in,opAmp.v_source,opAmp.vcm,opAmp.vcm_abs,opAmp.vcp,opAmp.vcp_abs,opAmp.x,resistor.R,resistor.T,resistor.T_ref,resistor.alpha,resistor1.R,resistor1.T,resistor1.T_ref,resistor1.alpha,resistor2.R,resistor2.T,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 [Calling sys.exit(0), Time elapsed: 4.349787097424269]