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.004031/0.004031, allocations: 103.7 kB / 15.73 MB, free: 6.051 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.001182/0.001182, allocations: 194.4 kB / 16.68 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1597/0.1597, allocations: 5.379 MB / 295.9 MB, free: 2.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.91 kB / 409.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3567, allocations: 50.62 MB / 459.9 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002706/0.3595, allocations: 1.656 MB / 461.5 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.3608, allocations: 0.7097 MB / 462.2 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.391e-05/0.3609, allocations: 0 / 462.2 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.361, allocations: 15.28 kB / 462.3 MB, free: 17.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002803/0.3614, allocations: 59.44 kB / 462.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.3616, allocations: 115.8 kB / 462.4 MB, free: 17.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.3619, allocations: 182.9 kB / 462.6 MB, free: 17.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.362, allocations: 19.34 kB / 462.6 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.3622, allocations: 84.72 kB / 462.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.3624, allocations: 123 kB / 462.8 MB, free: 17.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.3624, allocations: 9.281 kB / 462.8 MB, free: 17.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.3625, allocations: 69.8 kB / 462.9 MB, free: 17.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.3626, allocations: 32.23 kB / 462.9 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.064e-05/0.3627, allocations: 70.17 kB / 463 MB, free: 17.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002842/0.363, allocations: 173.8 kB / 463.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.363, allocations: 4.516 kB / 463.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.363, allocations: 4 kB / 463.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.363, allocations: 0 / 463.2 MB, free: 17.5 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.0008727/0.3639, allocations: 464.7 kB / 463.6 MB, free: 17.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3639, allocations: 9.156 kB / 463.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.364, allocations: 16.41 kB / 463.7 MB, free: 17.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.3643, allocations: 216.9 kB / 463.9 MB, free: 16.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.3644, allocations: 9 kB / 463.9 MB, free: 16.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/0.3644, allocations: 12.12 kB / 463.9 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.3649, allocations: 175.2 kB / 464.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.365, allocations: 1.906 kB / 464.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.365, allocations: 5.344 kB / 464.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.365, allocations: 2.438 kB / 464.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004988/0.3655, allocations: 138.7 kB / 464.2 MB, free: 16.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009352/0.3665, allocations: 0.5969 MB / 464.8 MB, free: 16.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007565/0.3672, allocations: 202.8 kB / 465 MB, free: 16.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.3675, allocations: 89.61 kB / 465.1 MB, free: 16.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.3677, allocations: 81.38 kB / 465.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004779/0.3681, allocations: 204.5 kB / 465.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.3682, allocations: 1.062 kB / 465.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00112/0.3693, allocations: 346.8 kB / 465.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.3694, allocations: 135.5 kB / 465.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.3696, allocations: 128.9 kB / 466 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.3696, allocations: 35.98 kB / 466 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/0.3697, allocations: 98.42 kB / 466.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.3698, allocations: 66.86 kB / 466.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.37, allocations: 64.66 kB / 466.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3701, allocations: 326.8 kB / 466.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002649/0.3704, allocations: 73.69 kB / 466.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.3708, allocations: 123 kB / 466.7 MB, free: 14.74 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.005045/0.3758, allocations: 0.8354 MB / 467.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3758, allocations: 1.859 kB / 467.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006032/0.3764, allocations: 295.2 kB / 467.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.3765, allocations: 37.48 kB / 467.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3765, allocations: 1.25 kB / 467.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3765, allocations: 2.312 kB / 467.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.3769, allocations: 69.28 kB / 468 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3769, allocations: 3.281 kB / 468 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.3771, allocations: 22.59 kB / 468 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.3771, allocations: 14.23 kB / 468 MB, free: 14.12 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.0001509/0.3773, allocations: 168.1 kB / 468.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.3774, allocations: 19.83 kB / 468.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009295/0.3783, allocations: 453.7 kB / 468.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.3783, allocations: 8.188 kB / 468.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3783, allocations: 0 / 468.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3783, allocations: 2.703 kB / 468.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.3786, allocations: 299.1 kB / 468.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.3786, allocations: 5.469 kB / 469 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.3789, allocations: 60.3 kB / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3789, allocations: 5.312 kB / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.379, allocations: 11.88 kB / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.379, allocations: 1.188 kB / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.379, allocations: 0 / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000915/0.3799, allocations: 0.4887 MB / 469.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.38, allocations: 112.4 kB / 469.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.38, allocations: 16.81 kB / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.3802, allocations: 10.81 kB / 469.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.3803, allocations: 29.48 kB / 469.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.3803, allocations: 15.5 kB / 469.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.81e-05/0.3804, allocations: 108.2 kB / 469.8 MB, free: 13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3804, allocations: 0 / 469.8 MB, free: 13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003314/0.3808, allocations: 65.03 kB / 469.9 MB, free: 12.99 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.0001641/0.3809, allocations: 130 kB / 470 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000605/0.3815, allocations: 286.1 kB / 470.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3816, allocations: 0 / 470.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003285/0.3819, allocations: 238 kB / 470.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3822, allocations: 33.34 kB / 470.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009205/0.3831, allocations: 441.3 kB / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.3833, allocations: 0.7387 MB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.3835, allocations: 34.2 kB / 471.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.3836, allocations: 38.34 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3836, allocations: 0 / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of Templates: time 0.008928/0.3926, allocations: 3.417 MB / 475.2 MB, free: 11.31 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)