Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001175/0.001175, allocations: 105.1 kB / 17.16 MB, free: 6.32 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.001582/0.001583, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 51.94 kB / 280 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1029, allocations: 46.63 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004126/0.1071, allocations: 3.225 MB / 329.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.1087, allocations: 0.9984 MB / 330.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.1089, allocations: 7.938 kB / 330.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.1091, allocations: 43.67 kB / 330.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003306/0.1094, allocations: 111.2 kB / 331 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.1097, allocations: 115.8 kB / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.1101, allocations: 470 kB / 331.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.1104, allocations: 115.8 kB / 331.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.1106, allocations: 171.3 kB / 331.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.1108, allocations: 195.1 kB / 332 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.887e-05/0.1109, allocations: 24 kB / 332 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.111, allocations: 59.97 kB / 332.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.611e-05/0.1111, allocations: 83.61 kB / 332.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.1113, allocations: 195 kB / 332.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.1117, allocations: 486.6 kB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1118, allocations: 3.938 kB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1118, allocations: 0 / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1118, allocations: 0 / 332.9 MB, free: 14.57 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.001418/0.1132, allocations: 0.7403 MB / 333.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.1133, allocations: 12.03 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.51e-05/0.1134, allocations: 40.47 kB / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.1137, allocations: 307.3 kB / 333.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1138, allocations: 25.03 kB / 334 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.1138, allocations: 36.38 kB / 334 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.1145, allocations: 361.3 kB / 334.4 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1146, allocations: 0 / 334.4 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.1146, allocations: 16 kB / 334.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1146, allocations: 8 kB / 334.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/0.1151, allocations: 226.5 kB / 334.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.117, allocations: 1.178 MB / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006367/0.1177, allocations: 275.5 kB / 336.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000456/0.1181, allocations: 221.2 kB / 336.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007484/0.1189, allocations: 1.109 MB / 337.4 MB, free: 9.602 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1189, allocations: 38.8 kB / 337.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.232e-06/0.119, allocations: 0 / 337.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.001327/0.1203, allocations: 0.5358 MB / 338 MB, free: 8.992 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.1203, allocations: 81.11 kB / 338 MB, free: 8.895 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003513/0.1207, allocations: 345.6 kB / 338.4 MB, free: 8.551 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.1207, allocations: 33.7 kB / 338.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.1209, allocations: 216 kB / 338.6 MB, free: 8.297 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.582e-05/0.121, allocations: 102.5 kB / 338.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.1211, allocations: 66.08 kB / 338.8 MB, free: 8.121 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1213, allocations: 350.7 kB / 339.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.1215, allocations: 112.7 kB / 339.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.1218, allocations: 177.8 kB / 339.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004941/0.1223, allocations: 307.1 kB / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1223, allocations: 0 / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007897/0.1231, allocations: 433.3 kB / 340.1 MB, free: 6.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1231, allocations: 8 kB / 340.1 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.1231, allocations: 0 / 340.1 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.1234, allocations: 64.81 kB / 340.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.1238, allocations: 75.89 kB / 340.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.1255, allocations: 1.768 MB / 342 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.1258, allocations: 39.72 kB / 342.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.1258, allocations: 11.98 kB / 342.1 MB, free: 4.598 MB / 286.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.0001787/0.126, allocations: 153.7 kB / 342.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-05/0.1261, allocations: 39.47 kB / 342.3 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006928/0.1268, allocations: 330.4 kB / 342.6 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.1268, allocations: 4 kB / 342.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.1268, allocations: 0 / 342.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1268, allocations: 0 / 342.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.1273, allocations: 397.2 kB / 343 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1273, allocations: 0 / 343 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.1276, allocations: 55.95 kB / 343 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002068/0.1279, allocations: 60.77 kB / 343.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.1279, allocations: 11.98 kB / 343.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003928/0.1283, allocations: 0.603 MB / 343.7 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1283, allocations: 4.031 kB / 343.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009036/0.1292, allocations: 0.5209 MB / 344.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.1293, allocations: 128.6 kB / 344.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.388e-05/0.1294, allocations: 15.98 kB / 344.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.1297, allocations: 27.92 kB / 344.4 MB, free: 2.133 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/0.1297, allocations: 15.98 kB / 344.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.1298, allocations: 7.984 kB / 344.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.13, allocations: 239.2 kB / 344.7 MB, free: 1.883 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.13, allocations: 0 / 344.7 MB, free: 1.883 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004427/0.1305, allocations: 111.8 kB / 344.8 MB, free: 1.773 MB / 286.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.0002439/0.1307, allocations: 143.1 kB / 344.9 MB, free: 1.621 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008001/0.1315, allocations: 410.3 kB / 345.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1315, allocations: 0 / 345.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.1319, allocations: 136.4 kB / 345.5 MB, free: 1.074 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.1323, allocations: 45.31 kB / 345.5 MB, free: 1.027 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1337, allocations: 0.9973 MB / 346.5 MB, free: 4 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.1341, allocations: 0.7915 MB / 347.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001391/0.1342, allocations: 30.97 kB / 347.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.1343, allocations: 27.44 kB / 347.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1343, allocations: 0 / 347.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Templates: time 0.007496/0.1418, allocations: 3.762 MB / 351.1 MB, free: 11.36 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","../files/Modelica_3.2.3_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.freqHz,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time