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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 183 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.153/1.153, allocations: 222.9 MB / 239.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009398/0.0009398, allocations: 100.8 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02402/0.02402, allocations: 5.394 MB / 345.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009033/0.0009033, allocations: 47.27 kB / 406.8 MB, free: 61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06262/0.06354, allocations: 50.63 MB / 457.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002025/0.06559, allocations: 1.704 MB / 459.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000819/0.06642, allocations: 0.7207 MB / 459.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.553e-05/0.06649, allocations: 0 / 459.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.983e-05/0.06659, allocations: 7.922 kB / 459.9 MB, free: 7.953 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.06676, allocations: 43.75 kB / 459.9 MB, free: 7.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001732/0.06694, allocations: 103.9 kB / 460 MB, free: 7.809 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.06708, allocations: 175.5 kB / 460.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.195e-05/0.06715, allocations: 17.42 kB / 460.2 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.487e-05/0.06726, allocations: 75.75 kB / 460.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.06742, allocations: 115.6 kB / 460.4 MB, free: 7.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.06745, allocations: 4 kB / 460.4 MB, free: 7.426 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.642e-05/0.06754, allocations: 59.95 kB / 460.4 MB, free: 7.367 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.06757, allocations: 31.89 kB / 460.5 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.484e-05/0.06763, allocations: 63.64 kB / 460.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.06778, allocations: 175.7 kB / 460.7 MB, free: 7.102 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.06779, allocations: 0 / 460.7 MB, free: 7.102 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.0678, allocations: 0 / 460.7 MB, free: 7.102 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.0678, allocations: 0 / 460.7 MB, free: 7.102 MB / 298.7 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.0006134/0.06842, allocations: 464.7 kB / 461.2 MB, free: 6.594 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.734e-05/0.06846, allocations: 12.88 kB / 461.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.06851, allocations: 12.84 kB / 461.2 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.06865, allocations: 216.1 kB / 461.4 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.06867, allocations: 8.375 kB / 461.4 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.06871, allocations: 12.38 kB / 461.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.06899, allocations: 173.1 kB / 461.6 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.06901, allocations: 0 / 461.6 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.06903, allocations: 4 kB / 461.6 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.06904, allocations: 4 kB / 461.6 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002937/0.06934, allocations: 139.8 kB / 461.7 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004813/0.06983, allocations: 0.5982 MB / 462.3 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005217/0.07036, allocations: 202.7 kB / 462.5 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.07054, allocations: 84.81 kB / 462.6 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.804e-05/0.07062, allocations: 81.11 kB / 462.7 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.0709, allocations: 210.8 kB / 462.9 MB, free: 4.695 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.07091, allocations: 0 / 462.9 MB, free: 4.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006259/0.07154, allocations: 330.9 kB / 463.2 MB, free: 4.359 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.07158, allocations: 144.5 kB / 463.4 MB, free: 4.188 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.814e-05/0.07165, allocations: 127.4 kB / 463.5 MB, free: 4.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.07167, allocations: 29.7 kB / 463.5 MB, free: 4.016 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.084e-05/0.0717, allocations: 100.4 kB / 463.6 MB, free: 3.914 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.07175, allocations: 82.88 kB / 463.7 MB, free: 3.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.03e-05/0.07183, allocations: 61.67 kB / 463.7 MB, free: 3.766 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.588e-05/0.07187, allocations: 322.8 kB / 464.1 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.07204, allocations: 75.94 kB / 464.1 MB, free: 3.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.07223, allocations: 116.2 kB / 464.2 MB, free: 3.238 MB / 298.7 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.00419/0.07642, allocations: 0.8421 MB / 465.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.07644, allocations: 4 kB / 465.1 MB, free: 2.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004701/0.07691, allocations: 298.9 kB / 465.4 MB, free: 2.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.07694, allocations: 37.64 kB / 465.4 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.07695, allocations: 0 / 465.4 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.07697, allocations: 0 / 465.4 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.0773, allocations: 67.86 kB / 465.5 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.07731, allocations: 4.125 kB / 465.5 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.07749, allocations: 19.89 kB / 465.5 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.07752, allocations: 15.98 kB / 465.5 MB, free: 1.879 MB / 298.7 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 9.948e-05/0.07762, allocations: 172.5 kB / 465.7 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.07766, allocations: 19.75 kB / 465.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007113/0.07838, allocations: 448.8 kB / 466.2 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.07839, allocations: 4 kB / 466.2 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.0784, allocations: 0 / 466.2 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.07841, allocations: 3.938 kB / 466.2 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.0786, allocations: 309.2 kB / 466.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.07861, allocations: 0 / 466.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002452/0.07886, allocations: 55.91 kB / 466.5 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.07887, allocations: 3.938 kB / 466.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.07889, allocations: 15.92 kB / 466.5 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.0789, allocations: 4 kB / 466.5 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.07891, allocations: 4 kB / 466.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006357/0.08527, allocations: 3.793 MB / 470.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.487e-05/0.08533, allocations: 104.8 kB / 470.4 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.08538, allocations: 11.98 kB / 470.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.08554, allocations: 11.94 kB / 470.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.08562, allocations: 31.89 kB / 470.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.08566, allocations: 12 kB / 470.5 MB, free: 12.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.361e-05/0.08573, allocations: 113.9 kB / 470.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08574, allocations: 0 / 470.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004008/0.08614, allocations: 112.1 kB / 470.7 MB, free: 12.41 MB / 314.7 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.0001319/0.08628, allocations: 128.2 kB / 470.9 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005228/0.08681, allocations: 279.5 kB / 471.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.08683, allocations: 0 / 471.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002877/0.08712, allocations: 231.2 kB / 471.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.08739, allocations: 31.84 kB / 471.4 MB, free: 11.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009951/0.08839, allocations: 0.8674 MB / 472.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.08864, allocations: 0.7368 MB / 473 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.08885, allocations: 54.92 kB / 473 MB, free: 9.996 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.089, allocations: 51.39 kB / 473.1 MB, free: 9.945 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.089, allocations: 0 / 473.1 MB, free: 9.945 MB / 314.7 MB Notification: Performance of Templates: time 0.007344/0.09635, allocations: 4.912 MB / 478 MB, free: 5.059 MB / 314.7 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)