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.001232/0.001232, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 195.1 kB / 16.53 MB, free: 6.656 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.33/1.33, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1326/0.1326, allocations: 5.379 MB / 295.8 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001265, allocations: 55.91 kB / 357.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1038, allocations: 50.6 MB / 408 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003067/0.1069, allocations: 1.653 MB / 409.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.1084, allocations: 0.7088 MB / 410.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.1085, allocations: 4 kB / 410.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.1087, allocations: 11.86 kB / 410.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.109, allocations: 59.69 kB / 410.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.1093, allocations: 115.7 kB / 410.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002347/0.1096, allocations: 187.5 kB / 410.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.1097, allocations: 13.44 kB / 410.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.1098, allocations: 87.75 kB / 410.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.1101, allocations: 115.6 kB / 411 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.1101, allocations: 12 kB / 411 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.1103, allocations: 71.94 kB / 411 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.1103, allocations: 27.91 kB / 411.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.924e-05/0.1104, allocations: 75.69 kB / 411.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.1107, allocations: 171.7 kB / 411.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1107, allocations: 0 / 411.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1107, allocations: 0 / 411.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.1107, allocations: 7.938 kB / 411.3 MB, free: 11.63 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.0008422/0.1115, allocations: 468.7 kB / 411.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1116, allocations: 12.02 kB / 411.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.702e-05/0.1117, allocations: 16.75 kB / 411.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.1119, allocations: 200.2 kB / 412 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1119, allocations: 8.375 kB / 412 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.59e-05/0.1119, allocations: 20.31 kB / 412 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/0.1123, allocations: 172.4 kB / 412.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1123, allocations: 0 / 412.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.1124, allocations: 4 kB / 412.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.1124, allocations: 4 kB / 412.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003656/0.1128, allocations: 131.8 kB / 412.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007103/0.1135, allocations: 0.6022 MB / 412.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006721/0.1142, allocations: 202.7 kB / 413.1 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.1144, allocations: 88.77 kB / 413.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.1145, allocations: 81.11 kB / 413.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.1149, allocations: 205.3 kB / 413.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.095e-06/0.1149, allocations: 0 / 413.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008161/0.1157, allocations: 344.4 kB / 413.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.1158, allocations: 136.5 kB / 414 MB, free: 8.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.1159, allocations: 130.1 kB / 414.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.116, allocations: 33.7 kB / 414.1 MB, free: 8.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.116, allocations: 100.4 kB / 414.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.484e-05/0.1161, allocations: 71 kB / 414.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.143e-05/0.1162, allocations: 57.67 kB / 414.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.1163, allocations: 326.8 kB / 414.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1165, allocations: 79.89 kB / 414.7 MB, free: 7.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.1168, allocations: 124.7 kB / 414.9 MB, free: 7.766 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.005091/0.1219, allocations: 0.8369 MB / 415.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1219, allocations: 8 kB / 415.7 MB, free: 6.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006338/0.1225, allocations: 290.9 kB / 416 MB, free: 6.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.1226, allocations: 37.64 kB / 416 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1226, allocations: 0 / 416 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1226, allocations: 4 kB / 416 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.123, allocations: 63.92 kB / 416.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.123, allocations: 8.062 kB / 416.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.1232, allocations: 15.91 kB / 416.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.1233, allocations: 19.97 kB / 416.1 MB, free: 6.41 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.0001622/0.1234, allocations: 174.8 kB / 416.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.374e-05/0.1235, allocations: 23.69 kB / 416.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009218/0.1244, allocations: 444.8 kB / 416.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1244, allocations: 4 kB / 416.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1245, allocations: 3.984 kB / 416.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1245, allocations: 0 / 416.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002832/0.1248, allocations: 305.2 kB / 417.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1248, allocations: 0 / 417.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002972/0.1251, allocations: 63.89 kB / 417.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.1251, allocations: 7.938 kB / 417.1 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.1251, allocations: 11.98 kB / 417.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1251, allocations: 0 / 417.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1251, allocations: 4 kB / 417.2 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009495/0.1261, allocations: 0.4886 MB / 417.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.906e-05/0.1262, allocations: 104.7 kB / 417.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.1262, allocations: 11.98 kB / 417.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.1264, allocations: 8 kB / 417.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.992e-05/0.1265, allocations: 27.91 kB / 417.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-05/0.1265, allocations: 24.05 kB / 417.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.469e-05/0.1266, allocations: 109.1 kB / 417.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1266, allocations: 0 / 417.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003279/0.127, allocations: 68 kB / 418 MB, free: 4.441 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.0001647/0.1271, allocations: 125.6 kB / 418.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006656/0.1278, allocations: 303.2 kB / 418.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1278, allocations: 8.188 kB / 418.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.1281, allocations: 231.2 kB / 418.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.1284, allocations: 35.92 kB / 418.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008321/0.1293, allocations: 447.8 kB / 419.1 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1295, allocations: 0.7404 MB / 419.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.1297, allocations: 37.92 kB / 419.9 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.1298, allocations: 39.41 kB / 419.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1298, allocations: 0 / 419.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of Templates: time 0.1585/0.2883, allocations: 3.358 MB / 423.3 MB, free: 47.12 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)