Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001368/0.001368, allocations: 189.2 kB / 16.25 MB, free: 6.625 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.306/1.306, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 275.2 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9361/0.9361, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 92.11 kB / 0.5947 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1451, allocations: 86.99 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.00473/0.1499, allocations: 3.764 MB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004596/0.1545, allocations: 3.38 MB / 0.6866 GB, free: 9.891 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000275/0.1548, allocations: 7.938 kB / 0.6866 GB, free: 9.883 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004311/0.1553, allocations: 103.3 kB / 0.6867 GB, free: 9.781 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009458/0.1562, allocations: 394.2 kB / 0.6871 GB, free: 9.395 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006853/0.1569, allocations: 328.4 kB / 0.6874 GB, free: 9.078 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007107/0.1576, allocations: 0.7447 MB / 0.6881 GB, free: 8.332 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.1579, allocations: 201.9 kB / 0.6883 GB, free: 8.129 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003246/0.1582, allocations: 310.7 kB / 0.6886 GB, free: 7.824 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000369/0.1586, allocations: 318.6 kB / 0.6889 GB, free: 7.512 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.165e-05/0.1587, allocations: 64 kB / 0.689 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007241/0.1594, allocations: 0.5033 MB / 0.6895 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.1596, allocations: 171.4 kB / 0.6896 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.1599, allocations: 326.2 kB / 0.6899 GB, free: 6.457 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1609, allocations: 1.059 MB / 0.691 GB, free: 5.395 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1609, allocations: 3.938 kB / 0.691 GB, free: 5.391 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1609, allocations: 3.938 kB / 0.691 GB, free: 5.387 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1609, allocations: 0 / 0.691 GB, free: 5.387 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001905/0.1629, allocations: 0.9992 MB / 0.692 GB, free: 4.336 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1629, allocations: 8.031 kB / 0.692 GB, free: 4.328 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003684/0.1666, allocations: 0.6166 MB / 0.6926 GB, free: 3.711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.1679, allocations: 0.6274 MB / 0.6932 GB, free: 3.047 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.1681, allocations: 118.7 kB / 0.6933 GB, free: 2.914 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.643e-05/0.1682, allocations: 55.92 kB / 0.6933 GB, free: 2.859 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.1698, allocations: 0.6909 MB / 0.694 GB, free: 2.148 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1698, allocations: 7.938 kB / 0.694 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.1699, allocations: 16 kB / 0.694 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1699, allocations: 12 kB / 0.6941 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.1719, allocations: 0.7533 MB / 0.6948 GB, free: 1.359 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.1755, allocations: 1.817 MB / 0.6966 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002897/0.1784, allocations: 0.8425 MB / 0.6974 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009417/0.1794, allocations: 350 kB / 0.6977 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001798/0.1812, allocations: 1.765 MB / 0.6994 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001082/0.1823, allocations: 429 kB / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 3.016e-06/0.1823, allocations: 0 / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002876/0.1852, allocations: 1.01 MB / 0.7008 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.1853, allocations: 111.2 kB / 0.7009 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005079/0.1858, allocations: 430 kB / 0.7014 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.437e-05/0.1858, allocations: 33.7 kB / 0.7014 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.1861, allocations: 284.5 kB / 0.7017 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.1862, allocations: 181.3 kB / 0.7018 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.1865, allocations: 126.1 kB / 0.702 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1866, allocations: 362.8 kB / 0.7023 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008787/0.1875, allocations: 296.9 kB / 0.7026 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009682/0.1885, allocations: 440.5 kB / 0.703 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.1903, allocations: 0.7023 MB / 0.7037 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1903, allocations: 4 kB / 0.7037 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00212/0.1924, allocations: 0.8105 MB / 0.7045 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.1925, allocations: 15.92 kB / 0.7045 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1925, allocations: 7.938 kB / 0.7045 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.1925, allocations: 4 kB / 0.7045 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009286/0.1934, allocations: 183.9 kB / 0.7047 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.1935, allocations: 7.938 kB / 0.7047 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007423/0.1942, allocations: 103.5 kB / 0.7048 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.741e-05/0.1943, allocations: 27.98 kB / 0.7048 GB, free: 6.457 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * 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.000301/0.1946, allocations: 209.6 kB / 0.705 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.1947, allocations: 55.34 kB / 0.7051 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/0.197, allocations: 0.887 MB / 0.7059 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.1971, allocations: 8 kB / 0.7059 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1971, allocations: 3.938 kB / 0.7059 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.1971, allocations: 3.984 kB / 0.706 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/0.2, allocations: 1.567 MB / 0.7075 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.2, allocations: 0 / 0.7075 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008111/0.2008, allocations: 151.8 kB / 0.7076 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.2009, allocations: 7.938 kB / 0.7076 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.527e-05/0.2009, allocations: 19.98 kB / 0.7077 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.2009, allocations: 0 / 0.7077 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.2009, allocations: 8 kB / 0.7077 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.2029, allocations: 0.8464 MB / 0.7085 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.2031, allocations: 224.1 kB / 0.7087 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-05/0.2032, allocations: 11.94 kB / 0.7087 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006394/0.2039, allocations: 55.94 kB / 0.7088 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.204, allocations: 40.5 kB / 0.7088 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.444e-05/0.204, allocations: 23.92 kB / 0.7088 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003243/0.2044, allocations: 303.1 kB / 0.7091 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.392e-06/0.2044, allocations: 4 kB / 0.7091 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006962/0.2051, allocations: 223.6 kB / 0.7093 GB, free: 1.719 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00116/0.2063, allocations: 0.5017 MB / 0.7098 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002176/0.2084, allocations: 0.7651 MB / 0.7106 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.2085, allocations: 8 kB / 0.7106 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008862/0.2094, allocations: 387.3 kB / 0.7109 GB, free: 216 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005065/0.2099, allocations: 76.8 kB / 0.711 GB, free: 144 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.2122, allocations: 1.473 MB / 0.7125 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.2127, allocations: 0.8732 MB / 0.7133 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007744/0.2134, allocations: 156.4 kB / 0.7135 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/0.2137, allocations: 75.38 kB / 0.7135 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.2137, allocations: 4 kB / 0.7135 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.01494/0.2287, allocations: 8.563 MB / 0.7219 GB, free: 4.992 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)