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.001483/0.001483, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001711/0.001711, allocations: 195.9 kB / 16.14 MB, free: 6.703 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.301/1.301, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1329/0.1329, allocations: 5.374 MB / 295.3 MB, free: 2.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 59.92 kB / 356.7 MB, free: 2.043 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1243, allocations: 50.62 MB / 407.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003019/0.1274, allocations: 1.692 MB / 409 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.1286, allocations: 0.7206 MB / 409.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.828e-05/0.1287, allocations: 4 kB / 409.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.1288, allocations: 7.922 kB / 409.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.129, allocations: 47.75 kB / 409.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.1293, allocations: 107.8 kB / 409.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001827/0.1295, allocations: 175.5 kB / 410.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.36e-05/0.1296, allocations: 17.44 kB / 410.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1297, allocations: 71.77 kB / 410.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.1299, allocations: 119.6 kB / 410.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.1299, allocations: 4 kB / 410.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.1301, allocations: 59.95 kB / 410.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.418e-05/0.1301, allocations: 23.89 kB / 410.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.1302, allocations: 67.64 kB / 410.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.1304, allocations: 167.8 kB / 410.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1304, allocations: 0 / 410.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1304, allocations: 3.984 kB / 410.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1304, allocations: 0 / 410.6 MB, free: 12.09 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.00087/0.1313, allocations: 468.8 kB / 411.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.1313, allocations: 8.031 kB / 411.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.1314, allocations: 16.75 kB / 411.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.1316, allocations: 212.1 kB / 411.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.1317, allocations: 8.375 kB / 411.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.1317, allocations: 12.38 kB / 411.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.1321, allocations: 176.4 kB / 411.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1321, allocations: 3.938 kB / 411.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.1321, allocations: 8 kB / 411.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.1322, allocations: 0 / 411.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.1325, allocations: 127.9 kB / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007208/0.1333, allocations: 0.606 MB / 412.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006838/0.134, allocations: 202.6 kB / 412.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.1342, allocations: 88.77 kB / 412.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.1343, allocations: 97.02 kB / 412.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003739/0.1347, allocations: 198.7 kB / 412.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.1347, allocations: 0 / 412.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008117/0.1355, allocations: 335 kB / 413.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/0.1356, allocations: 140.5 kB / 413.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.1357, allocations: 130.1 kB / 413.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.1358, allocations: 33.7 kB / 413.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.541e-05/0.1358, allocations: 104.4 kB / 413.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.469e-05/0.1359, allocations: 71 kB / 413.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.015e-05/0.136, allocations: 57.67 kB / 413.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1361, allocations: 326.8 kB / 414 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.1363, allocations: 75.95 kB / 414.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1366, allocations: 116.2 kB / 414.2 MB, free: 8.215 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.0051/0.1417, allocations: 0.8285 MB / 415 MB, free: 7.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1417, allocations: 0 / 415 MB, free: 7.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006049/0.1423, allocations: 286.9 kB / 415.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/0.1424, allocations: 45.62 kB / 415.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1424, allocations: 128 / 415.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1424, allocations: 8 kB / 415.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.1428, allocations: 63.86 kB / 415.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.1428, allocations: 7.984 kB / 415.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.143, allocations: 19.84 kB / 415.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.1431, allocations: 15.98 kB / 415.4 MB, free: 6.867 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.0001766/0.1432, allocations: 171.9 kB / 415.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.272e-05/0.1433, allocations: 19.75 kB / 415.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009148/0.1442, allocations: 444.8 kB / 416.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.1442, allocations: 4 kB / 416.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1442, allocations: 0 / 416.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.1442, allocations: 3.984 kB / 416.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.1445, allocations: 309.1 kB / 416.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1446, allocations: 8 kB / 416.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.1449, allocations: 51.97 kB / 416.4 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.1449, allocations: 11.92 kB / 416.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.1449, allocations: 11.94 kB / 416.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1449, allocations: 0 / 416.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1449, allocations: 3.938 kB / 416.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009031/0.1458, allocations: 0.4964 MB / 417 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.1459, allocations: 100.8 kB / 417.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.146, allocations: 16 kB / 417.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.1462, allocations: 11.98 kB / 417.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.1463, allocations: 31.89 kB / 417.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.1463, allocations: 15.98 kB / 417.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.444e-05/0.1464, allocations: 105.8 kB / 417.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1464, allocations: 0 / 417.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.1468, allocations: 67.98 kB / 417.3 MB, free: 4.895 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.0001794/0.147, allocations: 127.1 kB / 417.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006043/0.1476, allocations: 287.2 kB / 417.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1476, allocations: 4 kB / 417.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.1479, allocations: 227.3 kB / 417.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.1482, allocations: 34.52 kB / 418 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008913/0.1491, allocations: 0.5038 MB / 418.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.1494, allocations: 0.729 MB / 419.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.1496, allocations: 45.91 kB / 419.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1497, allocations: 35.41 kB / 419.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1497, allocations: 0 / 419.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of Templates: time 0.1604/0.3101, allocations: 3.151 MB / 422.4 MB, free: 47.48 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)