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.001207/0.001207, allocations: 92.53 kB / 16.3 MB, free: 5.535 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.00113/0.00113, allocations: 185.3 kB / 17.2 MB, free: 5.469 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.342/1.342, allocations: 223.2 MB / 241.1 MB, free: 5.277 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002565/0.0002566, allocations: 6.562 kB / 300.7 MB, free: 5.547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.09415, allocations: 50.43 MB / 351.1 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.003282/0.09747, allocations: 2.582 MB / 353.7 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.09907, allocations: 0.9243 MB / 354.6 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.09928, allocations: 8 kB / 354.7 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.409e-05/0.09937, allocations: 43.66 kB / 354.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004177/0.0998, allocations: 139.5 kB / 354.8 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.1001, allocations: 103.8 kB / 354.9 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.1005, allocations: 331.1 kB / 355.3 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.1007, allocations: 94.55 kB / 355.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1009, allocations: 163.4 kB / 355.5 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.1012, allocations: 183.2 kB / 355.7 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.645e-05/0.1012, allocations: 20 kB / 355.7 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1014, allocations: 51.97 kB / 355.8 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.563e-05/0.1014, allocations: 67.73 kB / 355.8 MB, free: 6.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.56e-05/0.1015, allocations: 97.52 kB / 355.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.1019, allocations: 362.9 kB / 356.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1019, allocations: 3.938 kB / 356.3 MB, free: 6.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.113e-06/0.1019, allocations: 0 / 356.3 MB, free: 6.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1019, allocations: 0 / 356.3 MB, free: 6.297 MB / 286.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.001287/0.1032, allocations: 0.6702 MB / 356.9 MB, free: 5.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1033, allocations: 16.02 kB / 357 MB, free: 5.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.159e-05/0.1034, allocations: 47.39 kB / 357 MB, free: 5.516 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.1038, allocations: 290.3 kB / 357.3 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.1038, allocations: 28.66 kB / 357.3 MB, free: 5.168 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.1039, allocations: 35.98 kB / 357.4 MB, free: 5.133 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006282/0.1045, allocations: 353 kB / 357.7 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1045, allocations: 0 / 357.7 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.1046, allocations: 16 kB / 357.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1046, allocations: 8 kB / 357.7 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.1051, allocations: 242.5 kB / 358 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1071, allocations: 1.182 MB / 359.1 MB, free: 3.254 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007432/0.1079, allocations: 308.3 kB / 359.4 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/0.109, allocations: 1.129 MB / 360.6 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.109, allocations: 38.8 kB / 360.6 MB, free: 1.512 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.109, allocations: 0 / 360.6 MB, free: 1.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.001266/0.1103, allocations: 0.4942 MB / 361.1 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.1104, allocations: 81.11 kB / 361.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.1108, allocations: 328.5 kB / 361.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.1108, allocations: 29.7 kB / 361.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.111, allocations: 216 kB / 361.7 MB, free: 320 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.701e-05/0.1111, allocations: 98.62 kB / 361.8 MB, free: 220 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.1111, allocations: 12 kB / 361.9 MB, free: 208 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1113, allocations: 346.8 kB / 362.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.1115, allocations: 112.7 kB / 362.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.1118, allocations: 189.7 kB / 362.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.1121, allocations: 128 kB / 362.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1121, allocations: 0 / 362.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006824/0.1128, allocations: 381.5 kB / 363 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.1129, allocations: 8 kB / 363 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1129, allocations: 0 / 363 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.1129, allocations: 8 kB / 363 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000416/0.1133, allocations: 100.1 kB / 363.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.1133, allocations: 11.92 kB / 363.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.1136, allocations: 39.59 kB / 363.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.1136, allocations: 12 kB / 363.2 MB, free: 14.85 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 (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.0001933/0.1138, allocations: 157.7 kB / 363.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.045e-05/0.1139, allocations: 31.62 kB / 363.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007304/0.1146, allocations: 338.2 kB / 363.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1147, allocations: 0 / 363.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.43e-05/0.1147, allocations: 7.938 kB / 363.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1147, allocations: 8 kB / 363.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004962/0.1152, allocations: 389.2 kB / 364.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1152, allocations: 0 / 364.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/0.1156, allocations: 67.89 kB / 364.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000271/0.1159, allocations: 44.83 kB / 364.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.1159, allocations: 4 kB / 364.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004932/0.1164, allocations: 0.5718 MB / 364.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1164, allocations: 3.984 kB / 364.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008837/0.1173, allocations: 0.5249 MB / 365.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.549e-05/0.1174, allocations: 116.6 kB / 365.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.183e-05/0.1175, allocations: 8 kB / 365.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.1177, allocations: 27.98 kB / 365.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.1178, allocations: 19.91 kB / 365.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1178, allocations: 8 kB / 365.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002375/0.1181, allocations: 231.1 kB / 365.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1181, allocations: 0 / 365.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003791/0.1184, allocations: 103.8 kB / 365.8 MB, free: 12.07 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 (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.0002153/0.1187, allocations: 131.2 kB / 365.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005527/0.1192, allocations: 284.3 kB / 366.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1192, allocations: 0 / 366.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003228/0.1196, allocations: 135.9 kB / 366.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.1199, allocations: 33.38 kB / 366.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.1214, allocations: 1.046 MB / 367.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.1218, allocations: 0.7994 MB / 368.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.122, allocations: 42.89 kB / 368.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.398e-05/0.1221, allocations: 31.42 kB / 368.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1221, allocations: 0 / 368.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of Templates: time 0.007296/0.1294, allocations: 3.193 MB / 371.5 MB, free: 6.359 MB / 302.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","../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