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.0009545/0.0009545, allocations: 177.6 kB / 16.12 MB, free: 5.57 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.333/1.333, allocations: 223.3 MB / 240.1 MB, free: 11.73 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.0007678/0.0007676, allocations: 92.73 kB / 291.3 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02691/0.02691, allocations: 5.389 MB / 347.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000598/0.000598, allocations: 12.56 kB / 410.1 MB, free: 60.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1325, allocations: 51.6 MB / 461.7 MB, free: 9.117 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.5424, allocations: 78.16 MB / 0.5272 GB, free: 9.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.5426, allocations: 58.61 kB / 0.5272 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01598/0.5586, allocations: 5.103 MB / 0.5322 GB, free: 5.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5587, allocations: 0 / 0.5322 GB, free: 5.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.5587, allocations: 0 / 0.5322 GB, free: 5.551 MB / 346.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.0008127/0.5595, allocations: 454.6 kB / 0.5327 GB, free: 5.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.5596, allocations: 16.81 kB / 0.5327 GB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.966e-05/0.5597, allocations: 12.84 kB / 0.5327 GB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.56, allocations: 214.9 kB / 0.5329 GB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.56, allocations: 7.938 kB / 0.5329 GB, free: 4.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.56, allocations: 12.12 kB / 0.5329 GB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.5605, allocations: 177.1 kB / 0.5331 GB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.5605, allocations: 0 / 0.5331 GB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.5605, allocations: 2.938 kB / 0.5331 GB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.5605, allocations: 8 kB / 0.5331 GB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.5609, allocations: 133.1 kB / 0.5332 GB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008471/0.5617, allocations: 0.593 MB / 0.5338 GB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/0.5624, allocations: 204.2 kB / 0.534 GB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.5626, allocations: 81.5 kB / 0.5341 GB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.5627, allocations: 81.11 kB / 0.5341 GB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003863/0.5631, allocations: 209.4 kB / 0.5343 GB, free: 3.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.5631, allocations: 0 / 0.5343 GB, free: 3.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007738/0.5639, allocations: 337.7 kB / 0.5347 GB, free: 3.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.564, allocations: 144.1 kB / 0.5348 GB, free: 2.992 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.5641, allocations: 133.6 kB / 0.5349 GB, free: 2.859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.5642, allocations: 33.39 kB / 0.535 GB, free: 2.824 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.291e-05/0.5642, allocations: 95.67 kB / 0.5351 GB, free: 2.734 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.286e-05/0.5643, allocations: 77.31 kB / 0.5351 GB, free: 2.668 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.548e-05/0.5643, allocations: 3.688 kB / 0.5351 GB, free: 2.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5645, allocations: 326 kB / 0.5354 GB, free: 2.348 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.5647, allocations: 72.56 kB / 0.5355 GB, free: 2.297 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.5649, allocations: 112.1 kB / 0.5356 GB, free: 2.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/0.5693, allocations: 0.7742 MB / 0.5364 GB, free: 1.469 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5693, allocations: 4 kB / 0.5364 GB, free: 1.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006519/0.5699, allocations: 291.7 kB / 0.5367 GB, free: 1.227 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.379e-05/0.57, allocations: 33.69 kB / 0.5367 GB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.57, allocations: 7.938 kB / 0.5367 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.57, allocations: 0 / 0.5367 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.5703, allocations: 55.7 kB / 0.5367 GB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.5703, allocations: 4 kB / 0.5367 GB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.5705, allocations: 15.58 kB / 0.5368 GB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.5706, allocations: 15.98 kB / 0.5368 GB, free: 1.098 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: irradiance.Jprime = 6.283185307179586 * /*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) / /*Real*/(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 ($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.0002079/0.5708, allocations: 180 kB / 0.537 GB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.631e-05/0.5708, allocations: 15.81 kB / 0.537 GB, free: 0.9023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009197/0.5717, allocations: 461.1 kB / 0.5374 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.5718, allocations: 11.98 kB / 0.5374 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.319e-06/0.5718, allocations: 0 / 0.5374 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.5718, allocations: 0 / 0.5374 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.5721, allocations: 302.8 kB / 0.5377 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5721, allocations: 0 / 0.5377 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.5724, allocations: 55.95 kB / 0.5378 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.5724, allocations: 3.938 kB / 0.5378 GB, free: 164 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.5724, allocations: 15.5 kB / 0.5378 GB, free: 156 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.5724, allocations: 4 kB / 0.5378 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5725, allocations: 0 / 0.5378 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000858/0.5733, allocations: 0.4894 MB / 0.5383 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-05/0.5734, allocations: 92.89 kB / 0.5383 GB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.776e-05/0.5735, allocations: 15.86 kB / 0.5384 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.5736, allocations: 15.88 kB / 0.5384 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-05/0.5737, allocations: 35.83 kB / 0.5384 GB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.5738, allocations: 8 kB / 0.5384 GB, free: 15.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.865e-05/0.5738, allocations: 117.4 kB / 0.5385 GB, free: 15.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5738, allocations: 0 / 0.5385 GB, free: 15.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000391/0.5742, allocations: 75.25 kB / 0.5386 GB, free: 15.43 MB / 362.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 (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.0002188/0.5745, allocations: 145 kB / 0.5387 GB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006045/0.5751, allocations: 284.7 kB / 0.539 GB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5751, allocations: 256 / 0.539 GB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.5754, allocations: 225.2 kB / 0.5392 GB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.5757, allocations: 39.36 kB / 0.5393 GB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009047/0.5766, allocations: 0.5285 MB / 0.5398 GB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.5769, allocations: 0.7251 MB / 0.5405 GB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001853/0.5771, allocations: 37.92 kB / 0.5405 GB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.5772, allocations: 47.16 kB / 0.5406 GB, free: 13.51 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5772, allocations: 0 / 0.5406 GB, free: 13.51 MB / 362.7 MB Notification: Performance of Templates: time 0.006482/0.5837, allocations: 2.98 MB / 0.5435 GB, free: 10.56 MB / 362.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)