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.001752/0.001752, 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.002223/0.002223, 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.569/1.569, allocations: 230.6 MB / 256 MB, free: 8.012 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.03126/0.03126, allocations: 5.483 MB / 317.9 MB, free: 13.75 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: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) [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.002039/0.002039, allocations: 63.91 kB / 442.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1198, allocations: 54.62 MB / 496.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003166/0.123, allocations: 1.679 MB / 498.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.1245, allocations: 0.74 MB / 499.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.501e-05/0.1246, allocations: 7.938 kB / 499.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.1247, allocations: 11.86 kB / 499.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.125, allocations: 59.69 kB / 499.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.1253, allocations: 111.7 kB / 499.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.1255, allocations: 191.5 kB / 499.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.1257, allocations: 5.641 kB / 499.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.1259, allocations: 99.67 kB / 499.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002285/0.1261, allocations: 115.7 kB / 499.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.1261, allocations: 12 kB / 499.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1263, allocations: 59.97 kB / 499.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.1263, allocations: 31.89 kB / 500 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.174e-05/0.1264, allocations: 75.64 kB / 0.4883 GB, free: 13.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.1267, allocations: 179.6 kB / 0.4885 GB, free: 13.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1267, allocations: 0 / 0.4885 GB, free: 13.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1267, allocations: 0 / 0.4885 GB, free: 13.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1267, allocations: 4 kB / 0.4885 GB, free: 13.81 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.0009334/0.1276, allocations: 391.4 kB / 0.4889 GB, free: 13.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1277, allocations: 12.03 kB / 0.4889 GB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.1277, allocations: 42.73 kB / 0.4889 GB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.551e-05/0.1278, allocations: 16.84 kB / 0.4889 GB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.1281, allocations: 158.3 kB / 0.4891 GB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.1281, allocations: 4.375 kB / 0.4891 GB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/0.1282, allocations: 20.25 kB / 0.4891 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.1286, allocations: 180.2 kB / 0.4893 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1286, allocations: 0 / 0.4893 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1286, allocations: 4 kB / 0.4893 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1286, allocations: 0 / 0.4893 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003756/0.129, allocations: 135.8 kB / 0.4894 GB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008235/0.1298, allocations: 0.5663 MB / 0.49 GB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006619/0.1305, allocations: 189.5 kB / 0.4902 GB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.1307, allocations: 68.81 kB / 0.4902 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.1308, allocations: 15.91 kB / 0.4902 GB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004082/0.1312, allocations: 216.8 kB / 0.4904 GB, free: 11.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1312, allocations: 0 / 0.4904 GB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008955/0.1321, allocations: 339.1 kB / 0.4908 GB, free: 11.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1322, allocations: 136.5 kB / 0.4909 GB, free: 11.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.1323, allocations: 130.1 kB / 0.491 GB, free: 11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.1324, allocations: 29.7 kB / 0.491 GB, free: 10.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/0.1325, allocations: 100.5 kB / 0.4911 GB, free: 10.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.1325, allocations: 79.38 kB / 0.4912 GB, free: 10.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.914e-05/0.1326, allocations: 61.66 kB / 0.4913 GB, free: 10.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1328, allocations: 334.8 kB / 0.4916 GB, free: 10.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.133, allocations: 71.95 kB / 0.4917 GB, free: 10.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.1333, allocations: 120.2 kB / 0.4918 GB, free: 10.18 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.005077/0.1384, allocations: 0.7499 MB / 0.4925 GB, free: 9.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1384, allocations: 0 / 0.4925 GB, free: 9.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006931/0.1391, allocations: 302.9 kB / 0.4928 GB, free: 9.082 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.843e-05/0.1391, allocations: 37.64 kB / 0.4928 GB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1391, allocations: 3.984 kB / 0.4928 GB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1391, allocations: 4 kB / 0.4928 GB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003815/0.1395, allocations: 59.94 kB / 0.4929 GB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.1395, allocations: 11.92 kB / 0.4929 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.1397, allocations: 11.95 kB / 0.4929 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.1398, allocations: 16.11 kB / 0.4929 GB, free: 8.934 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.000216/0.14, allocations: 171.4 kB / 0.4931 GB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.438e-05/0.14, allocations: 19.84 kB / 0.4931 GB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.1411, allocations: 453.1 kB / 0.4936 GB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.1411, allocations: 8 kB / 0.4936 GB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1411, allocations: 0 / 0.4936 GB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1411, allocations: 3.984 kB / 0.4936 GB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003358/0.1414, allocations: 276.4 kB / 0.4938 GB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1414, allocations: 4 kB / 0.4938 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.1417, allocations: 63.84 kB / 0.4939 GB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1417, allocations: 4 kB / 0.4939 GB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.1418, allocations: 11.98 kB / 0.4939 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1418, allocations: 0 / 0.4939 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1418, allocations: 0 / 0.4939 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009762/0.1427, allocations: 0.508 MB / 0.4944 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.1428, allocations: 23.81 kB / 0.4944 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.816e-05/0.1428, allocations: 15.95 kB / 0.4944 GB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.143, allocations: 11.94 kB / 0.4945 GB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.239e-05/0.1431, allocations: 31.88 kB / 0.4945 GB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.1431, allocations: 12 kB / 0.4945 GB, free: 7.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.137e-05/0.1432, allocations: 111.2 kB / 0.4946 GB, free: 7.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1432, allocations: 0 / 0.4946 GB, free: 7.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1435, allocations: 64 kB / 0.4947 GB, free: 7.078 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.00137/0.1449, allocations: 1.048 MB / 0.4957 GB, free: 5.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006165/0.1455, allocations: 287 kB / 0.496 GB, free: 5.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1455, allocations: 320 / 0.496 GB, free: 5.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.1458, allocations: 187.3 kB / 0.4961 GB, free: 5.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.1461, allocations: 34.16 kB / 0.4962 GB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.1494, allocations: 2.185 MB / 0.4983 GB, free: 3.176 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.1498, allocations: 0.7289 MB / 0.499 GB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.15, allocations: 37.92 kB / 0.4991 GB, free: 2.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.1501, allocations: 71.39 kB / 0.4991 GB, free: 2.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1501, allocations: 0 / 0.4991 GB, free: 2.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03584/0.1859, allocations: 5.672 MB / 0.5047 GB, free: 12.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.43, allocations: 15.94 kB / 0.5047 GB, free: 12.77 MB / 382.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.05419649599935] Failed to read output from testmodel.py, exit status != 0: 11.543232894000539 11.813882965 11.441901541 Calling exit ...