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.001929/0.001929, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002468/0.002468, allocations: 215.6 kB / 22.25 MB, free: 5.117 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.649/1.649, allocations: 230.6 MB / 256 MB, free: 8.023 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.03024/0.03024, allocations: 5.477 MB / 317.9 MB, free: 13.74 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.001948/0.001948, allocations: 63.91 kB / 442.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1148, allocations: 54.62 MB / 497.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002904/0.1177, allocations: 1.675 MB / 499 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1191, allocations: 0.7401 MB / 499.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.739e-05/0.1191, allocations: 3.938 kB / 499.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.1193, allocations: 11.86 kB / 499.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.1195, allocations: 63.69 kB / 499.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.1198, allocations: 119.7 kB / 500 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002937/0.1201, allocations: 183.5 kB / 0.4884 GB, free: 13.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.1202, allocations: 13.62 kB / 0.4884 GB, free: 13.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.1204, allocations: 87.69 kB / 0.4885 GB, free: 13.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.1207, allocations: 107.7 kB / 0.4886 GB, free: 13.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.1207, allocations: 12 kB / 0.4886 GB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.1208, allocations: 75.95 kB / 0.4887 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.14e-05/0.1209, allocations: 35.83 kB / 0.4887 GB, free: 13.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.695e-05/0.121, allocations: 75.62 kB / 0.4888 GB, free: 13.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.1212, allocations: 179.3 kB / 0.489 GB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1212, allocations: 0 / 0.489 GB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1212, allocations: 0 / 0.489 GB, free: 13.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1212, allocations: 0 / 0.489 GB, free: 13.25 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.0008986/0.1221, allocations: 398.2 kB / 0.4894 GB, free: 12.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1222, allocations: 8.031 kB / 0.4894 GB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.064e-05/0.1222, allocations: 20.83 kB / 0.4894 GB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.1225, allocations: 154.3 kB / 0.4895 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.1225, allocations: 4.375 kB / 0.4895 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.1226, allocations: 12.38 kB / 0.4895 GB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.123, allocations: 192.2 kB / 0.4897 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.123, allocations: 0 / 0.4897 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.123, allocations: 0 / 0.4897 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.123, allocations: 4 kB / 0.4897 GB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000384/0.1234, allocations: 133.7 kB / 0.4899 GB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007805/0.1242, allocations: 0.5702 MB / 0.4904 GB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006555/0.1248, allocations: 182.7 kB / 0.4906 GB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.125, allocations: 72.81 kB / 0.4907 GB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.9e-05/0.1251, allocations: 4 kB / 0.4907 GB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003779/0.1255, allocations: 220.8 kB / 0.4909 GB, free: 11.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1255, allocations: 0 / 0.4909 GB, free: 11.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008355/0.1263, allocations: 339.1 kB / 0.4912 GB, free: 10.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.423e-05/0.1264, allocations: 132.5 kB / 0.4913 GB, free: 10.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.1265, allocations: 130.1 kB / 0.4915 GB, free: 10.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1266, allocations: 33.7 kB / 0.4915 GB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.1266, allocations: 104.5 kB / 0.4916 GB, free: 10.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.413e-05/0.1267, allocations: 71.39 kB / 0.4917 GB, free: 10.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.906e-05/0.1268, allocations: 61.66 kB / 0.4917 GB, free: 10.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.127, allocations: 330.8 kB / 0.492 GB, free: 9.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.1272, allocations: 75.95 kB / 0.4921 GB, free: 9.816 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.1274, allocations: 120.2 kB / 0.4922 GB, free: 9.684 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.005234/0.1327, allocations: 0.7577 MB / 0.493 GB, free: 8.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1327, allocations: 3.938 kB / 0.493 GB, free: 8.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006461/0.1333, allocations: 291 kB / 0.4932 GB, free: 8.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.1334, allocations: 33.64 kB / 0.4933 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.1334, allocations: 0 / 0.4933 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1334, allocations: 11.92 kB / 0.4933 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.1338, allocations: 76 kB / 0.4934 GB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1338, allocations: 3.984 kB / 0.4934 GB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.134, allocations: 15.95 kB / 0.4934 GB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.134, allocations: 15.92 kB / 0.4934 GB, free: 8.422 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.0002107/0.1342, allocations: 171.4 kB / 0.4935 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.1343, allocations: 19.84 kB / 0.4936 GB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.1353, allocations: 449.1 kB / 0.494 GB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1353, allocations: 8 kB / 0.494 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1353, allocations: 0 / 0.494 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1353, allocations: 4 kB / 0.494 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004215/0.1357, allocations: 280.4 kB / 0.4943 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1357, allocations: 0 / 0.4943 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.1361, allocations: 59.91 kB / 0.4943 GB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.1361, allocations: 3.938 kB / 0.4943 GB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.1361, allocations: 11.98 kB / 0.4943 GB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.1361, allocations: 4 kB / 0.4944 GB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1361, allocations: 0 / 0.4944 GB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009935/0.1371, allocations: 0.4964 MB / 0.4948 GB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.1371, allocations: 31.75 kB / 0.4949 GB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.1372, allocations: 11.95 kB / 0.4949 GB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.1374, allocations: 11.94 kB / 0.4949 GB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.1375, allocations: 35.88 kB / 0.4949 GB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.1375, allocations: 15.98 kB / 0.4949 GB, free: 6.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.482e-05/0.1376, allocations: 111.3 kB / 0.495 GB, free: 6.633 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1376, allocations: 0 / 0.495 GB, free: 6.633 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003338/0.1379, allocations: 64 kB / 0.4951 GB, free: 6.57 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.0001934/0.1381, allocations: 131.6 kB / 0.4952 GB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.1387, allocations: 267.2 kB / 0.4955 GB, free: 6.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1387, allocations: 0 / 0.4955 GB, free: 6.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.1391, allocations: 195.4 kB / 0.4957 GB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.1394, allocations: 34.33 kB / 0.4957 GB, free: 5.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009768/0.1404, allocations: 439.6 kB / 0.4961 GB, free: 5.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.1409, allocations: 0.7328 MB / 0.4968 GB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.141, allocations: 37.92 kB / 0.4969 GB, free: 4.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.1411, allocations: 39.41 kB / 0.4969 GB, free: 4.633 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1411, allocations: 0 / 0.4969 GB, free: 4.633 MB / 366.1 MB Notification: Performance of Templates: time 0.008371/0.1495, allocations: 3.578 MB / 0.5004 GB, free: 1.078 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: 5.899002279853448] Failed to read output from testmodel.py, exit status != 0: 0.15753351408056915 0.18136818200000002 0.055667763 Calling exit ...