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.001371/0.001371, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001485/0.001485, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.2206/0.2206, allocations: 5.373 MB / 296.4 MB, free: 3.992 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 11.94 kB / 358.5 MB, free: 1.613 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1205, allocations: 51.6 MB / 410.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002058/0.1226, allocations: 1.307 MB / 411.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.1238, allocations: 0.6588 MB / 412 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.698e-05/0.1239, allocations: 4 kB / 412 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.646e-05/0.1239, allocations: 7.922 kB / 412 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002916/0.1242, allocations: 51.84 kB / 412.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.1245, allocations: 91.7 kB / 412.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.1248, allocations: 115.7 kB / 412.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1249, allocations: 13.45 kB / 412.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.1251, allocations: 79.73 kB / 412.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.1253, allocations: 107.7 kB / 412.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.1254, allocations: 4 kB / 412.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.1255, allocations: 55.95 kB / 412.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.648e-05/0.1255, allocations: 23.91 kB / 412.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.451e-05/0.1256, allocations: 45.64 kB / 412.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.1258, allocations: 120 kB / 412.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.1258, allocations: 4 kB / 412.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.828e-06/0.1258, allocations: 0 / 412.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1258, allocations: 3.938 kB / 412.7 MB, free: 11.26 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.0009125/0.1267, allocations: 436.7 kB / 413.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1268, allocations: 8.031 kB / 413.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.851e-05/0.1268, allocations: 15.86 kB / 413.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.1271, allocations: 206.8 kB / 413.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.1271, allocations: 8 kB / 413.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.1272, allocations: 8 kB / 413.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003935/0.1276, allocations: 180.4 kB / 413.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1276, allocations: 0 / 413.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.1276, allocations: 4 kB / 413.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.1277, allocations: 4 kB / 413.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003495/0.128, allocations: 140.2 kB / 413.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007691/0.1288, allocations: 0.595 MB / 414.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006033/0.1294, allocations: 202.9 kB / 414.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.1295, allocations: 85.23 kB / 414.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003778/0.1299, allocations: 198.6 kB / 414.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.1299, allocations: 0 / 414.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008013/0.1307, allocations: 422.4 kB / 415.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.742e-05/0.1308, allocations: 136.5 kB / 415.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.131, allocations: 132.9 kB / 415.5 MB, free: 8.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.131, allocations: 33.7 kB / 415.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.1311, allocations: 100.4 kB / 415.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.701e-05/0.1311, allocations: 75 kB / 415.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.1312, allocations: 4 kB / 415.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1313, allocations: 322.8 kB / 416 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1315, allocations: 79.94 kB / 416.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.1317, allocations: 112.8 kB / 416.2 MB, free: 7.492 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.004438/0.1362, allocations: 0.6183 MB / 416.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1362, allocations: 4 kB / 416.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000668/0.1369, allocations: 302.8 kB / 417.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.085e-05/0.1369, allocations: 33.83 kB / 417.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.137, allocations: 4 kB / 417.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.137, allocations: 0 / 417.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/0.1374, allocations: 67.86 kB / 417.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.1374, allocations: 4 kB / 417.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.1376, allocations: 15.84 kB / 417.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.1377, allocations: 19.94 kB / 417.2 MB, free: 6.379 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.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002281/0.1379, allocations: 187.3 kB / 417.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.138, allocations: 15.81 kB / 417.4 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009091/0.1389, allocations: 441 kB / 417.9 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1389, allocations: 4 kB / 417.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.1389, allocations: 3.984 kB / 417.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.1389, allocations: 0 / 417.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000338/0.1393, allocations: 317.1 kB / 418.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1393, allocations: 8 kB / 418.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.1396, allocations: 55.89 kB / 418.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1396, allocations: 4 kB / 418.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.1396, allocations: 15.98 kB / 418.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1396, allocations: 0 / 418.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1396, allocations: 0 / 418.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008691/0.1405, allocations: 0.4886 MB / 418.8 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.135e-05/0.1406, allocations: 104.8 kB / 418.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.1406, allocations: 8 kB / 418.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.1408, allocations: 12 kB / 418.9 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.1409, allocations: 35.83 kB / 418.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/0.141, allocations: 8 kB / 418.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.579e-05/0.1411, allocations: 113.5 kB / 419 MB, free: 4.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1411, allocations: 0 / 419 MB, free: 4.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.1414, allocations: 64 kB / 419.1 MB, free: 4.406 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001924/0.1416, allocations: 123.8 kB / 419.2 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005726/0.1422, allocations: 283.1 kB / 419.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1422, allocations: 0 / 419.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.1425, allocations: 231.2 kB / 419.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.1427, allocations: 27.94 kB / 419.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008668/0.1436, allocations: 0.5298 MB / 420.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1439, allocations: 0.7368 MB / 421 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.1441, allocations: 41.91 kB / 421.1 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.373e-05/0.1442, allocations: 39.41 kB / 421.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1442, allocations: 0 / 421.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Templates: time 0.2127/0.3569, allocations: 2.973 MB / 424.1 MB, free: 44.45 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: