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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.0009361/0.0009362, allocations: 197.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 227.2 MB / 245 MB, free: 7.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008548/0.0008549, allocations: 105.2 kB / 297.3 MB, free: 6.164 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002/0.0002001, allocations: 12 kB / 357.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1808, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08625/0.2671, allocations: 81.7 MB / 491.1 MB, free: 8.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.2674, allocations: 79.95 kB / 491.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02252/0.2899, allocations: 8.771 MB / 500 MB, free: 40 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2899, allocations: 0 / 500 MB, free: 40 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.2899, allocations: 8 kB / 500 MB, free: 32 kB / 362.7 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.001058/0.291, allocations: 0.6701 MB / 0.4889 GB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.291, allocations: 12.03 kB / 0.4889 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.2912, allocations: 59.42 kB / 0.489 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.2916, allocations: 302.2 kB / 0.4893 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.2916, allocations: 24.59 kB / 0.4893 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.2916, allocations: 36 kB / 0.4893 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.2922, allocations: 349 kB / 0.4897 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2923, allocations: 0 / 0.4897 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.2923, allocations: 16 kB / 0.4897 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.2923, allocations: 8 kB / 0.4897 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004716/0.2928, allocations: 246.5 kB / 0.4899 GB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.2945, allocations: 1.178 MB / 0.4911 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.2952, allocations: 304.5 kB / 0.4914 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006569/0.2958, allocations: 1.121 MB / 0.4924 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.2959, allocations: 38.73 kB / 0.4925 GB, free: 11.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.362e-06/0.2959, allocations: 0 / 0.4925 GB, free: 11.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.001077/0.297, allocations: 0.502 MB / 0.493 GB, free: 10.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.297, allocations: 85.09 kB / 0.4931 GB, free: 10.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000276/0.2973, allocations: 283.7 kB / 0.4933 GB, free: 10.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.2973, allocations: 33.7 kB / 0.4934 GB, free: 10.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.2975, allocations: 228 kB / 0.4936 GB, free: 10.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/0.2975, allocations: 102.6 kB / 0.4937 GB, free: 9.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.2976, allocations: 4 kB / 0.4937 GB, free: 9.961 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.2977, allocations: 346.8 kB / 0.494 GB, free: 9.613 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.2979, allocations: 108.7 kB / 0.4941 GB, free: 9.504 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.2982, allocations: 189.8 kB / 0.4943 GB, free: 9.289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.2984, allocations: 128 kB / 0.4944 GB, free: 9.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2984, allocations: 0 / 0.4944 GB, free: 9.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006279/0.2991, allocations: 380.9 kB / 0.4948 GB, free: 8.785 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2991, allocations: 11.95 kB / 0.4948 GB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2991, allocations: 0 / 0.4948 GB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.2991, allocations: 4 kB / 0.4948 GB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.2995, allocations: 108.1 kB / 0.4949 GB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.2995, allocations: 7.938 kB / 0.4949 GB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.2998, allocations: 47.52 kB / 0.4949 GB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.2998, allocations: 16 kB / 0.495 GB, free: 8.594 MB / 378.7 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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.2999, allocations: 149.8 kB / 0.4951 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.087e-05/0.3, allocations: 35.62 kB / 0.4951 GB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006258/0.3006, allocations: 330.2 kB / 0.4955 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3006, allocations: 4 kB / 0.4955 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3007, allocations: 4 kB / 0.4955 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3007, allocations: 3.984 kB / 0.4955 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003876/0.3011, allocations: 389.2 kB / 0.4958 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3011, allocations: 0 / 0.4958 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.3014, allocations: 63.95 kB / 0.4959 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/0.3016, allocations: 48.72 kB / 0.4959 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.3016, allocations: 8 kB / 0.496 GB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003259/0.302, allocations: 0.5602 MB / 0.4965 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.302, allocations: 3.938 kB / 0.4965 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.3028, allocations: 0.5255 MB / 0.497 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.3029, allocations: 116.6 kB / 0.4971 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.72e-05/0.303, allocations: 8 kB / 0.4971 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.3032, allocations: 31.97 kB / 0.4972 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.3033, allocations: 15.98 kB / 0.4972 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3033, allocations: 7.984 kB / 0.4972 GB, free: 6.172 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002094/0.3035, allocations: 235.1 kB / 0.4974 GB, free: 5.941 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3035, allocations: 0 / 0.4974 GB, free: 5.941 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003399/0.3039, allocations: 103.8 kB / 0.4975 GB, free: 5.84 MB / 378.7 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001789/0.3041, allocations: 139.1 kB / 0.4976 GB, free: 5.691 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005111/0.3046, allocations: 276.2 kB / 0.4979 GB, free: 5.422 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3046, allocations: 0 / 0.4979 GB, free: 5.422 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003197/0.3049, allocations: 143.8 kB / 0.498 GB, free: 5.281 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.3052, allocations: 47.02 kB / 0.4981 GB, free: 5.242 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.3064, allocations: 1.046 MB / 0.4991 GB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.3068, allocations: 0.7955 MB / 0.4999 GB, free: 3.348 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.3069, allocations: 38.95 kB / 0.4999 GB, free: 3.309 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.327e-05/0.307, allocations: 31.42 kB / 0.5 GB, free: 3.277 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.307, allocations: 0 / 0.5 GB, free: 3.277 MB / 378.7 MB Notification: Performance of Templates: time 0.006328/0.3133, allocations: 3.189 MB / 0.5031 GB, free: 124 kB / 378.7 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","../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.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time