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.006489/0.006489, allocations: 103 kB / 15.73 MB, free: 6.059 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.001172/0.001172, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02604/0.02604, allocations: 5.397 MB / 295.9 MB, free: 9.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 409.3 MB, free: 25.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.1004, allocations: 50.63 MB / 459.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003089/0.1036, allocations: 1.652 MB / 461.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1048, allocations: 0.705 MB / 462.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.828e-05/0.1049, allocations: 0 / 462.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.1051, allocations: 11.88 kB / 462.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.1054, allocations: 55.69 kB / 462.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.1056, allocations: 123.7 kB / 462.4 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.1058, allocations: 187.4 kB / 462.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.106, allocations: 17.42 kB / 462.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.1061, allocations: 83.8 kB / 462.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.1063, allocations: 111.7 kB / 462.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.1064, allocations: 11.98 kB / 462.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.1065, allocations: 75.94 kB / 462.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.857e-05/0.1066, allocations: 27.91 kB / 462.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.167e-05/0.1066, allocations: 79.58 kB / 463 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.1069, allocations: 175.4 kB / 463.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1069, allocations: 3.938 kB / 463.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1069, allocations: 0 / 463.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1069, allocations: 4 kB / 463.2 MB, free: 3.898 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.0007984/0.1077, allocations: 464.8 kB / 463.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1078, allocations: 8.031 kB / 463.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.941e-05/0.1078, allocations: 16.75 kB / 463.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.1081, allocations: 208.1 kB / 463.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1081, allocations: 12.38 kB / 463.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.1082, allocations: 12.38 kB / 463.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.1086, allocations: 177.3 kB / 464.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1087, allocations: 4 kB / 464.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.1087, allocations: 4 kB / 464.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1087, allocations: 4 kB / 464.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.1091, allocations: 135.8 kB / 464.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006709/0.1098, allocations: 0.5984 MB / 464.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006236/0.1104, allocations: 197.8 kB / 465 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.1107, allocations: 88.77 kB / 465.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.1108, allocations: 81.11 kB / 465.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003391/0.1111, allocations: 206.5 kB / 465.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.1111, allocations: 0 / 465.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000797/0.1119, allocations: 339 kB / 465.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/0.112, allocations: 148.5 kB / 465.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1121, allocations: 126.1 kB / 466 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.1122, allocations: 29.7 kB / 466 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.1122, allocations: 100.4 kB / 466.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.417e-05/0.1123, allocations: 74.88 kB / 466.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.586e-05/0.1124, allocations: 65.67 kB / 466.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1126, allocations: 322.8 kB / 466.6 MB, free: 244 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.1128, allocations: 75.95 kB / 466.6 MB, free: 168 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.113, allocations: 124.7 kB / 466.8 MB, free: 28 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.00467/0.1177, allocations: 0.8285 MB / 467.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1177, allocations: 0 / 467.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005685/0.1183, allocations: 295 kB / 467.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.1183, allocations: 37.64 kB / 467.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.1183, allocations: 4 kB / 467.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1183, allocations: 0 / 467.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003666/0.1187, allocations: 71.86 kB / 468 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1187, allocations: 0 / 468 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.1189, allocations: 27.77 kB / 468 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.119, allocations: 15.97 kB / 468 MB, free: 14.68 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.0001695/0.1191, allocations: 176.9 kB / 468.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.1192, allocations: 19.75 kB / 468.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000875/0.1201, allocations: 445.1 kB / 468.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1201, allocations: 0 / 468.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1201, allocations: 4 kB / 468.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1201, allocations: 0 / 468.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003221/0.1204, allocations: 305.2 kB / 469 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1204, allocations: 3.938 kB / 469 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.1207, allocations: 59.91 kB / 469 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.1207, allocations: 3.938 kB / 469 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.1208, allocations: 15.98 kB / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.1208, allocations: 4 kB / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1208, allocations: 0 / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008438/0.1216, allocations: 492.8 kB / 469.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.66e-05/0.1217, allocations: 112.7 kB / 469.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.1218, allocations: 12 kB / 469.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.1219, allocations: 12.06 kB / 469.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.218e-05/0.122, allocations: 31.89 kB / 469.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1221, allocations: 12 kB / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.476e-05/0.1221, allocations: 110 kB / 469.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1221, allocations: 0 / 469.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.1224, allocations: 68 kB / 469.9 MB, free: 12.71 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.0001612/0.1226, allocations: 127.2 kB / 470 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005703/0.1232, allocations: 287.6 kB / 470.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1232, allocations: 0 / 470.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.1235, allocations: 235.1 kB / 470.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.1238, allocations: 31.98 kB / 470.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.1249, allocations: 440.1 kB / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004339/0.1254, allocations: 0.7405 MB / 471.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.1255, allocations: 33.88 kB / 471.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.1256, allocations: 43.39 kB / 471.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1256, allocations: 0 / 471.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Templates: time 0.007728/0.1334, allocations: 3.534 MB / 475.3 MB, free: 7.203 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)