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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00988/0.00988, allocations: 97.38 kB / 15.73 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 195.5 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02643/0.02643, allocations: 5.398 MB / 295.9 MB, free: 9.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 55.91 kB / 409.3 MB, free: 26.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1268, allocations: 50.62 MB / 459.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003982/0.1309, allocations: 1.656 MB / 461.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.1327, allocations: 0.6972 MB / 462.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1328, allocations: 8 kB / 462.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.133, allocations: 15.8 kB / 462.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003512/0.1334, allocations: 63.67 kB / 462.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003796/0.1338, allocations: 115.7 kB / 462.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003369/0.1341, allocations: 179.5 kB / 462.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.1343, allocations: 17.42 kB / 462.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.1345, allocations: 91.75 kB / 462.7 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.1348, allocations: 111.7 kB / 462.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.321e-05/0.1349, allocations: 12 kB / 462.8 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.1351, allocations: 67.95 kB / 462.9 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.1351, allocations: 35.83 kB / 462.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.1353, allocations: 67.7 kB / 463 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.1357, allocations: 187.2 kB / 463.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1357, allocations: 0 / 463.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1357, allocations: 0 / 463.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.1357, allocations: 4 kB / 463.2 MB, free: 4.027 MB / 334.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.00116/0.1369, allocations: 468.6 kB / 463.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1369, allocations: 11.97 kB / 463.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.786e-05/0.137, allocations: 16.84 kB / 463.7 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.1374, allocations: 212.1 kB / 463.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.026e-05/0.1375, allocations: 8.375 kB / 463.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1375, allocations: 12.38 kB / 463.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/0.1381, allocations: 181 kB / 464.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1381, allocations: 0 / 464.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.1382, allocations: 4 kB / 464.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1382, allocations: 0 / 464.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005437/0.1387, allocations: 135.8 kB / 464.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.1398, allocations: 0.5945 MB / 464.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009186/0.1407, allocations: 202.7 kB / 465 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.141, allocations: 84.81 kB / 465.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001595/0.1412, allocations: 85.09 kB / 465.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000514/0.1417, allocations: 210.6 kB / 465.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.994e-06/0.1418, allocations: 0 / 465.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001229/0.143, allocations: 339.1 kB / 465.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.1431, allocations: 132.5 kB / 465.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.1433, allocations: 134.1 kB / 466 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.1433, allocations: 33.7 kB / 466 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.1434, allocations: 100.5 kB / 466.1 MB, free: 0.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1435, allocations: 75.33 kB / 466.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.1437, allocations: 61.66 kB / 466.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.1439, allocations: 326.8 kB / 466.6 MB, free: 372 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/0.1442, allocations: 83.89 kB / 466.6 MB, free: 288 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.1445, allocations: 120.7 kB / 466.8 MB, free: 152 kB / 334.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.006876/0.1514, allocations: 0.8362 MB / 467.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.1515, allocations: 0 / 467.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009612/0.1524, allocations: 303 kB / 467.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/0.1525, allocations: 33.64 kB / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1525, allocations: 0 / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.1526, allocations: 4 kB / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005404/0.1531, allocations: 71.86 kB / 468 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.1531, allocations: 0 / 468 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.1534, allocations: 11.95 kB / 468 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.406e-05/0.1535, allocations: 15.98 kB / 468 MB, free: 14.8 MB / 350.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.0003194/0.1538, allocations: 187.8 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.1539, allocations: 19.84 kB / 468.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.1552, allocations: 433.2 kB / 468.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.1553, allocations: 4 kB / 468.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.1553, allocations: 0 / 468.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.1553, allocations: 3.984 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.1558, allocations: 313.2 kB / 469 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1558, allocations: 0 / 469 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.1562, allocations: 63.89 kB / 469 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.1562, allocations: 7.938 kB / 469 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.1563, allocations: 8 kB / 469 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1563, allocations: 0 / 469 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1563, allocations: 7.922 kB / 469.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.1577, allocations: 0.4891 MB / 469.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.1578, allocations: 96.92 kB / 469.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.1579, allocations: 20.06 kB / 469.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.1581, allocations: 11.98 kB / 469.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.1582, allocations: 27.91 kB / 469.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.1583, allocations: 19.98 kB / 469.7 MB, free: 13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.1584, allocations: 109.8 kB / 469.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1584, allocations: 0 / 469.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004724/0.1589, allocations: 67.94 kB / 469.9 MB, free: 12.83 MB / 350.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.0002331/0.1592, allocations: 119.2 kB / 470 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008301/0.16, allocations: 295.6 kB / 470.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.16, allocations: 0 / 470.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.1605, allocations: 235.2 kB / 470.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004223/0.1609, allocations: 31.98 kB / 470.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.1622, allocations: 447.6 kB / 471 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.1626, allocations: 0.7405 MB / 471.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.1628, allocations: 33.94 kB / 471.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.163, allocations: 43.41 kB / 471.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of SimCode: time 2.665e-06/0.163, allocations: 0 / 471.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of Templates: time 0.0105/0.1735, allocations: 3.422 MB / 475.2 MB, free: 7.418 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile (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)