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.001413/0.001413, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.01161/0.01161, allocations: 173.2 kB / 16.26 MB, free: 6.613 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.458/1.458, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1646/0.1646, allocations: 5.371 MB / 296.8 MB, free: 3.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003808, allocations: 8 kB / 359.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1176, allocations: 51.6 MB / 410.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002031/0.1197, allocations: 1.365 MB / 412.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.1212, allocations: 0.6935 MB / 412.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1214, allocations: 0 / 412.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.1215, allocations: 7.922 kB / 412.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.1218, allocations: 51.75 kB / 412.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.1222, allocations: 107.8 kB / 413 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.1225, allocations: 171.5 kB / 413.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.1226, allocations: 21.44 kB / 413.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.1228, allocations: 67.81 kB / 413.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.1231, allocations: 115.6 kB / 413.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.1231, allocations: 4 kB / 413.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.1233, allocations: 59.95 kB / 413.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.934e-05/0.1233, allocations: 27.89 kB / 413.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1234, allocations: 89.41 kB / 413.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.1237, allocations: 171.6 kB / 413.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1237, allocations: 0 / 413.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1237, allocations: 8 kB / 413.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1237, allocations: 0 / 413.7 MB, free: 10.64 MB / 350.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.0009934/0.1247, allocations: 436.8 kB / 414.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1248, allocations: 8.031 kB / 414.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.037e-05/0.1249, allocations: 12.84 kB / 414.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.1251, allocations: 212 kB / 414.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.34e-05/0.1252, allocations: 16.38 kB / 414.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.1252, allocations: 12.38 kB / 414.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.1257, allocations: 172.4 kB / 414.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1257, allocations: 0 / 414.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.1257, allocations: 8 kB / 414.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.1257, allocations: 4 kB / 414.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003798/0.1261, allocations: 131.9 kB / 414.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007849/0.1269, allocations: 0.5945 MB / 415.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.1276, allocations: 202.7 kB / 415.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.1278, allocations: 84.77 kB / 415.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/0.128, allocations: 85.09 kB / 415.7 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000386/0.1284, allocations: 198.7 kB / 415.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.994e-06/0.1284, allocations: 0 / 415.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007884/0.1292, allocations: 345.2 kB / 416.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.1293, allocations: 140.5 kB / 416.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.1294, allocations: 126.1 kB / 416.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.1294, allocations: 29.7 kB / 416.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.1295, allocations: 104.4 kB / 416.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.182e-05/0.1296, allocations: 78.83 kB / 416.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.717e-05/0.1296, allocations: 25.72 kB / 416.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1297, allocations: 330.8 kB / 417 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.13, allocations: 79.95 kB / 417.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.1302, allocations: 112.2 kB / 417.2 MB, free: 6.84 MB / 350.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.005011/0.1352, allocations: 0.8324 MB / 418 MB, free: 5.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.1352, allocations: 0 / 418 MB, free: 5.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006249/0.1359, allocations: 287 kB / 418.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.1359, allocations: 41.62 kB / 418.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1359, allocations: 3.984 kB / 418.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.136, allocations: 4 kB / 418.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/0.1363, allocations: 67.86 kB / 418.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1363, allocations: 7.938 kB / 418.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.1366, allocations: 15.81 kB / 418.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.1366, allocations: 16.11 kB / 418.5 MB, free: 5.492 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 sytem: $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.0001995/0.1368, allocations: 179.9 kB / 418.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.1368, allocations: 15.84 kB / 418.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009107/0.1378, allocations: 445 kB / 419.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.1378, allocations: 4 kB / 419.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1378, allocations: 4 kB / 419.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1378, allocations: 3.984 kB / 419.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002881/0.1381, allocations: 305.2 kB / 419.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1381, allocations: 0 / 419.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.1384, allocations: 63.89 kB / 419.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.1384, allocations: 7.938 kB / 419.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.1384, allocations: 12 kB / 419.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1385, allocations: 0 / 419.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.1385, allocations: 3.984 kB / 419.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008462/0.1393, allocations: 0.5003 MB / 420 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.1394, allocations: 100.8 kB / 420.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.1394, allocations: 8 kB / 420.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.1396, allocations: 15.98 kB / 420.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.1397, allocations: 27.91 kB / 420.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-05/0.1397, allocations: 15.98 kB / 420.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.629e-05/0.1398, allocations: 109.5 kB / 420.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1398, allocations: 4.062 kB / 420.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.1401, allocations: 64 kB / 420.3 MB, free: 3.516 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.000178/0.1403, allocations: 119.2 kB / 420.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006465/0.141, allocations: 283.3 kB / 420.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.141, allocations: 4 kB / 420.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.1413, allocations: 235.2 kB / 421 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.1416, allocations: 37.58 kB / 421 MB, free: 2.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009897/0.1426, allocations: 0.5412 MB / 421.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.143, allocations: 0.729 MB / 422.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.1432, allocations: 41.92 kB / 422.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.1433, allocations: 39.41 kB / 422.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of SimCode: time 3.486e-06/0.1433, allocations: 0 / 422.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of Templates: time 0.2133/0.3566, allocations: 3.109 MB / 425.5 MB, free: 44.48 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: