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") [: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.8997/0.8997, allocations: 141.8 MB / 149.1 MB, free: 1.316 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 173.3 kB / 181.9 MB, free: 0.6836 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.584/1.584, allocations: 221.4 MB / 436 MB, free: 5.453 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.0009849/0.0009851, allocations: 96.55 kB / 0.507 GB, free: 2.125 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001643/0.001643, allocations: 284 kB / 0.5885 GB, free: 47.16 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 8.697e-06/8.797e-06, allocations: 1.5 kB / 0.6759 GB, free: 59.61 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1772, allocations: 82.77 MB / 0.7567 GB, free: 0.6172 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5459/0.7231, allocations: 122.4 MB / 0.8763 GB, free: 26.24 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.7234, allocations: 81.23 kB / 0.8764 GB, free: 26.24 MB / 0.5419 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.05669/0.7801, allocations: 21.31 MB / 0.8972 GB, free: 24.6 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 3.897e-05/0.7802, allocations: 23.66 kB / 0.8972 GB, free: 24.59 MB / 0.5419 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.0017/0.7819, allocations: 0.8686 MB / 0.898 GB, free: 23.98 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.7819, allocations: 7.812 kB / 0.898 GB, free: 23.98 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003076/0.785, allocations: 0.5558 MB / 0.8986 GB, free: 23.92 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009751/0.786, allocations: 444.7 kB / 0.899 GB, free: 23.66 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.7862, allocations: 106.7 kB / 0.8991 GB, free: 23.57 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/0.7863, allocations: 27.06 kB / 0.8991 GB, free: 23.57 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001275/0.7876, allocations: 0.6778 MB / 0.8998 GB, free: 23.57 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.7886, allocations: 0.5924 MB / 0.9004 GB, free: 23.48 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.7887, allocations: 0 / 0.9004 GB, free: 23.48 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.88e-05/0.7887, allocations: 3.984 kB / 0.9004 GB, free: 23.48 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.7888, allocations: 11.66 kB / 0.9004 GB, free: 23.48 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004839/0.7936, allocations: 2.094 MB / 0.9024 GB, free: 22.91 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.7955, allocations: 0.7753 MB / 0.9032 GB, free: 22.87 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/0.796, allocations: 325.8 kB / 0.9035 GB, free: 22.86 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001532/0.7976, allocations: 1.762 MB / 0.9052 GB, free: 20.88 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005395/0.7981, allocations: 386.1 kB / 0.9056 GB, free: 20.83 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=55): time 3.828e-06/0.7982, allocations: 4 kB / 0.9056 GB, free: 20.83 MB / 0.5419 GB Notification: Performance of matching and sorting (n=55): time 0.01025/0.8084, allocations: 1.694 MB / 0.9073 GB, free: 20.71 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.8085, allocations: 141.5 kB / 0.9074 GB, free: 20.55 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.8092, allocations: 390.2 kB / 0.9078 GB, free: 20.44 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 9.675e-05/0.8093, allocations: 30.5 kB / 0.9078 GB, free: 20.41 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.8095, allocations: 217.5 kB / 0.908 GB, free: 20.25 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.8097, allocations: 174.7 kB / 0.9082 GB, free: 20.14 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.8098, allocations: 0 / 0.9082 GB, free: 20.14 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.8099, allocations: 362.8 kB / 0.9085 GB, free: 19.82 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.8104, allocations: 270.3 kB / 0.9088 GB, free: 19.82 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.8109, allocations: 371.2 kB / 0.9091 GB, free: 19.73 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009556/0.8205, allocations: 1.33 MB / 0.9104 GB, free: 19.66 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.72e-05/0.8206, allocations: 0 / 0.9104 GB, free: 19.66 MB / 0.5419 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.01069/0.8313, allocations: 1.765 MB / 0.9121 GB, free: 19.54 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.8313, allocations: 7.688 kB / 0.9122 GB, free: 19.54 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.8313, allocations: 0 / 0.9122 GB, free: 19.54 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/0.8314, allocations: 7.781 kB / 0.9122 GB, free: 19.54 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.8326, allocations: 203 kB / 0.9124 GB, free: 19.52 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.8326, allocations: 9.344 kB / 0.9124 GB, free: 19.52 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/0.8337, allocations: 133.8 kB / 0.9125 GB, free: 19.49 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.8338, allocations: 31.53 kB / 0.9125 GB, free: 19.49 MB / 0.5419 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.0002038/0.834, allocations: 116.7 kB / 0.9126 GB, free: 19.38 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.8342, allocations: 51.78 kB / 0.9127 GB, free: 19.35 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/0.8451, allocations: 1.901 MB / 0.9145 GB, free: 19.2 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.8452, allocations: 11.59 kB / 0.9145 GB, free: 19.2 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.8452, allocations: 0.6562 kB / 0.9145 GB, free: 19.2 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.8452, allocations: 7.797 kB / 0.9146 GB, free: 19.2 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.8579, allocations: 2.627 MB / 0.9171 GB, free: 18.82 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.858, allocations: 0 / 0.9171 GB, free: 18.82 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.8592, allocations: 197.8 kB / 0.9173 GB, free: 18.8 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.172e-05/0.8592, allocations: 0 / 0.9173 GB, free: 18.8 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.8593, allocations: 19 kB / 0.9173 GB, free: 18.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.378e-06/0.8594, allocations: 0 / 0.9173 GB, free: 18.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.8594, allocations: 7.844 kB / 0.9173 GB, free: 18.8 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01013/0.8695, allocations: 1.846 MB / 0.9191 GB, free: 18.32 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004882/0.8701, allocations: 237.2 kB / 0.9194 GB, free: 18.15 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.8703, allocations: 0 / 0.9194 GB, free: 18.15 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.8712, allocations: 93.92 kB / 0.9195 GB, free: 18.12 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.8714, allocations: 39.33 kB / 0.9195 GB, free: 18.11 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.262e-05/0.8715, allocations: 26.42 kB / 0.9195 GB, free: 18.1 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0004276/0.8719, allocations: 302.5 kB / 0.9198 GB, free: 18 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.001146/0.8731, allocations: 250.4 kB / 0.92 GB, free: 17.94 MB / 0.5419 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.001227/0.8743, allocations: 460.8 kB / 0.9205 GB, free: 17.7 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.001194/0.8755, allocations: 0.6707 MB / 0.9211 GB, free: 17.62 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.8755, allocations: 0 / 0.9211 GB, free: 17.62 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005443/0.8761, allocations: 377.8 kB / 0.9215 GB, free: 17.57 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000492/0.8766, allocations: 45.5 kB / 0.9215 GB, free: 17.56 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.8787, allocations: 0.842 MB / 0.9224 GB, free: 17.26 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007521/0.8794, allocations: 0.9794 MB / 0.9233 GB, free: 16.44 MB / 0.5419 GB Notification: Performance of SimCode: time 5.21e-07/0.8794, allocations: 0 / 0.9233 GB, free: 16.44 MB / 0.5419 GB Notification: Performance of Templates: time 0.01819/0.8976, allocations: 10.74 MB / 0.9338 GB, free: 10.98 MB / 0.5419 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)