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.001616/0.001616, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.00198/0.00198, allocations: 216.8 kB / 22.25 MB, free: 5.258 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.605/1.605, allocations: 230.6 MB / 256 MB, free: 7.789 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.03149/0.03149, allocations: 5.486 MB / 317.9 MB, free: 13.53 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.002076/0.002076, allocations: 71.89 kB / 442.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1155, allocations: 54.62 MB / 496.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003502/0.119, allocations: 1.625 MB / 498.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.1205, allocations: 0.67 MB / 499.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.1206, allocations: 4 kB / 499.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.1208, allocations: 11.86 kB / 499.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.1211, allocations: 63.69 kB / 499.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.1215, allocations: 123.6 kB / 499.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003128/0.1218, allocations: 187.5 kB / 499.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.484e-05/0.1219, allocations: 9.625 kB / 499.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002333/0.1222, allocations: 87.75 kB / 499.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1224, allocations: 107.7 kB / 499.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.1224, allocations: 12 kB / 499.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.1226, allocations: 63.95 kB / 499.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.128e-05/0.1226, allocations: 31.89 kB / 499.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.147e-05/0.1227, allocations: 71.69 kB / 499.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.123, allocations: 183.2 kB / 0.4883 GB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.123, allocations: 0 / 0.4883 GB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.123, allocations: 3.938 kB / 0.4883 GB, free: 13.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.123, allocations: 0 / 0.4883 GB, free: 13.56 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.0009235/0.1239, allocations: 387.5 kB / 0.4887 GB, free: 13.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.124, allocations: 12.03 kB / 0.4887 GB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.124, allocations: 42.75 kB / 0.4887 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.287e-05/0.1241, allocations: 16.84 kB / 0.4887 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.1244, allocations: 165.2 kB / 0.4889 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.1244, allocations: 8.375 kB / 0.4889 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.1245, allocations: 12.38 kB / 0.4889 GB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.1249, allocations: 209.9 kB / 0.4891 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1249, allocations: 0 / 0.4891 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.1249, allocations: 4 kB / 0.4891 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.125, allocations: 0 / 0.4891 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004109/0.1254, allocations: 164.5 kB / 0.4893 GB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008224/0.1262, allocations: 0.5352 MB / 0.4898 GB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006993/0.1269, allocations: 212.4 kB / 0.49 GB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.1271, allocations: 106.5 kB / 0.4901 GB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.905e-05/0.1272, allocations: 8 kB / 0.4901 GB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003999/0.1276, allocations: 240.3 kB / 0.4903 GB, free: 11.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.1276, allocations: 0 / 0.4903 GB, free: 11.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009028/0.1285, allocations: 406 kB / 0.4907 GB, free: 10.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.1286, allocations: 136.5 kB / 0.4909 GB, free: 10.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.1287, allocations: 133.2 kB / 0.491 GB, free: 10.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.1288, allocations: 33.7 kB / 0.491 GB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1289, allocations: 100.5 kB / 0.4911 GB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.024e-05/0.129, allocations: 83.36 kB / 0.4912 GB, free: 10.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.1291, allocations: 61.66 kB / 0.4913 GB, free: 10.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1293, allocations: 326.8 kB / 0.4916 GB, free: 9.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.1295, allocations: 105.5 kB / 0.4917 GB, free: 9.828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.1298, allocations: 145.9 kB / 0.4918 GB, free: 9.664 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.004936/0.1347, allocations: 0.779 MB / 0.4926 GB, free: 8.836 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1347, allocations: 0 / 0.4926 GB, free: 8.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006915/0.1354, allocations: 332.6 kB / 0.4929 GB, free: 8.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.1354, allocations: 37.83 kB / 0.4929 GB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1354, allocations: 0 / 0.4929 GB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1355, allocations: 4 kB / 0.4929 GB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004346/0.1359, allocations: 67.86 kB / 0.493 GB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1359, allocations: 4 kB / 0.493 GB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.1361, allocations: 23.83 kB / 0.493 GB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.1362, allocations: 11.98 kB / 0.493 GB, free: 8.34 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.0002179/0.1364, allocations: 179.3 kB / 0.4932 GB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.1364, allocations: 19.89 kB / 0.4932 GB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.1374, allocations: 490.6 kB / 0.4937 GB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1374, allocations: 4 kB / 0.4937 GB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1374, allocations: 0 / 0.4937 GB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.1375, allocations: 3.984 kB / 0.4937 GB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.1378, allocations: 248.5 kB / 0.4939 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1378, allocations: 0 / 0.4939 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.1381, allocations: 59.84 kB / 0.494 GB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1381, allocations: 0 / 0.494 GB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.1381, allocations: 15.98 kB / 0.494 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1381, allocations: 7.938 kB / 0.494 GB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1381, allocations: 4 kB / 0.494 GB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1391, allocations: 0.5507 MB / 0.4946 GB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.1392, allocations: 31.77 kB / 0.4946 GB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.759e-05/0.1392, allocations: 11.98 kB / 0.4946 GB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.1394, allocations: 8 kB / 0.4946 GB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.417e-05/0.1395, allocations: 35.89 kB / 0.4946 GB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.1395, allocations: 15.98 kB / 0.4947 GB, free: 6.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001186/0.1397, allocations: 109.8 kB / 0.4948 GB, free: 6.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1397, allocations: 0 / 0.4948 GB, free: 6.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.14, allocations: 75.98 kB / 0.4948 GB, free: 6.391 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.001483/0.1415, allocations: 1.105 MB / 0.4959 GB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.1421, allocations: 338.4 kB / 0.4962 GB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1421, allocations: 0 / 0.4962 GB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.1425, allocations: 228.9 kB / 0.4965 GB, free: 4.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.1428, allocations: 37.66 kB / 0.4965 GB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.1463, allocations: 2.322 MB / 0.4988 GB, free: 2.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.1464, allocations: 121 kB / 0.4989 GB, free: 1.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001562/0.1466, allocations: 37.92 kB / 0.4989 GB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.1468, allocations: 75.39 kB / 0.499 GB, free: 1.887 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1468, allocations: 0 / 0.499 GB, free: 1.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03937/0.1861, allocations: 6.053 MB / 0.5049 GB, free: 11.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.77, allocations: 5.766 kB / 0.5049 GB, free: 11.99 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.239582006819546] Failed to read output from testmodel.py, exit status != 0: 11.881283717229962 12.130127049 12.003696521 Calling exit ...