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.001651/0.001651, allocations: 110.2 kB / 16.38 MB, free: 6.477 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.001595/0.001595, allocations: 190.2 kB / 17.32 MB, free: 5.785 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.264/2.264, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04545/0.04545, allocations: 5.401 MB / 296.6 MB, free: 9.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 75.83 kB / 409.9 MB, free: 26.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1642, allocations: 50.62 MB / 460.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003901/0.1682, allocations: 1.649 MB / 462.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1698, allocations: 0.7049 MB / 462.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1699, allocations: 0 / 462.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.17, allocations: 23.8 kB / 462.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003017/0.1704, allocations: 55.67 kB / 463 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.1707, allocations: 111.8 kB / 463.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.171, allocations: 191.4 kB / 463.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1711, allocations: 13.44 kB / 463.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.1713, allocations: 87.75 kB / 463.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.1716, allocations: 119.6 kB / 463.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.1716, allocations: 12 kB / 463.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.1718, allocations: 67.95 kB / 463.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.7e-05/0.1719, allocations: 35.89 kB / 463.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.073e-05/0.1719, allocations: 67.7 kB / 463.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.1723, allocations: 171.4 kB / 463.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1723, allocations: 0 / 463.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.1723, allocations: 0 / 463.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1724, allocations: 0 / 463.8 MB, free: 4.094 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.001032/0.1734, allocations: 476.7 kB / 464.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.1735, allocations: 12.03 kB / 464.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.595e-05/0.1735, allocations: 12.75 kB / 464.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.1739, allocations: 214.9 kB / 464.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.174, allocations: 8.375 kB / 464.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.174, allocations: 8.375 kB / 464.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004272/0.1745, allocations: 185.2 kB / 464.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1745, allocations: 0 / 464.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.1745, allocations: 4 kB / 464.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1745, allocations: 4 kB / 464.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004019/0.175, allocations: 127.9 kB / 464.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008421/0.1758, allocations: 0.6023 MB / 465.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.1765, allocations: 194.7 kB / 465.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.1768, allocations: 88.77 kB / 465.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.1769, allocations: 93.08 kB / 465.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003987/0.1773, allocations: 202.6 kB / 466 MB, free: 1.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 5.861e-06/0.1773, allocations: 3.984 kB / 466 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009216/0.1783, allocations: 340.6 kB / 466.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1784, allocations: 140.5 kB / 466.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.1787, allocations: 130.1 kB / 466.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.1787, allocations: 29.7 kB / 466.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.1789, allocations: 108.3 kB / 466.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.189e-05/0.179, allocations: 71 kB / 466.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1791, allocations: 57.67 kB / 466.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002937/0.1794, allocations: 330.8 kB / 467.2 MB, free: 424 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1796, allocations: 75.95 kB / 467.3 MB, free: 348 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.1799, allocations: 124.7 kB / 467.4 MB, free: 208 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.005318/0.1852, allocations: 0.8284 MB / 468.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.1853, allocations: 3.938 kB / 468.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008552/0.1861, allocations: 287.1 kB / 468.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.267e-05/0.1862, allocations: 45.62 kB / 468.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.1862, allocations: 0 / 468.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.488e-05/0.1863, allocations: 4 kB / 468.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.1867, allocations: 67.86 kB / 468.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.1868, allocations: 4 kB / 468.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.187, allocations: 15.84 kB / 468.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.1871, allocations: 15.98 kB / 468.7 MB, free: 14.86 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.000356/0.1875, allocations: 168.9 kB / 468.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.1875, allocations: 27.67 kB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001123/0.1887, allocations: 441.1 kB / 469.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.517e-06/0.1887, allocations: 4 kB / 469.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1887, allocations: 0 / 469.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.1887, allocations: 3.984 kB / 469.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004248/0.1891, allocations: 305.2 kB / 469.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1892, allocations: 0 / 469.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.1895, allocations: 63.89 kB / 469.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.1895, allocations: 11.94 kB / 469.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.1895, allocations: 8 kB / 469.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1895, allocations: 0 / 469.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1896, allocations: 0 / 469.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.1906, allocations: 496.9 kB / 470.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.1907, allocations: 104.7 kB / 470.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.238e-05/0.1908, allocations: 12 kB / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.191, allocations: 16.05 kB / 470.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1911, allocations: 31.89 kB / 470.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.1912, allocations: 19.98 kB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.1913, allocations: 106 kB / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1913, allocations: 0 / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.1917, allocations: 64 kB / 470.5 MB, free: 12.9 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.0002414/0.1919, allocations: 127.2 kB / 470.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007269/0.1926, allocations: 291.5 kB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.1927, allocations: 7.875 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.193, allocations: 235.1 kB / 471.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.1934, allocations: 35.92 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.1945, allocations: 461.9 kB / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.195, allocations: 0.7366 MB / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.1951, allocations: 39.41 kB / 472.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1951, allocations: 3.938 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Templates: time 0.00676/0.2019, allocations: 2.969 MB / 475.4 MB, free: 7.938 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)