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.001307/0.001307, allocations: 107 kB / 16.41 MB, free: 6.508 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.001078/0.001078, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.312/1.312, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02778/0.02778, allocations: 5.404 MB / 296.6 MB, free: 9.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 67.88 kB / 410 MB, free: 26.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09697, allocations: 50.62 MB / 460.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.00317/0.1002, allocations: 1.641 MB / 462.2 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1016, allocations: 0.7089 MB / 462.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1017, allocations: 0 / 462.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.1019, allocations: 15.86 kB / 462.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003003/0.1022, allocations: 55.69 kB / 463 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.1026, allocations: 123.7 kB / 463.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.1029, allocations: 191.4 kB / 463.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.103, allocations: 9.453 kB / 463.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1032, allocations: 83.73 kB / 463.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.1035, allocations: 111.7 kB / 463.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.77e-05/0.1036, allocations: 12 kB / 463.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.1037, allocations: 75.94 kB / 463.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.491e-05/0.1038, allocations: 39.83 kB / 463.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.548e-05/0.1039, allocations: 67.7 kB / 463.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002895/0.1042, allocations: 179.4 kB / 463.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1042, allocations: 0 / 463.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1042, allocations: 0 / 463.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.1042, allocations: 0 / 463.9 MB, free: 4.062 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.0009599/0.1052, allocations: 468.8 kB / 464.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.1052, allocations: 12.03 kB / 464.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.845e-05/0.1053, allocations: 12.75 kB / 464.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.1057, allocations: 216 kB / 464.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.1057, allocations: 4.375 kB / 464.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.1058, allocations: 12.38 kB / 464.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.1062, allocations: 185.3 kB / 464.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.1062, allocations: 0 / 464.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1062, allocations: 0 / 464.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1062, allocations: 4 kB / 464.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003549/0.1066, allocations: 131.8 kB / 464.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007782/0.1074, allocations: 0.5984 MB / 465.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.108, allocations: 194.7 kB / 465.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.1083, allocations: 92.75 kB / 465.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.1084, allocations: 85.09 kB / 465.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003619/0.1088, allocations: 214.2 kB / 466.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1088, allocations: 4 kB / 466.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008224/0.1096, allocations: 339 kB / 466.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.1097, allocations: 132.5 kB / 466.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.1098, allocations: 130.1 kB / 466.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.1099, allocations: 29.7 kB / 466.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.352e-05/0.1099, allocations: 104.4 kB / 466.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.678e-05/0.11, allocations: 74.95 kB / 466.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.576e-05/0.1101, allocations: 57.67 kB / 466.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1102, allocations: 330.8 kB / 467.2 MB, free: 404 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.1105, allocations: 67.95 kB / 467.3 MB, free: 336 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.1107, allocations: 132.7 kB / 467.4 MB, free: 188 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.004952/0.1157, allocations: 0.8324 MB / 468.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1157, allocations: 0 / 468.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00065/0.1164, allocations: 294.9 kB / 468.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.455e-05/0.1164, allocations: 41.62 kB / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.1165, allocations: 0 / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1165, allocations: 4 kB / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003994/0.1169, allocations: 71.98 kB / 468.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1169, allocations: 7.984 kB / 468.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.1171, allocations: 11.84 kB / 468.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.1172, allocations: 15.98 kB / 468.7 MB, free: 14.83 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.0002363/0.1174, allocations: 175.7 kB / 468.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/0.1175, allocations: 23.73 kB / 468.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009615/0.1184, allocations: 437.2 kB / 469.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1185, allocations: 8 kB / 469.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1185, allocations: 0 / 469.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.1185, allocations: 3.984 kB / 469.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003212/0.1188, allocations: 309.1 kB / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1188, allocations: 0 / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.1192, allocations: 59.91 kB / 469.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.1192, allocations: 7.922 kB / 469.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.1192, allocations: 15.94 kB / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1192, allocations: 0 / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1192, allocations: 0 / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009522/0.1202, allocations: 0.4891 MB / 470.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.997e-05/0.1203, allocations: 104.7 kB / 470.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.1203, allocations: 12 kB / 470.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.1205, allocations: 11.98 kB / 470.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.075e-05/0.1206, allocations: 27.91 kB / 470.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.1206, allocations: 19.98 kB / 470.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.608e-05/0.1207, allocations: 109.9 kB / 470.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1207, allocations: 0 / 470.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.1211, allocations: 64 kB / 470.6 MB, free: 12.87 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.0001897/0.1213, allocations: 127.2 kB / 470.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006235/0.1219, allocations: 283.6 kB / 471 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1219, allocations: 0 / 471 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.1223, allocations: 239.4 kB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.1226, allocations: 39.92 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009204/0.1235, allocations: 465.5 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1239, allocations: 0.7327 MB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.124, allocations: 43.41 kB / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.124, allocations: 0 / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of Templates: time 0.005842/0.1298, allocations: 2.988 MB / 475.4 MB, free: 7.895 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)