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.001278/0.001278, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001274/0.001274, allocations: 189.9 kB / 16.25 MB, free: 6.633 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.489/1.489, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002571/0.002571, allocations: 290.9 kB / 290.4 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.103/1.103, allocations: 178.6 MB / 0.5069 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002785/0.002786, allocations: 100.6 kB / 0.6059 GB, free: 25.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1621, allocations: 89.15 MB / 0.693 GB, free: 4.777 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005471/0.1676, allocations: 3.773 MB / 0.6967 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005257/0.1729, allocations: 3.383 MB / 0.7 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003095/0.1732, allocations: 7.938 kB / 0.7 GB, free: 13.59 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.000468/0.1737, allocations: 100.7 kB / 0.7001 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.1748, allocations: 398.2 kB / 0.7004 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007608/0.1756, allocations: 326.2 kB / 0.7007 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008256/0.1764, allocations: 0.7487 MB / 0.7015 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.1767, allocations: 193.9 kB / 0.7017 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.1772, allocations: 310.7 kB / 0.702 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004636/0.1776, allocations: 318.6 kB / 0.7023 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.877e-05/0.1777, allocations: 64 kB / 0.7023 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008545/0.1786, allocations: 0.5033 MB / 0.7028 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.1788, allocations: 163.5 kB / 0.703 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003267/0.1791, allocations: 334.2 kB / 0.7033 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1804, allocations: 1.059 MB / 0.7043 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1804, allocations: 3.938 kB / 0.7043 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1804, allocations: 0 / 0.7043 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.1804, allocations: 0 / 0.7043 GB, free: 9.105 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.00198/0.1824, allocations: 0.9992 MB / 0.7053 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.1825, allocations: 8.031 kB / 0.7053 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003779/0.1862, allocations: 0.6166 MB / 0.7059 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.1877, allocations: 0.6312 MB / 0.7065 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.1878, allocations: 122.7 kB / 0.7066 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.188, allocations: 47.94 kB / 0.7067 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.1896, allocations: 0.7026 MB / 0.7074 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1897, allocations: 0 / 0.7074 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.613e-05/0.1897, allocations: 20 kB / 0.7074 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.1898, allocations: 12 kB / 0.7074 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002136/0.1919, allocations: 0.7533 MB / 0.7081 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.1956, allocations: 1.813 MB / 0.7099 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003031/0.1987, allocations: 0.8401 MB / 0.7107 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009693/0.1996, allocations: 350 kB / 0.7111 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002023/0.2017, allocations: 1.765 MB / 0.7128 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.2028, allocations: 425.1 kB / 0.7132 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.264e-06/0.2028, allocations: 0 / 0.7132 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.003022/0.2058, allocations: 1.01 MB / 0.7142 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.376e-05/0.2059, allocations: 115.2 kB / 0.7143 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005236/0.2064, allocations: 439 kB / 0.7147 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.994e-05/0.2065, allocations: 33.7 kB / 0.7147 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.2068, allocations: 276.6 kB / 0.715 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.2069, allocations: 173.5 kB / 0.7152 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.2072, allocations: 126.1 kB / 0.7153 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000187/0.2074, allocations: 362.8 kB / 0.7156 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009174/0.2083, allocations: 300.9 kB / 0.7159 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.2094, allocations: 442.2 kB / 0.7164 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.2113, allocations: 0.6983 MB / 0.717 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.2113, allocations: 7.938 kB / 0.717 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002266/0.2136, allocations: 0.8144 MB / 0.7178 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2136, allocations: 11.94 kB / 0.7178 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2136, allocations: 4 kB / 0.7179 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.2136, allocations: 4 kB / 0.7179 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009618/0.2146, allocations: 179.9 kB / 0.718 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/0.2146, allocations: 11.94 kB / 0.718 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007369/0.2154, allocations: 103.3 kB / 0.7181 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.145e-05/0.2155, allocations: 39.97 kB / 0.7182 GB, free: 10.17 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.0003246/0.2158, allocations: 198.4 kB / 0.7184 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.2159, allocations: 51.44 kB / 0.7184 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.2184, allocations: 0.8909 MB / 0.7193 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.2185, allocations: 8 kB / 0.7193 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.2185, allocations: 3.938 kB / 0.7193 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.2185, allocations: 3.984 kB / 0.7193 GB, free: 9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003131/0.2216, allocations: 1.57 MB / 0.7208 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2216, allocations: 0 / 0.7208 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008452/0.2225, allocations: 159.8 kB / 0.721 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.2225, allocations: 3.938 kB / 0.721 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.748e-05/0.2226, allocations: 19.98 kB / 0.721 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2226, allocations: 4 kB / 0.721 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2226, allocations: 0 / 0.721 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.2246, allocations: 0.8542 MB / 0.7218 GB, free: 6.316 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/0.2249, allocations: 208.2 kB / 0.722 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.225, allocations: 19.94 kB / 0.7221 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006794/0.2257, allocations: 63.83 kB / 0.7221 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2258, allocations: 40.5 kB / 0.7222 GB, free: 5.973 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.2259, allocations: 23.98 kB / 0.7222 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003646/0.2263, allocations: 299.1 kB / 0.7225 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.375e-06/0.2263, allocations: 0 / 0.7225 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007456/0.227, allocations: 227.7 kB / 0.7227 GB, free: 5.441 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.001699/0.2287, allocations: 0.4943 MB / 0.7232 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002358/0.2311, allocations: 0.7728 MB / 0.7239 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2311, allocations: 0 / 0.7239 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009807/0.2321, allocations: 387.4 kB / 0.7243 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.2326, allocations: 70.81 kB / 0.7244 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.2352, allocations: 1.481 MB / 0.7258 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005489/0.2358, allocations: 0.8734 MB / 0.7267 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0008063/0.2366, allocations: 156.4 kB / 0.7268 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.2369, allocations: 75.38 kB / 0.7269 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.2369, allocations: 0 / 0.7269 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of Templates: time 0.01655/0.2535, allocations: 8.578 MB / 0.7353 GB, free: 8.707 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)