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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8863/0.8863, allocations: 143.4 MB / 158.3 MB, free: 5.777 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 185 kB / 191.5 MB, free: 5.746 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.628/1.628, allocations: 223.2 MB / 447.7 MB, free: 4.789 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 92.33 kB / 0.5188 GB, free: 1.152 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001743/0.001743, allocations: 266.9 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006788/0.0006788, allocations: 10.72 kB / 0.6929 GB, free: 59.47 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1859, allocations: 82.79 MB / 0.7737 GB, free: 13.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5822/0.7681, allocations: 123.2 MB / 0.894 GB, free: 21.93 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.7684, allocations: 88.97 kB / 0.8941 GB, free: 21.93 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd - DAE generated: time 0.05684/0.8252, allocations: 20.01 MB / 0.9136 GB, free: 20.12 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.445e-06/0.8253, allocations: 0 / 0.9136 GB, free: 20.12 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.452e-05/0.8253, allocations: 11.81 kB / 0.9136 GB, free: 20.12 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002306/0.8276, allocations: 0.9207 MB / 0.9145 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.8277, allocations: 8.547 kB / 0.9146 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/0.8308, allocations: 0.554 MB / 0.9151 GB, free: 19.41 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008903/0.8317, allocations: 445.3 kB / 0.9155 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.8318, allocations: 114.7 kB / 0.9156 GB, free: 19.05 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.832, allocations: 49.06 kB / 0.9157 GB, free: 19.05 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.8338, allocations: 0.785 MB / 0.9164 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.8338, allocations: 0 / 0.9164 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/0.8339, allocations: 22.53 kB / 0.9165 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.8339, allocations: 11.75 kB / 0.9165 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002444/0.8364, allocations: 0.9826 MB / 0.9174 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.8407, allocations: 2.014 MB / 0.9194 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003266/0.844, allocations: 1.12 MB / 0.9205 GB, free: 18.47 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001606/0.8456, allocations: 1.763 MB / 0.9222 GB, free: 16.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001375/0.847, allocations: 0.5509 MB / 0.9228 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=55): time 4.308e-06/0.847, allocations: 0 / 0.9228 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=55): time 0.003771/0.8508, allocations: 1.342 MB / 0.9241 GB, free: 16.33 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.8509, allocations: 140.7 kB / 0.9242 GB, free: 16.17 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007208/0.8516, allocations: 443.7 kB / 0.9246 GB, free: 16.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.315e-05/0.8517, allocations: 40.77 kB / 0.9247 GB, free: 16.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.8519, allocations: 259.3 kB / 0.9249 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.8521, allocations: 183.1 kB / 0.9251 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.128e-05/0.8522, allocations: 17.03 kB / 0.9251 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8523, allocations: 359.1 kB / 0.9254 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.8534, allocations: 423.7 kB / 0.9258 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.8545, allocations: 0.5146 MB / 0.9263 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.8556, allocations: 420.7 kB / 0.9267 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.8556, allocations: 0 / 0.9267 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002647/0.8582, allocations: 1.002 MB / 0.9277 GB, free: 15.22 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.8583, allocations: 11.95 kB / 0.9277 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.8583, allocations: 3.906 kB / 0.9277 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.343e-05/0.8583, allocations: 3.953 kB / 0.9277 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.8594, allocations: 210.4 kB / 0.9279 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.431e-05/0.8594, allocations: 3.969 kB / 0.9279 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.8606, allocations: 151.1 kB / 0.9281 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.495e-05/0.8607, allocations: 25.69 kB / 0.9281 GB, free: 15.17 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.0006144/0.8613, allocations: 201.9 kB / 0.9283 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.8615, allocations: 58.53 kB / 0.9284 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002807/0.8644, allocations: 1.13 MB / 0.9295 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.8644, allocations: 7.75 kB / 0.9295 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.8644, allocations: 0 / 0.9295 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.8644, allocations: 3.797 kB / 0.9295 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.8656, allocations: 0.779 MB / 0.9302 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.8657, allocations: 0 / 0.9302 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000929/0.8666, allocations: 191.5 kB / 0.9304 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-05/0.8666, allocations: 7.844 kB / 0.9304 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.991e-05/0.8667, allocations: 19.17 kB / 0.9305 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.8667, allocations: 3.875 kB / 0.9305 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.8667, allocations: 0 / 0.9305 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.869, allocations: 1.001 MB / 0.9314 GB, free: 14.54 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000402/0.8694, allocations: 242.7 kB / 0.9317 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.8696, allocations: 15.38 kB / 0.9317 GB, free: 14.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007807/0.8703, allocations: 102.9 kB / 0.9318 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.8704, allocations: 41.3 kB / 0.9318 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-05/0.8705, allocations: 26.36 kB / 0.9318 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004402/0.871, allocations: 350.6 kB / 0.9322 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.9e-07/0.871, allocations: 0 / 0.9322 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001015/0.872, allocations: 273.7 kB / 0.9324 GB, free: 14.25 MB / 0.5417 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00144/0.8734, allocations: 0.5516 MB / 0.933 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00236/0.8758, allocations: 0.9566 MB / 0.9339 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.8758, allocations: 0 / 0.9339 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.8769, allocations: 0.5011 MB / 0.9344 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.8773, allocations: 46.23 kB / 0.9344 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002624/0.88, allocations: 1.618 MB / 0.936 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/0.8809, allocations: 0.8936 MB / 0.9369 GB, free: 28.54 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008462/0.8818, allocations: 149.9 kB / 0.937 GB, free: 28.47 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.8821, allocations: 69.31 kB / 0.9371 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of SimCode: time 1.683e-06/0.8821, allocations: 3.906 kB / 0.9371 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of Templates: time 0.01567/0.8978, allocations: 9.198 MB / 0.9461 GB, free: 23.8 MB / 0.5573 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)