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.001092/0.001092, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001329/0.001329, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.383/1.383, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 50.33 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09093, allocations: 49.44 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004429/0.0954, allocations: 3.212 MB / 353.9 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.09729, allocations: 0.9701 MB / 354.9 MB, free: 212 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002992/0.09762, allocations: 4 kB / 354.9 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.09788, allocations: 63.36 kB / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005167/0.09841, allocations: 127 kB / 355.1 MB, free: 16 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004584/0.09887, allocations: 147.6 kB / 355.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005251/0.09941, allocations: 481.9 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.09966, allocations: 139.1 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.09993, allocations: 183.3 kB / 356 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.1002, allocations: 207.1 kB / 356.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.756e-05/0.1003, allocations: 40 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.1004, allocations: 79.95 kB / 356.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.166e-05/0.1005, allocations: 87.69 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.1007, allocations: 218.9 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004667/0.1012, allocations: 0.4907 MB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1012, allocations: 0 / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1012, allocations: 0 / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.1012, allocations: 0 / 357.1 MB, free: 13.97 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.001342/0.1026, allocations: 0.7325 MB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1026, allocations: 12.03 kB / 357.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.1027, allocations: 44.47 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.1031, allocations: 307.3 kB / 358.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.1031, allocations: 25.03 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.1032, allocations: 36.38 kB / 358.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.1038, allocations: 353.3 kB / 358.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.1038, allocations: 0 / 358.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.1039, allocations: 16 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1039, allocations: 8 kB / 358.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000479/0.1044, allocations: 230.5 kB / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.1063, allocations: 1.186 MB / 360.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006807/0.107, allocations: 275.5 kB / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004944/0.1075, allocations: 213.2 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007058/0.1082, allocations: 1.113 MB / 361.7 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.1083, allocations: 38.8 kB / 361.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.964e-06/0.1083, allocations: 0 / 361.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001338/0.1096, allocations: 0.5273 MB / 362.2 MB, free: 8.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.1097, allocations: 85.11 kB / 362.3 MB, free: 8.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.11, allocations: 336.5 kB / 362.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.1101, allocations: 29.7 kB / 362.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1102, allocations: 216.2 kB / 362.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.781e-05/0.1103, allocations: 94.56 kB / 363 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.1104, allocations: 73.97 kB / 363 MB, free: 7.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1105, allocations: 350.7 kB / 363.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.1108, allocations: 112.6 kB / 363.5 MB, free: 7.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.1111, allocations: 185.7 kB / 363.7 MB, free: 6.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004847/0.1116, allocations: 284 kB / 363.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1116, allocations: 4 kB / 364 MB, free: 6.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000808/0.1124, allocations: 433.5 kB / 364.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1124, allocations: 4 kB / 364.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1124, allocations: 4 kB / 364.4 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/0.1127, allocations: 68.81 kB / 364.5 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003367/0.113, allocations: 75.83 kB / 364.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.1149, allocations: 1.947 MB / 366.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.1152, allocations: 39.66 kB / 366.5 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.1152, allocations: 19.98 kB / 366.5 MB, free: 3.824 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.0001685/0.1154, allocations: 156.8 kB / 366.7 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.1155, allocations: 39.53 kB / 366.7 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006968/0.1162, allocations: 330.5 kB / 367 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1162, allocations: 8 kB / 367.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1162, allocations: 3.938 kB / 367.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1162, allocations: 3.984 kB / 367.1 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004362/0.1166, allocations: 401.2 kB / 367.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1167, allocations: 192 / 367.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.117, allocations: 63.89 kB / 367.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.1172, allocations: 56.77 kB / 367.6 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.1172, allocations: 11.98 kB / 367.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003776/0.1176, allocations: 0.6108 MB / 368.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1176, allocations: 0 / 368.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008822/0.1185, allocations: 0.5198 MB / 368.7 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.59e-05/0.1186, allocations: 108.7 kB / 368.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-05/0.1187, allocations: 8 kB / 368.8 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.119, allocations: 27.97 kB / 368.9 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.119, allocations: 11.98 kB / 368.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.119, allocations: 11.98 kB / 368.9 MB, free: 1.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002284/0.1193, allocations: 231.1 kB / 369.1 MB, free: 1.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1193, allocations: 0 / 369.1 MB, free: 1.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004651/0.1198, allocations: 111.8 kB / 369.2 MB, free: 1.004 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.0001903/0.12, allocations: 131.1 kB / 369.3 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008473/0.1208, allocations: 438.1 kB / 369.8 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1208, allocations: 0 / 369.8 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.1212, allocations: 144.3 kB / 369.9 MB, free: 288 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.1216, allocations: 44.8 kB / 370 MB, free: 248 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1482/0.2698, allocations: 0.877 MB / 370.8 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.2701, allocations: 0.7936 MB / 371.6 MB, free: 24.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.2702, allocations: 28.75 kB / 371.7 MB, free: 24.8 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2702, allocations: 0 / 371.7 MB, free: 24.8 MB / 302.1 MB Notification: Performance of Templates: time 0.009475/0.2797, allocations: 5.411 MB / 377.1 MB, free: 24.38 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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:opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x,time