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.001488/0.001488, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001716/0.001716, allocations: 213.8 kB / 22.25 MB, free: 5.082 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.546/1.546, allocations: 230.6 MB / 256 MB, free: 8.027 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.03049/0.03049, allocations: 5.482 MB / 317.9 MB, free: 13.84 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.002009/0.002009, allocations: 67.89 kB / 442.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1228, allocations: 54.62 MB / 496.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002857/0.1257, allocations: 1.675 MB / 498.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.127, allocations: 0.7439 MB / 499.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.985e-05/0.1271, allocations: 0 / 499.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 9.983e-05/0.1272, allocations: 11.86 kB / 499.3 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.1275, allocations: 63.67 kB / 499.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.1277, allocations: 115.7 kB / 499.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.128, allocations: 179.5 kB / 499.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.722e-05/0.1281, allocations: 21.56 kB / 499.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.1283, allocations: 87.75 kB / 499.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.1285, allocations: 111.7 kB / 499.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.1285, allocations: 12 kB / 499.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1286, allocations: 63.97 kB / 499.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.904e-05/0.1287, allocations: 35.89 kB / 500 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.614e-05/0.1288, allocations: 71.64 kB / 0.4883 GB, free: 14.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.129, allocations: 183.2 kB / 0.4885 GB, free: 14.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.129, allocations: 0 / 0.4885 GB, free: 14.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.129, allocations: 0 / 0.4885 GB, free: 14.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.129, allocations: 0 / 0.4885 GB, free: 14.07 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.0008687/0.1299, allocations: 395.5 kB / 0.4889 GB, free: 13.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1299, allocations: 8.031 kB / 0.4889 GB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.13, allocations: 46.73 kB / 0.4889 GB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.259e-05/0.13, allocations: 20.78 kB / 0.4889 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.1303, allocations: 158.3 kB / 0.4891 GB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.1303, allocations: 16.38 kB / 0.4891 GB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.1304, allocations: 12.38 kB / 0.4891 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/0.1308, allocations: 178.3 kB / 0.4893 GB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1308, allocations: 4 kB / 0.4893 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.1308, allocations: 4 kB / 0.4893 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1308, allocations: 4 kB / 0.4893 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003717/0.1312, allocations: 135.8 kB / 0.4894 GB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007454/0.132, allocations: 0.5624 MB / 0.49 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006317/0.1326, allocations: 178.7 kB / 0.4902 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.1328, allocations: 76.81 kB / 0.4902 GB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.457e-05/0.1329, allocations: 11.97 kB / 0.4902 GB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003638/0.1332, allocations: 206.6 kB / 0.4904 GB, free: 11.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.1332, allocations: 4 kB / 0.4904 GB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008234/0.1341, allocations: 342.6 kB / 0.4908 GB, free: 11.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.1342, allocations: 136.5 kB / 0.4909 GB, free: 11.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.1343, allocations: 126.1 kB / 0.491 GB, free: 11.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.1343, allocations: 33.7 kB / 0.491 GB, free: 11.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.884e-05/0.1344, allocations: 96.52 kB / 0.4911 GB, free: 11.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.743e-05/0.1345, allocations: 79.38 kB / 0.4912 GB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-05/0.1345, allocations: 61.66 kB / 0.4913 GB, free: 10.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1347, allocations: 334.8 kB / 0.4916 GB, free: 10.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.1349, allocations: 71.95 kB / 0.4917 GB, free: 10.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.1351, allocations: 116.2 kB / 0.4918 GB, free: 10.45 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.005113/0.1402, allocations: 0.7539 MB / 0.4925 GB, free: 9.648 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.1402, allocations: 3.938 kB / 0.4925 GB, free: 9.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006513/0.1409, allocations: 302.9 kB / 0.4928 GB, free: 9.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.1409, allocations: 33.7 kB / 0.4928 GB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1409, allocations: 3.984 kB / 0.4928 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.141, allocations: 4 kB / 0.4928 GB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.1414, allocations: 59.88 kB / 0.4929 GB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1414, allocations: 7.984 kB / 0.4929 GB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.1416, allocations: 19.89 kB / 0.4929 GB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.863e-05/0.1416, allocations: 20.11 kB / 0.4929 GB, free: 9.184 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.000195/0.1418, allocations: 169.6 kB / 0.4931 GB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.1418, allocations: 27.78 kB / 0.4931 GB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009654/0.1428, allocations: 453.1 kB / 0.4936 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1428, allocations: 4 kB / 0.4936 GB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1428, allocations: 0 / 0.4936 GB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.1428, allocations: 3.984 kB / 0.4936 GB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003283/0.1431, allocations: 280.4 kB / 0.4938 GB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1431, allocations: 0 / 0.4938 GB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.1435, allocations: 63.84 kB / 0.4939 GB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1435, allocations: 0 / 0.4939 GB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/0.1435, allocations: 19.98 kB / 0.4939 GB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1435, allocations: 4 kB / 0.4939 GB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1435, allocations: 3.984 kB / 0.4939 GB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009991/0.1445, allocations: 0.5002 MB / 0.4944 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.332e-05/0.1446, allocations: 31.81 kB / 0.4944 GB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.1446, allocations: 11.95 kB / 0.4945 GB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.1448, allocations: 8 kB / 0.4945 GB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.596e-05/0.1449, allocations: 39.88 kB / 0.4945 GB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.1449, allocations: 12 kB / 0.4945 GB, free: 7.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.929e-05/0.145, allocations: 107.2 kB / 0.4946 GB, free: 7.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.145, allocations: 0 / 0.4946 GB, free: 7.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003139/0.1453, allocations: 64 kB / 0.4947 GB, free: 7.32 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.001353/0.1467, allocations: 1.047 MB / 0.4957 GB, free: 6.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006355/0.1473, allocations: 287 kB / 0.496 GB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1473, allocations: 0 / 0.496 GB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.1476, allocations: 187.5 kB / 0.4962 GB, free: 5.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.1479, allocations: 31.98 kB / 0.4962 GB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.1511, allocations: 2.177 MB / 0.4983 GB, free: 3.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1515, allocations: 0.7289 MB / 0.499 GB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.1516, allocations: 41.88 kB / 0.4991 GB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.1518, allocations: 79.39 kB / 0.4991 GB, free: 2.562 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1518, allocations: 0 / 0.4991 GB, free: 2.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.1849, allocations: 5.66 MB / 0.5047 GB, free: 13.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.56, allocations: 7.984 kB / 0.5047 GB, free: 13.03 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --stepSize=60 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.595191634027287] Failed to read output from testmodel.py, exit status != 0: 11.671543173026294 11.896834313 11.569850017 Calling exit ...