Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 104.3 kB / 19.71 MB, free: 2.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 207.1 kB / 22.99 MB, free: 4.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.391/1.391, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.0288/0.0288, allocations: 5.485 MB / 318.7 MB, free: 13.54 MB / 254.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=525600,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=525600,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 71.88 kB / 443.4 MB, free: 7.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09034/0.09227, allocations: 54.61 MB / 498 MB, free: 376 kB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002724/0.095, allocations: 1.625 MB / 499.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.09625, allocations: 0.6855 MB / 0.4886 GB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.115e-05/0.09633, allocations: 4 kB / 0.4886 GB, free: 14.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.09646, allocations: 11.81 kB / 0.4886 GB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003102/0.09677, allocations: 63.67 kB / 0.4887 GB, free: 13.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003149/0.09709, allocations: 115.7 kB / 0.4888 GB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.09736, allocations: 187.5 kB / 0.489 GB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.09748, allocations: 9.641 kB / 0.489 GB, free: 13.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.09769, allocations: 83.81 kB / 0.4891 GB, free: 13.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.09791, allocations: 115.5 kB / 0.4892 GB, free: 13.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.09794, allocations: 12 kB / 0.4892 GB, free: 13.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.09808, allocations: 63.95 kB / 0.4893 GB, free: 13.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/0.09814, allocations: 35.89 kB / 0.4893 GB, free: 13.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.303e-05/0.09823, allocations: 55.77 kB / 0.4893 GB, free: 13.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.09854, allocations: 183.3 kB / 0.4895 GB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.09854, allocations: 4 kB / 0.4895 GB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09854, allocations: 0 / 0.4895 GB, free: 13.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.09855, allocations: 0 / 0.4895 GB, free: 13.11 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0009146/0.09946, allocations: 391.5 kB / 0.4899 GB, free: 12.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.0995, allocations: 8.031 kB / 0.4899 GB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.015e-05/0.09956, allocations: 20.83 kB / 0.4899 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.09987, allocations: 154.3 kB / 0.4901 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.09989, allocations: 12.38 kB / 0.4901 GB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.09993, allocations: 12.38 kB / 0.4901 GB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.1003, allocations: 202.1 kB / 0.4903 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1004, allocations: 3.938 kB / 0.4903 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.1004, allocations: 4 kB / 0.4903 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.1004, allocations: 8 kB / 0.4903 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.1008, allocations: 165.5 kB / 0.4905 GB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000737/0.1015, allocations: 0.5083 MB / 0.491 GB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006469/0.1021, allocations: 216.4 kB / 0.4912 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.1024, allocations: 102.5 kB / 0.4913 GB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.627e-05/0.1024, allocations: 4 kB / 0.4913 GB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.1028, allocations: 240.3 kB / 0.4915 GB, free: 10.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.1028, allocations: 0 / 0.4915 GB, free: 10.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008538/0.1037, allocations: 404.1 kB / 0.4919 GB, free: 10.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.1038, allocations: 144.4 kB / 0.492 GB, free: 10.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.1039, allocations: 132.6 kB / 0.4921 GB, free: 10.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.1039, allocations: 33.7 kB / 0.4922 GB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.358e-05/0.104, allocations: 96.47 kB / 0.4923 GB, free: 10.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.1041, allocations: 83.3 kB / 0.4924 GB, free: 9.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-05/0.1042, allocations: 61.66 kB / 0.4924 GB, free: 9.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1043, allocations: 326.8 kB / 0.4927 GB, free: 9.562 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.1045, allocations: 105.6 kB / 0.4928 GB, free: 9.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.1048, allocations: 141.9 kB / 0.493 GB, free: 9.293 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.004585/0.1094, allocations: 0.779 MB / 0.4937 GB, free: 8.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1094, allocations: 0 / 0.4937 GB, free: 8.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006538/0.11, allocations: 332.6 kB / 0.494 GB, free: 8.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.1101, allocations: 37.7 kB / 0.4941 GB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1101, allocations: 3.938 kB / 0.4941 GB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1101, allocations: 4 kB / 0.4941 GB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.1105, allocations: 63.86 kB / 0.4941 GB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.371e-06/0.1105, allocations: 4 kB / 0.4941 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1107, allocations: 19.91 kB / 0.4942 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.1107, allocations: 11.98 kB / 0.4942 GB, free: 7.973 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 (irradiance.year,$PRE.irradiance.year,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,$whenCondition2,$whenCondition1,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001914/0.1109, allocations: 183.5 kB / 0.4943 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.1109, allocations: 11.95 kB / 0.4944 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009533/0.1119, allocations: 494.5 kB / 0.4948 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1119, allocations: 4 kB / 0.4948 GB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1119, allocations: 0 / 0.4948 GB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1119, allocations: 3.938 kB / 0.4948 GB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.1121, allocations: 209 kB / 0.495 GB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1121, allocations: 4 kB / 0.495 GB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.1124, allocations: 51.95 kB / 0.4951 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1124, allocations: 8 kB / 0.4951 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.1125, allocations: 8 kB / 0.4951 GB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1125, allocations: 3.938 kB / 0.4951 GB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1125, allocations: 7.938 kB / 0.4951 GB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009733/0.1134, allocations: 0.5625 MB / 0.4957 GB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.1135, allocations: 31.81 kB / 0.4957 GB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.155e-05/0.1135, allocations: 8 kB / 0.4957 GB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.1137, allocations: 11.94 kB / 0.4957 GB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.583e-05/0.1138, allocations: 39.88 kB / 0.4958 GB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.1138, allocations: 12.06 kB / 0.4958 GB, free: 6.246 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.991e-05/0.1139, allocations: 107.2 kB / 0.4959 GB, free: 6.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1139, allocations: 3.938 kB / 0.4959 GB, free: 6.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.1142, allocations: 67.94 kB / 0.4959 GB, free: 6.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001839/0.1144, allocations: 126 kB / 0.4961 GB, free: 5.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006389/0.115, allocations: 334.5 kB / 0.4964 GB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.115, allocations: 0 / 0.4964 GB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003257/0.1153, allocations: 221.2 kB / 0.4966 GB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.1156, allocations: 34.91 kB / 0.4966 GB, free: 5.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008893/0.1165, allocations: 499 kB / 0.4971 GB, free: 4.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.1166, allocations: 116.9 kB / 0.4972 GB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.1167, allocations: 47.34 kB / 0.4973 GB, free: 4.609 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1167, allocations: 0 / 0.4973 GB, free: 4.609 MB / 366.1 MB Notification: Performance of Templates: time 0.005065/0.1218, allocations: 3.033 MB / 0.5002 GB, free: 1.582 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile [Timeout 660] (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.sim & ./PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.768464952707291] Failed to read output from testmodel.py, exit status != 0: 0.12890395196154714 0.14331475000000002 0.041928486 Calling exit ...