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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6876/0.6876, allocations: 141.8 MB / 149.1 MB, free: 13.29 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 185.1 kB / 181.9 MB, free: 9.941 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.205/1.205, allocations: 221.4 MB / 436 MB, free: 2.406 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001016, allocations: 105.3 kB / 0.507 GB, free: 11.12 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001781/0.001781, allocations: 279.1 kB / 0.5884 GB, free: 7.961 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.163/0.1648, allocations: 89.64 MB / 0.676 GB, free: 14.23 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.4814, allocations: 82.77 MB / 0.7568 GB, free: 139.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.5952, allocations: 122.4 MB / 0.8764 GB, free: 16.53 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.5955, allocations: 83.94 kB / 0.8764 GB, free: 16.45 MB / 0.5575 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: 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.05675/0.6522, allocations: 22.21 MB / 0.8981 GB, free: 10.13 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.6523, allocations: 8 kB / 0.8981 GB, free: 10.12 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003096/0.6554, allocations: 0.5533 MB / 0.8987 GB, free: 9.566 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006976/0.6561, allocations: 444.9 kB / 0.8991 GB, free: 9.09 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.6562, allocations: 110 kB / 0.8992 GB, free: 8.965 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.452e-05/0.6563, allocations: 24 kB / 0.8992 GB, free: 8.941 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001168/0.6575, allocations: 0.6735 MB / 0.8999 GB, free: 8.27 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009799/0.6585, allocations: 0.5914 MB / 0.9005 GB, free: 7.66 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.6585, allocations: 4 kB / 0.9005 GB, free: 7.656 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.218e-05/0.6586, allocations: 0 / 0.9005 GB, free: 7.656 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.6586, allocations: 15.98 kB / 0.9005 GB, free: 7.641 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004001/0.6626, allocations: 2.098 MB / 0.9025 GB, free: 5.465 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001975/0.6646, allocations: 0.7707 MB / 0.9033 GB, free: 4.684 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.6651, allocations: 322 kB / 0.9036 GB, free: 4.367 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001794/0.6669, allocations: 1.769 MB / 0.9053 GB, free: 2.211 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005767/0.6675, allocations: 393 kB / 0.9057 GB, free: 1.816 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=55): time 2.064e-06/0.6675, allocations: 0 / 0.9057 GB, free: 1.816 MB / 0.5732 GB Notification: Performance of matching and sorting (n=55): time 0.00973/0.6772, allocations: 1.695 MB / 0.9074 GB, free: 116 kB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1954/0.8726, allocations: 137 kB / 0.9075 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004926/0.8731, allocations: 392 kB / 0.9079 GB, free: 177.6 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.8733, allocations: 25.7 kB / 0.9079 GB, free: 177.6 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 9.466e-05/0.8734, allocations: 211.9 kB / 0.9081 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.8735, allocations: 177.4 kB / 0.9083 GB, free: 177.4 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.8736, allocations: 3.688 kB / 0.9083 GB, free: 177.4 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 7.15e-05/0.8736, allocations: 361.8 kB / 0.9086 GB, free: 177.1 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.874, allocations: 273.4 kB / 0.9089 GB, free: 177.1 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004267/0.8745, allocations: 368.5 kB / 0.9092 GB, free: 177 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008521/0.883, allocations: 1.333 MB / 0.9105 GB, free: 177 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.883, allocations: 0 / 0.9105 GB, free: 177 MB / 0.5732 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.009062/0.8921, allocations: 1.766 MB / 0.9122 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.8921, allocations: 7.906 kB / 0.9123 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.8921, allocations: 1.156 kB / 0.9123 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.8922, allocations: 4.5 kB / 0.9123 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.8932, allocations: 204.2 kB / 0.9125 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.8933, allocations: 4.562 kB / 0.9125 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008801/0.8941, allocations: 140 kB / 0.9126 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.511e-05/0.8942, allocations: 26.55 kB / 0.9126 GB, free: 176.9 MB / 0.5732 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 () * 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.0001372/0.8944, allocations: 112.7 kB / 0.9127 GB, free: 176.8 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.657e-05/0.8945, allocations: 57.66 kB / 0.9128 GB, free: 176.8 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/0.9045, allocations: 1.901 MB / 0.9146 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.9046, allocations: 7.062 kB / 0.9146 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.9046, allocations: 1.062 kB / 0.9146 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.9046, allocations: 3.703 kB / 0.9146 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.9155, allocations: 2.616 MB / 0.9172 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.9155, allocations: 0 / 0.9172 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.9166, allocations: 192.9 kB / 0.9174 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.9166, allocations: 2.938 kB / 0.9174 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.679e-05/0.9167, allocations: 13.91 kB / 0.9174 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.9167, allocations: 5.203 kB / 0.9174 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.9167, allocations: 0 / 0.9174 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009733/0.9265, allocations: 1.854 MB / 0.9192 GB, free: 176.2 MB / 0.5732 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009696/0.9362, allocations: 2.241 MB / 0.9214 GB, free: 175.6 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.9366, allocations: 232.4 kB / 0.9216 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.9367, allocations: 3.281 kB / 0.9216 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008684/0.9376, allocations: 92.95 kB / 0.9217 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.9377, allocations: 41 kB / 0.9218 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.458e-05/0.9378, allocations: 27.17 kB / 0.9218 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0003802/0.9382, allocations: 301.9 kB / 0.9221 GB, free: 175.4 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.001472/0.9396, allocations: 291 kB / 0.9223 GB, free: 175.4 MB / 0.5732 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * 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.0009202/0.9406, allocations: 465.6 kB / 0.9228 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.001117/0.9417, allocations: 0.6665 MB / 0.9234 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.9417, allocations: 4.062 kB / 0.9234 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0005584/0.9423, allocations: 377.7 kB / 0.9238 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.9426, allocations: 41.59 kB / 0.9238 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.9445, allocations: 0.8444 MB / 0.9247 GB, free: 175.1 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007691/0.9452, allocations: 0.9826 MB / 0.9256 GB, free: 174.4 MB / 0.5732 GB Notification: Performance of SimCode: time 2.61e-07/0.9452, allocations: 0 / 0.9256 GB, free: 174.4 MB / 0.5732 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)