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.00104/0.00104, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001057/0.001057, allocations: 195.2 kB / 16.14 MB, free: 6.707 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.307/1.307, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 278.5 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9322/0.9322, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 88.72 kB / 0.5945 GB, free: 28.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1505, allocations: 86.98 MB / 0.6794 GB, free: 1.207 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.007099/0.1577, allocations: 3.775 MB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007935/0.1657, allocations: 3.425 MB / 0.6865 GB, free: 9.992 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007431/0.1665, allocations: 11.94 kB / 0.6865 GB, free: 9.98 MB / 494.1 MB [/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.0007328/0.1673, allocations: 107.3 kB / 0.6866 GB, free: 9.875 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001737/0.169, allocations: 378.2 kB / 0.6869 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1702, allocations: 314.8 kB / 0.6872 GB, free: 9.199 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.1713, allocations: 0.7055 MB / 0.6879 GB, free: 8.492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004673/0.1718, allocations: 189.6 kB / 0.6881 GB, free: 8.305 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006235/0.1725, allocations: 266.8 kB / 0.6884 GB, free: 8.043 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000719/0.1732, allocations: 290.7 kB / 0.6886 GB, free: 7.758 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.1734, allocations: 32 kB / 0.6887 GB, free: 7.727 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001234/0.1746, allocations: 475.5 kB / 0.6891 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.1748, allocations: 139.3 kB / 0.6893 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004242/0.1753, allocations: 286.3 kB / 0.6895 GB, free: 6.844 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.1771, allocations: 1.052 MB / 0.6906 GB, free: 5.789 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1771, allocations: 0 / 0.6906 GB, free: 5.789 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1771, allocations: 0 / 0.6906 GB, free: 5.789 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.1771, allocations: 0 / 0.6906 GB, free: 5.789 MB / 494.1 MB 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.002859/0.18, allocations: 0.9836 MB / 0.6915 GB, free: 4.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/0.1801, allocations: 12.03 kB / 0.6915 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005019/0.1851, allocations: 0.6244 MB / 0.6921 GB, free: 4.113 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.1871, allocations: 0.6235 MB / 0.6927 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.1873, allocations: 122.7 kB / 0.6929 GB, free: 3.316 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.1875, allocations: 47.94 kB / 0.6929 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.1892, allocations: 0.6909 MB / 0.6936 GB, free: 2.559 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1893, allocations: 0 / 0.6936 GB, free: 2.559 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.215e-05/0.1893, allocations: 20 kB / 0.6936 GB, free: 2.539 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.1894, allocations: 12 kB / 0.6936 GB, free: 2.527 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/0.1914, allocations: 0.761 MB / 0.6944 GB, free: 1.766 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003672/0.1951, allocations: 1.813 MB / 0.6961 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003089/0.1982, allocations: 0.8386 MB / 0.6969 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.1992, allocations: 353.9 kB / 0.6973 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001927/0.2011, allocations: 1.765 MB / 0.699 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.2022, allocations: 433 kB / 0.6994 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.475e-06/0.2023, allocations: 4 kB / 0.6994 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.003183/0.2054, allocations: 1.002 MB / 0.7004 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.023e-05/0.2055, allocations: 111.2 kB / 0.7005 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006544/0.2062, allocations: 441.9 kB / 0.7009 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.35e-05/0.2063, allocations: 37.7 kB / 0.701 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.2065, allocations: 276.5 kB / 0.7012 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.2067, allocations: 177.4 kB / 0.7014 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002261/0.2069, allocations: 122.1 kB / 0.7015 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2071, allocations: 366.7 kB / 0.7019 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009008/0.208, allocations: 300.9 kB / 0.7022 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009823/0.209, allocations: 444.5 kB / 0.7026 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.2108, allocations: 0.6984 MB / 0.7033 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.2108, allocations: 0 / 0.7033 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0022/0.213, allocations: 0.8184 MB / 0.7041 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.213, allocations: 4 kB / 0.7041 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.213, allocations: 4 kB / 0.7041 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.2131, allocations: 12 kB / 0.7041 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009403/0.214, allocations: 175.7 kB / 0.7042 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.323e-05/0.214, allocations: 16.06 kB / 0.7043 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007658/0.2148, allocations: 95.45 kB / 0.7043 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.2149, allocations: 31.97 kB / 0.7044 GB, free: 6.867 MB / 0.4981 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.0003247/0.2152, allocations: 208 kB / 0.7046 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.2154, allocations: 55.34 kB / 0.7046 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.2178, allocations: 0.8871 MB / 0.7055 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.2178, allocations: 8 kB / 0.7055 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.2178, allocations: 3.938 kB / 0.7055 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.2178, allocations: 3.984 kB / 0.7055 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/0.2208, allocations: 1.571 MB / 0.707 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2208, allocations: 8 kB / 0.7071 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.2216, allocations: 147.8 kB / 0.7072 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.2216, allocations: 7.938 kB / 0.7072 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.633e-05/0.2217, allocations: 23.86 kB / 0.7072 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.2217, allocations: 4 kB / 0.7072 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2217, allocations: 0 / 0.7072 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.2236, allocations: 0.8581 MB / 0.7081 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.2239, allocations: 208.2 kB / 0.7083 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.2241, allocations: 15.94 kB / 0.7083 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006597/0.2247, allocations: 61.47 kB / 0.7083 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.2248, allocations: 36.52 kB / 0.7084 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.678e-05/0.2249, allocations: 23.98 kB / 0.7084 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003605/0.2253, allocations: 303.1 kB / 0.7087 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2253, allocations: 0 / 0.7087 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00081/0.2261, allocations: 223.7 kB / 0.7089 GB, free: 2.129 MB / 0.4981 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.001308/0.2274, allocations: 0.5023 MB / 0.7094 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001988/0.2294, allocations: 0.7261 MB / 0.7101 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2294, allocations: 0 / 0.7101 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009263/0.2304, allocations: 387.4 kB / 0.7105 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005387/0.2309, allocations: 65.95 kB / 0.7105 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.2335, allocations: 1.459 MB / 0.712 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.234, allocations: 0.8814 MB / 0.7128 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007772/0.2347, allocations: 152.4 kB / 0.713 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.235, allocations: 71.39 kB / 0.713 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of SimCode: time 1.643e-06/0.235, allocations: 4 kB / 0.713 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of Templates: time 0.01502/0.2501, allocations: 8.342 MB / 0.7212 GB, free: 5.688 MB / 0.5137 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)