Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") [: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.8672/0.8672, allocations: 141.8 MB / 149.1 MB, free: 13.03 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.001784/0.001784, allocations: 174.5 kB / 181.9 MB, free: 9.73 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.504/1.504, allocations: 221.4 MB / 436 MB, free: 2.312 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.000954/0.000954, allocations: 89.66 kB / 0.507 GB, free: 10.96 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001741/0.001741, allocations: 283.7 kB / 0.5884 GB, free: 7.805 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.166e-05/1.17e-05, allocations: 4 kB / 0.6759 GB, free: 14.17 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4593/0.4594, allocations: 82.76 MB / 0.7567 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.5989, allocations: 122.9 MB / 0.8767 GB, free: 15.93 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.5992, allocations: 91.88 kB / 0.8768 GB, free: 15.84 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.05981/0.659, allocations: 21.66 MB / 0.898 GB, free: 10.11 MB / 0.5732 GB Notification: Performance of Transformations before backend: time 5.142e-05/0.6591, allocations: 12 kB / 0.898 GB, free: 10.09 MB / 0.5732 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002316/0.6614, allocations: 0.8936 MB / 0.8989 GB, free: 9.156 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.6615, allocations: 8.031 kB / 0.8989 GB, free: 9.148 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003416/0.6649, allocations: 0.5572 MB / 0.8994 GB, free: 8.59 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009958/0.6659, allocations: 456.7 kB / 0.8998 GB, free: 8.102 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.6661, allocations: 106.1 kB / 0.8999 GB, free: 7.98 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.6662, allocations: 28 kB / 0.9 GB, free: 7.953 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001436/0.6677, allocations: 0.689 MB / 0.9006 GB, free: 7.266 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.6688, allocations: 0.6001 MB / 0.9012 GB, free: 6.645 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.6688, allocations: 0 / 0.9012 GB, free: 6.645 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.919e-05/0.6689, allocations: 3.906 kB / 0.9012 GB, free: 6.641 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.6689, allocations: 19.98 kB / 0.9013 GB, free: 6.621 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004754/0.6737, allocations: 2.227 MB / 0.9034 GB, free: 4.312 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/0.6758, allocations: 0.7966 MB / 0.9042 GB, free: 3.504 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/0.6764, allocations: 354.2 kB / 0.9045 GB, free: 3.156 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002118/0.6785, allocations: 1.757 MB / 0.9063 GB, free: 1.008 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007246/0.6793, allocations: 425 kB / 0.9067 GB, free: 0.582 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=60): time 3.306e-06/0.6793, allocations: 0 / 0.9067 GB, free: 0.582 MB / 0.5732 GB Notification: Performance of matching and sorting (n=60): time 0.2654/0.9447, allocations: 2.012 MB / 0.9086 GB, free: 177.2 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.9448, allocations: 138.5 kB / 0.9088 GB, free: 177.1 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005768/0.9454, allocations: 391.8 kB / 0.9091 GB, free: 177 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 7.651e-05/0.9455, allocations: 25.7 kB / 0.9092 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.9457, allocations: 205.5 kB / 0.9094 GB, free: 176.8 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.9458, allocations: 186.5 kB / 0.9095 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.9459, allocations: 0 / 0.9095 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.9461, allocations: 370.7 kB / 0.9099 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.9465, allocations: 287.2 kB / 0.9102 GB, free: 176.4 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/0.947, allocations: 370.8 kB / 0.9105 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008775/0.9558, allocations: 1.375 MB / 0.9119 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.9558, allocations: 0 / 0.9119 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.01205/0.9679, allocations: 2.07 MB / 0.9139 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.968, allocations: 5.938 kB / 0.9139 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.968, allocations: 3.531 kB / 0.9139 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008036/0.9688, allocations: 159.9 kB / 0.914 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.9699, allocations: 181.7 kB / 0.9142 GB, free: 176.3 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003797/0.9737, allocations: 1.893 MB / 0.9161 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.975, allocations: 142 kB / 0.9162 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.56e-05/0.9751, allocations: 31.16 kB / 0.9162 GB, free: 175 MB / 0.5732 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (69): * 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: 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002024/0.9753, allocations: 120 kB / 0.9163 GB, free: 174.9 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.9755, allocations: 54.23 kB / 0.9164 GB, free: 174.9 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/0.9886, allocations: 2.221 MB / 0.9186 GB, free: 174.8 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/0.9887, allocations: 7.5 kB / 0.9186 GB, free: 174.8 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.9887, allocations: 5.594 kB / 0.9186 GB, free: 174.8 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.9887, allocations: 5.047 kB / 0.9186 GB, free: 174.8 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/1.003, allocations: 2.969 MB / 0.9215 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.453e-06/1.003, allocations: 0 / 0.9215 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/1.004, allocations: 186.6 kB / 0.9217 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006773/1.004, allocations: 144.6 kB / 0.9218 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/1.005, allocations: 15.69 kB / 0.9218 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00392/1.008, allocations: 1.94 MB / 0.9237 GB, free: 173.3 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.984e-06/1.008, allocations: 0.75 kB / 0.9237 GB, free: 173.3 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01328/1.022, allocations: 2.153 MB / 0.9258 GB, free: 173 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006382/1.022, allocations: 242 kB / 0.926 GB, free: 172.9 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/1.023, allocations: 1.125 kB / 0.926 GB, free: 172.9 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/1.024, allocations: 98.52 kB / 0.9261 GB, free: 172.9 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/1.024, allocations: 43.42 kB / 0.9262 GB, free: 172.9 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/1.024, allocations: 30.33 kB / 0.9262 GB, free: 172.9 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0005784/1.025, allocations: 308.9 kB / 0.9265 GB, free: 172.8 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.001491/1.026, allocations: 272.8 kB / 0.9268 GB, free: 172.8 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 (71): * Single equations (assignments): 69 * 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.001365/1.028, allocations: 462.3 kB / 0.9272 GB, free: 172.7 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.00192/1.03, allocations: 0.8198 MB / 0.928 GB, free: 172.6 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/1.03, allocations: 0 / 0.928 GB, free: 172.6 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0009733/1.031, allocations: 0.5087 MB / 0.9285 GB, free: 172.5 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/1.031, allocations: 36.58 kB / 0.9285 GB, free: 172.5 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/1.034, allocations: 0.9118 MB / 0.9294 GB, free: 172.3 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/1.035, allocations: 0.9799 MB / 0.9304 GB, free: 171.6 MB / 0.5732 GB Notification: Performance of SimCode: time 9.82e-07/1.035, allocations: 4 kB / 0.9304 GB, free: 171.5 MB / 0.5732 GB Notification: Performance of Templates: time 0.02396/1.059, allocations: 13.29 MB / 0.9434 GB, free: 170.8 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)