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.001276/0.001276, allocations: 116.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.67 kB / 306.4 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1271, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005442/0.1326, allocations: 3.284 MB / 360.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.1344, allocations: 1.017 MB / 361.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.1346, allocations: 4 kB / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.1349, allocations: 43.61 kB / 361.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003502/0.1352, allocations: 103.2 kB / 361.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.1356, allocations: 143.7 kB / 361.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.1361, allocations: 486 kB / 362 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000271/0.1364, allocations: 131.1 kB / 362.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003067/0.1367, allocations: 195.3 kB / 362.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.1369, allocations: 207.1 kB / 362.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.1371, allocations: 40 kB / 362.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.1372, allocations: 79.95 kB / 362.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.469e-05/0.1373, allocations: 91.67 kB / 362.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.1376, allocations: 218.9 kB / 363 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006557/0.1382, allocations: 0.4907 MB / 363.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.1383, allocations: 8 kB / 363.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1383, allocations: 0 / 363.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1383, allocations: 4 kB / 363.5 MB, free: 7.629 MB / 302.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.001451/0.1397, allocations: 0.7364 MB / 364.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1398, allocations: 8.031 kB / 364.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002208/0.14, allocations: 52.47 kB / 364.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.1405, allocations: 315.3 kB / 364.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.1405, allocations: 25.03 kB / 364.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.1406, allocations: 40.28 kB / 364.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007562/0.1414, allocations: 353.3 kB / 365 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.1414, allocations: 4 kB / 365 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.1415, allocations: 8 kB / 365 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.1415, allocations: 8 kB / 365 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.142, allocations: 234.5 kB / 365.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.144, allocations: 1.182 MB / 366.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.1447, allocations: 279.5 kB / 366.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.1452, allocations: 213.2 kB / 366.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009649/0.1461, allocations: 1.113 MB / 368 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1462, allocations: 30.8 kB / 368.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.214e-06/0.1462, allocations: 4 kB / 368.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001346/0.1476, allocations: 0.5306 MB / 368.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.1476, allocations: 85.11 kB / 368.7 MB, free: 1.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.148, allocations: 345.5 kB / 369 MB, free: 1.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/0.148, allocations: 29.7 kB / 369 MB, free: 1.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.1482, allocations: 216.2 kB / 369.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.189e-05/0.1483, allocations: 102.5 kB / 369.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.1484, allocations: 66.08 kB / 369.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1486, allocations: 350.7 kB / 369.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.1488, allocations: 108.7 kB / 369.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004307/0.1493, allocations: 174 kB / 370 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005774/0.1499, allocations: 295.3 kB / 370.3 MB, free: 208 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1499, allocations: 4 kB / 370.3 MB, free: 204 kB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.2046/0.3545, allocations: 422.1 kB / 370.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.3546, allocations: 8.844 kB / 370.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.3546, allocations: 1.781 kB / 370.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.355, allocations: 73.67 kB / 370.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/0.3554, allocations: 77.39 kB / 370.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.3572, allocations: 1.94 MB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.3576, allocations: 47.41 kB / 372.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.3576, allocations: 14.88 kB / 372.9 MB, free: 18.55 MB / 302.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.0001706/0.3578, allocations: 157.9 kB / 373 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.3579, allocations: 34.75 kB / 373.1 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007753/0.3586, allocations: 335.3 kB / 373.4 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3587, allocations: 2.844 kB / 373.4 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3587, allocations: 7.312 kB / 373.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3587, allocations: 5.234 kB / 373.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.3592, allocations: 386.4 kB / 373.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3592, allocations: 2.375 kB / 373.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.3595, allocations: 59.89 kB / 373.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002286/0.3598, allocations: 64.7 kB / 373.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.3598, allocations: 7.609 kB / 373.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003422/0.3602, allocations: 0.6121 MB / 374.5 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3602, allocations: 0 / 374.5 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009852/0.3612, allocations: 0.5176 MB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-05/0.3613, allocations: 119.8 kB / 375.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.3613, allocations: 6.828 kB / 375.2 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.3616, allocations: 20.42 kB / 375.2 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.841e-05/0.3617, allocations: 23.17 kB / 375.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.3617, allocations: 6.406 kB / 375.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002652/0.362, allocations: 241.8 kB / 375.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.362, allocations: 0 / 375.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004918/0.3625, allocations: 111.5 kB / 375.6 MB, free: 17.08 MB / 302.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.0002286/0.3627, allocations: 126.3 kB / 375.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000921/0.3636, allocations: 429.6 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3637, allocations: 1.188 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.364, allocations: 144.8 kB / 376.3 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.3645, allocations: 42.27 kB / 376.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.3659, allocations: 0.9916 MB / 377.3 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3662, allocations: 0.79 MB / 378.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.3663, allocations: 37.89 kB / 378.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.882e-05/0.3664, allocations: 31.55 kB / 378.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3664, allocations: 3.828 kB / 378.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01015/0.3766, allocations: 3.935 MB / 382.1 MB, free: 15.07 MB / 302.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