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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 195.5 kB / 16.14 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002583/0.002583, allocations: 286.7 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.113/1.113, allocations: 178.6 MB / 0.5068 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002721/0.002721, allocations: 98.27 kB / 0.6057 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1661, allocations: 89.16 MB / 0.6928 GB, free: 4.852 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005688/0.1718, allocations: 3.766 MB / 0.6965 GB, free: 1.074 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005183/0.177, allocations: 3.444 MB / 0.6998 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003252/0.1774, allocations: 7.938 kB / 0.6998 GB, free: 13.61 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005101/0.178, allocations: 107.3 kB / 0.6999 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009951/0.179, allocations: 373 kB / 0.7003 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008261/0.1798, allocations: 334.8 kB / 0.7006 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007953/0.1806, allocations: 0.6902 MB / 0.7013 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.1809, allocations: 181.6 kB / 0.7015 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000377/0.1813, allocations: 278.7 kB / 0.7017 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004571/0.1818, allocations: 294.6 kB / 0.702 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.359e-05/0.1819, allocations: 28 kB / 0.702 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008875/0.1828, allocations: 475.5 kB / 0.7025 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001908/0.183, allocations: 131.4 kB / 0.7026 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003314/0.1833, allocations: 294.2 kB / 0.7029 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001388/0.1847, allocations: 1.044 MB / 0.7039 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1847, allocations: 0 / 0.7039 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.31e-07/0.1847, allocations: 4 kB / 0.7039 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.1847, allocations: 0 / 0.7039 GB, free: 9.422 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002195/0.1869, allocations: 0.9952 MB / 0.7049 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.187, allocations: 15.97 kB / 0.7049 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003807/0.1908, allocations: 0.6166 MB / 0.7055 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.1923, allocations: 0.6312 MB / 0.7061 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.1925, allocations: 118.7 kB / 0.7062 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-05/0.1926, allocations: 55.94 kB / 0.7063 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.1944, allocations: 0.6909 MB / 0.707 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.1944, allocations: 0 / 0.707 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.81e-05/0.1945, allocations: 16 kB / 0.707 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.1945, allocations: 12 kB / 0.707 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002222/0.1967, allocations: 0.761 MB / 0.7077 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003948/0.2007, allocations: 1.805 MB / 0.7095 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003067/0.2038, allocations: 0.8344 MB / 0.7103 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.2048, allocations: 353.9 kB / 0.7106 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002414/0.2072, allocations: 1.769 MB / 0.7124 GB, free: 180 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.2084, allocations: 429 kB / 0.7128 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.474e-06/0.2084, allocations: 0 / 0.7128 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.003105/0.2116, allocations: 1.01 MB / 0.7138 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.217e-05/0.2117, allocations: 107.2 kB / 0.7139 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005875/0.2122, allocations: 439 kB / 0.7143 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.845e-05/0.2123, allocations: 41.7 kB / 0.7143 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.2126, allocations: 268.6 kB / 0.7146 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.2128, allocations: 177.4 kB / 0.7148 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.2131, allocations: 126.1 kB / 0.7149 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002253/0.2133, allocations: 358.8 kB / 0.7152 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009621/0.2143, allocations: 304.8 kB / 0.7155 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.2153, allocations: 444.5 kB / 0.7159 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/0.2172, allocations: 0.7023 MB / 0.7166 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.2173, allocations: 3.938 kB / 0.7166 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002274/0.2195, allocations: 0.8146 MB / 0.7174 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.2196, allocations: 8.031 kB / 0.7174 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2196, allocations: 4 kB / 0.7174 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.2196, allocations: 11.98 kB / 0.7174 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009743/0.2206, allocations: 171.7 kB / 0.7176 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.2206, allocations: 11.88 kB / 0.7176 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007665/0.2214, allocations: 111.3 kB / 0.7177 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.165e-05/0.2215, allocations: 31.97 kB / 0.7177 GB, free: 10.5 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003223/0.2218, allocations: 202.4 kB / 0.7179 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.2219, allocations: 47.44 kB / 0.718 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00249/0.2244, allocations: 0.8832 MB / 0.7188 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.2245, allocations: 4 kB / 0.7189 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.2245, allocations: 11.94 kB / 0.7189 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.2245, allocations: 7.969 kB / 0.7189 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.2277, allocations: 1.582 MB / 0.7204 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2278, allocations: 0 / 0.7204 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008616/0.2286, allocations: 155.8 kB / 0.7206 GB, free: 7.535 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.2287, allocations: 7.938 kB / 0.7206 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.2287, allocations: 15.98 kB / 0.7206 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.2287, allocations: 4 kB / 0.7206 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2287, allocations: 0 / 0.7206 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/0.2309, allocations: 0.8543 MB / 0.7214 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.2312, allocations: 208.2 kB / 0.7216 GB, free: 6.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2313, allocations: 15.94 kB / 0.7216 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.232, allocations: 59.84 kB / 0.7217 GB, free: 6.34 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.2321, allocations: 40.5 kB / 0.7217 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.398e-05/0.2322, allocations: 19.98 kB / 0.7218 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000395/0.2326, allocations: 307.1 kB / 0.722 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.39e-06/0.2326, allocations: 0 / 0.722 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007895/0.2334, allocations: 231.6 kB / 0.7223 GB, free: 5.758 MB / 0.5137 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 (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001707/0.2351, allocations: 0.4924 MB / 0.7227 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002088/0.2372, allocations: 0.7222 MB / 0.7235 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2372, allocations: 4 kB / 0.7235 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009935/0.2382, allocations: 387.4 kB / 0.7238 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.2388, allocations: 61.95 kB / 0.7239 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.2413, allocations: 1.471 MB / 0.7253 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005524/0.2419, allocations: 0.8775 MB / 0.7262 GB, free: 1.844 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007846/0.2427, allocations: 152.4 kB / 0.7263 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/0.243, allocations: 75.39 kB / 0.7264 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of SimCode: time 6.31e-07/0.243, allocations: 0 / 0.7264 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of Templates: time 0.01644/0.2595, allocations: 8.335 MB / 0.7345 GB, free: 9.332 MB / 0.5294 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)