Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") [: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.7777/0.7777, allocations: 141.8 MB / 149.1 MB, free: 13.28 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.001089/0.001089, allocations: 182.5 kB / 181.9 MB, free: 9.965 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.427/1.427, allocations: 221.3 MB / 436 MB, free: 2.43 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.0009568/0.0009568, allocations: 97.8 kB / 0.507 GB, free: 17.82 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001826/0.001826, allocations: 285.1 kB / 0.5884 GB, free: 3.941 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.215e-06, allocations: 1.156 kB / 0.6759 GB, free: 136.8 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1825, allocations: 82.77 MB / 0.7567 GB, free: 83.51 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.3253, allocations: 122.6 MB / 0.8765 GB, free: 8.711 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.3256, allocations: 83.94 kB / 0.8765 GB, free: 8.629 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: Performance of FrontEnd: time 0.3902/0.7158, allocations: 21.36 MB / 0.8974 GB, free: 119.8 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 6.775e-05/0.7159, allocations: 10.81 kB / 0.8974 GB, free: 119.8 MB / 0.5575 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.002666/0.7186, allocations: 0.8692 MB / 0.8983 GB, free: 119.2 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/0.7187, allocations: 8.625 kB / 0.8983 GB, free: 119.2 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00322/0.7219, allocations: 0.4889 MB / 0.8987 GB, free: 119.1 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.723, allocations: 443.3 kB / 0.8992 GB, free: 118.9 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.7232, allocations: 105.2 kB / 0.8993 GB, free: 118.8 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.7233, allocations: 27.41 kB / 0.8993 GB, free: 118.8 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001563/0.7249, allocations: 0.6517 MB / 0.8999 GB, free: 118.8 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.7262, allocations: 0.5739 MB / 0.9005 GB, free: 118.7 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.7262, allocations: 3.562 kB / 0.9005 GB, free: 118.7 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/0.7263, allocations: 1.766 kB / 0.9005 GB, free: 118.7 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.7263, allocations: 10.97 kB / 0.9005 GB, free: 118.7 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005166/0.7315, allocations: 2.089 MB / 0.9025 GB, free: 118.1 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.7337, allocations: 0.7625 MB / 0.9033 GB, free: 118.1 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006197/0.7343, allocations: 320.4 kB / 0.9036 GB, free: 118.1 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001744/0.7361, allocations: 1.764 MB / 0.9053 GB, free: 116.1 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000723/0.7368, allocations: 384.9 kB / 0.9057 GB, free: 116.1 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=55): time 4.729e-06/0.7369, allocations: 3.984 kB / 0.9057 GB, free: 116 MB / 0.5575 GB Notification: Performance of matching and sorting (n=55): time 0.01092/0.7478, allocations: 1.686 MB / 0.9073 GB, free: 115.9 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.162e-05/0.7479, allocations: 144.5 kB / 0.9075 GB, free: 115.8 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007495/0.7487, allocations: 376.4 kB / 0.9078 GB, free: 115.7 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.7488, allocations: 26.22 kB / 0.9079 GB, free: 115.6 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.749, allocations: 212 kB / 0.9081 GB, free: 115.5 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.7492, allocations: 177 kB / 0.9082 GB, free: 115.4 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.7493, allocations: 0 / 0.9082 GB, free: 115.4 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.7494, allocations: 357.3 kB / 0.9086 GB, free: 115 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00062/0.75, allocations: 267.4 kB / 0.9088 GB, free: 115 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006832/0.7507, allocations: 367.5 kB / 0.9092 GB, free: 115 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009762/0.7605, allocations: 1.338 MB / 0.9105 GB, free: 114.6 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.7606, allocations: 0.8438 kB / 0.9105 GB, free: 114.6 MB / 0.5575 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.01118/0.7718, allocations: 1.758 MB / 0.9122 GB, free: 114.1 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.7718, allocations: 4.25 kB / 0.9122 GB, free: 114.1 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.7718, allocations: 5.719 kB / 0.9122 GB, free: 114.1 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.341e-05/0.7719, allocations: 9.281 kB / 0.9122 GB, free: 114.1 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005144/0.777, allocations: 0.51 MB / 0.9127 GB, free: 113.9 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002374/0.7794, allocations: 1.591 MB / 0.9143 GB, free: 112.5 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.7807, allocations: 130.8 kB / 0.9144 GB, free: 112.4 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.7809, allocations: 27.12 kB / 0.9144 GB, free: 112.4 MB / 0.5575 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): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002403/0.7812, allocations: 112.5 kB / 0.9145 GB, free: 112.3 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002262/0.7814, allocations: 51.88 kB / 0.9146 GB, free: 112.3 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.7927, allocations: 2.007 MB / 0.9165 GB, free: 110.6 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.7927, allocations: 8 kB / 0.9165 GB, free: 110.5 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.7927, allocations: 0 / 0.9165 GB, free: 110.5 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.7928, allocations: 7.984 kB / 0.9165 GB, free: 110.5 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/0.8046, allocations: 2.72 MB / 0.9192 GB, free: 107.8 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.8047, allocations: 4 kB / 0.9192 GB, free: 107.8 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009563/0.8056, allocations: 167.8 kB / 0.9194 GB, free: 107.6 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000909/0.8066, allocations: 116.7 kB / 0.9195 GB, free: 107.5 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.271e-05/0.8067, allocations: 15.97 kB / 0.9195 GB, free: 107.5 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/0.8086, allocations: 1.566 MB / 0.921 GB, free: 105.8 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.8086, allocations: 4.062 kB / 0.921 GB, free: 105.8 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01026/0.8189, allocations: 1.941 MB / 0.9229 GB, free: 103.8 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.8194, allocations: 232.2 kB / 0.9231 GB, free: 103.6 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.8196, allocations: 0 / 0.9231 GB, free: 103.6 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008789/0.8205, allocations: 87.86 kB / 0.9232 GB, free: 103.5 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.8207, allocations: 44.58 kB / 0.9233 GB, free: 103.5 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.766e-05/0.8207, allocations: 23.98 kB / 0.9233 GB, free: 103.4 MB / 0.5575 GB Notification: Performance of sort global known variables: time 0.0003594/0.8211, allocations: 291.2 kB / 0.9236 GB, free: 103.1 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.00114/0.8222, allocations: 259.5 kB / 0.9238 GB, free: 102.9 MB / 0.5575 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 (68): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001247/0.8235, allocations: 464.5 kB / 0.9243 GB, free: 102.5 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.005663/0.8292, allocations: 1.072 MB / 0.9253 GB, free: 101.5 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.8292, allocations: 7.984 kB / 0.9253 GB, free: 101.5 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008946/0.8301, allocations: 476.2 kB / 0.9258 GB, free: 101 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.8307, allocations: 38.67 kB / 0.9258 GB, free: 100.9 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.8328, allocations: 0.8548 MB / 0.9266 GB, free: 100.1 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006785/0.8335, allocations: 0.9661 MB / 0.9276 GB, free: 99.08 MB / 0.5575 GB Notification: Performance of SimCode: time 2.064e-06/0.8335, allocations: 0 / 0.9276 GB, free: 99.08 MB / 0.5575 GB Notification: Performance of Templates: time 0.01697/0.8505, allocations: 10.84 MB / 0.9382 GB, free: 88.32 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)