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: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008771/0.0008774, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0009911/0.0009914, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1959/0.1959, allocations: 5.38 MB / 296.5 MB, free: 3.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004524, allocations: 12 kB / 358.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1495, allocations: 51.6 MB / 410.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002162/0.1517, allocations: 1.334 MB / 411.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1531, allocations: 0.6627 MB / 412.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.1533, allocations: 0 / 412.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1534, allocations: 7.875 kB / 412.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.1537, allocations: 51.8 kB / 412.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.154, allocations: 99.83 kB / 412.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.1542, allocations: 151.5 kB / 412.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1543, allocations: 9.453 kB / 412.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.1545, allocations: 75.8 kB / 412.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.1548, allocations: 115.6 kB / 412.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.1548, allocations: 4 kB / 412.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.155, allocations: 55.95 kB / 412.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.04e-05/0.155, allocations: 23.91 kB / 412.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.039e-05/0.1551, allocations: 49.64 kB / 412.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.1553, allocations: 123.9 kB / 413 MB, free: 11.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1554, allocations: 0 / 413 MB, free: 11.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1554, allocations: 0 / 413 MB, free: 11.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1554, allocations: 0 / 413 MB, free: 11.07 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.0009672/0.1564, allocations: 428.7 kB / 413.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1564, allocations: 12.03 kB / 413.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.097e-05/0.1565, allocations: 46.56 kB / 413.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.484e-05/0.1565, allocations: 15.86 kB / 413.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.1568, allocations: 210.7 kB / 413.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.1569, allocations: 8 kB / 413.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.1569, allocations: 8 kB / 413.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004766/0.1574, allocations: 172.5 kB / 413.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1574, allocations: 0 / 413.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.1575, allocations: 4 kB / 413.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1575, allocations: 7.984 kB / 413.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004822/0.158, allocations: 136.1 kB / 414 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009304/0.1589, allocations: 0.5989 MB / 414.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000805/0.1597, allocations: 202.9 kB / 414.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002762/0.16, allocations: 84.94 kB / 414.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001576/0.1602, allocations: 85.09 kB / 415 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000485/0.1607, allocations: 213.2 kB / 415.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/0.1607, allocations: 0 / 415.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001034/0.1618, allocations: 329.5 kB / 415.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.1619, allocations: 140.5 kB / 415.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.162, allocations: 132.6 kB / 415.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.1621, allocations: 33.7 kB / 415.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.1622, allocations: 108.4 kB / 415.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.373e-05/0.1623, allocations: 67.02 kB / 416 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/0.1623, allocations: 8 kB / 416 MB, free: 7.785 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1625, allocations: 322.8 kB / 416.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.1627, allocations: 79.88 kB / 416.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.163, allocations: 112.8 kB / 416.5 MB, free: 7.258 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.005802/0.1689, allocations: 0.6222 MB / 417.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1689, allocations: 4 kB / 417.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008424/0.1697, allocations: 294.8 kB / 417.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.685e-05/0.1698, allocations: 36.05 kB / 417.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1699, allocations: 0 / 417.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.1699, allocations: 4 kB / 417.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.1704, allocations: 71.86 kB / 417.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1704, allocations: 8.078 kB / 417.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.1706, allocations: 15.91 kB / 417.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.1707, allocations: 19.97 kB / 417.6 MB, free: 6.141 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 sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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.0002487/0.171, allocations: 175.3 kB / 417.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.896e-05/0.171, allocations: 19.8 kB / 417.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001275/0.1723, allocations: 449 kB / 418.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.1723, allocations: 7.984 kB / 418.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.1723, allocations: 0 / 418.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.1724, allocations: 3.953 kB / 418.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003916/0.1728, allocations: 309.2 kB / 418.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1728, allocations: 0 / 418.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.1732, allocations: 55.97 kB / 418.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1732, allocations: 0 / 418.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.1732, allocations: 15.98 kB / 418.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1732, allocations: 3.938 kB / 418.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.1733, allocations: 7.938 kB / 418.6 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.1744, allocations: 496.4 kB / 419.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.1746, allocations: 104.8 kB / 419.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.1746, allocations: 8 kB / 419.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.1748, allocations: 8 kB / 419.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.175, allocations: 31.89 kB / 419.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.175, allocations: 24.05 kB / 419.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.1751, allocations: 107.2 kB / 419.4 MB, free: 4.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1751, allocations: 3.938 kB / 419.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.1756, allocations: 64 kB / 419.4 MB, free: 4.168 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 (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.001679/0.1773, allocations: 1.036 MB / 420.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007984/0.1781, allocations: 295 kB / 420.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1781, allocations: 0 / 420.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004429/0.1786, allocations: 227.2 kB / 421 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004493/0.1791, allocations: 27.98 kB / 421 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.1818, allocations: 1.177 MB / 422.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.1822, allocations: 0.7329 MB / 422.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002331/0.1824, allocations: 33.92 kB / 422.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.1826, allocations: 71.45 kB / 423 MB, free: 444 kB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1826, allocations: 0 / 423 MB, free: 444 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2011/0.3837, allocations: 4.746 MB / 427.8 MB, free: 44.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001276/0.3839, allocations: 186.5 kB / 427.9 MB, free: 43.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.295, allocations: 3.938 kB / 427.9 MB, free: 43.91 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) Environment - environmentSimulation: