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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005171/0.005171, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.001333/0.001333, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002433/0.002433, allocations: 286.7 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00265/0.00265, allocations: 99.78 kB / 0.6809 GB, free: 36 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1663, allocations: 86.98 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005708/0.172, allocations: 3.748 MB / 0.7695 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005349/0.1774, allocations: 3.434 MB / 0.7729 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003793/0.1778, allocations: 15.94 kB / 0.7729 GB, free: 1.746 MB / 0.5606 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.0005128/0.1784, allocations: 122.9 kB / 0.773 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.1796, allocations: 453.5 kB / 0.7735 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000856/0.1805, allocations: 354.6 kB / 0.7738 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007886/0.1813, allocations: 0.7487 MB / 0.7745 GB, free: 88 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2888/0.4701, allocations: 185.9 kB / 0.7747 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005767/0.4707, allocations: 304.7 kB / 0.775 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005094/0.4713, allocations: 323.9 kB / 0.7753 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.4714, allocations: 64.41 kB / 0.7754 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.4724, allocations: 0.4925 MB / 0.7758 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.4726, allocations: 171 kB / 0.776 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.4729, allocations: 323.4 kB / 0.7763 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.4743, allocations: 1.093 MB / 0.7774 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4743, allocations: 0.6875 kB / 0.7774 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4743, allocations: 0 / 0.7774 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.4743, allocations: 1.406 kB / 0.7774 GB, free: 7.93 MB / 0.5606 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.00174/0.4761, allocations: 1.011 MB / 0.7784 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.4761, allocations: 13.38 kB / 0.7784 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.4762, allocations: 89.89 kB / 0.7785 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003336/0.4796, allocations: 0.6213 MB / 0.7791 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.4808, allocations: 0.6353 MB / 0.7797 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.4809, allocations: 128.6 kB / 0.7798 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.191e-05/0.481, allocations: 48.28 kB / 0.7799 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.4824, allocations: 0.6899 MB / 0.7805 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.4824, allocations: 3.375 kB / 0.7805 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.203e-05/0.4825, allocations: 19.47 kB / 0.7806 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.4825, allocations: 12.59 kB / 0.7806 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.4843, allocations: 0.759 MB / 0.7813 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.4875, allocations: 1.806 MB / 0.7831 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.4902, allocations: 0.8459 MB / 0.7839 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008562/0.4911, allocations: 360 kB / 0.7842 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001522/0.4926, allocations: 1.761 MB / 0.786 GB, free: 20.01 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009694/0.4936, allocations: 434.7 kB / 0.7864 GB, free: 19.85 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 2.004e-06/0.4936, allocations: 0 / 0.7864 GB, free: 19.85 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002635/0.4963, allocations: 1.009 MB / 0.7874 GB, free: 19.51 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.4964, allocations: 108.5 kB / 0.7875 GB, free: 19.39 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.4968, allocations: 442 kB / 0.7879 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/0.4969, allocations: 32.8 kB / 0.7879 GB, free: 19.13 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.4971, allocations: 291 kB / 0.7882 GB, free: 18.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.4972, allocations: 183 kB / 0.7884 GB, free: 18.76 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.4974, allocations: 122.5 kB / 0.7885 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.4976, allocations: 359.2 kB / 0.7888 GB, free: 18.37 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008094/0.4984, allocations: 302.9 kB / 0.7891 GB, free: 18.28 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008573/0.4992, allocations: 441.8 kB / 0.7895 GB, free: 18.04 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.5008, allocations: 0.6937 MB / 0.7902 GB, free: 17.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.5008, allocations: 1.562 kB / 0.7902 GB, free: 17.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00195/0.5028, allocations: 0.8237 MB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.5028, allocations: 9.172 kB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.5028, allocations: 3.5 kB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.5029, allocations: 11.38 kB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008151/0.5037, allocations: 169.9 kB / 0.7912 GB, free: 17.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.5037, allocations: 10.95 kB / 0.7912 GB, free: 17.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006335/0.5043, allocations: 100.8 kB / 0.7913 GB, free: 17.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.5044, allocations: 31.22 kB / 0.7913 GB, free: 17.36 MB / 0.5762 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.000278/0.5047, allocations: 206.8 kB / 0.7915 GB, free: 17.19 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.593e-05/0.5048, allocations: 57.59 kB / 0.7916 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.5069, allocations: 0.8892 MB / 0.7925 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.5069, allocations: 12.62 kB / 0.7925 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5069, allocations: 3.75 kB / 0.7925 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.5069, allocations: 7.406 kB / 0.7925 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.5096, allocations: 1.581 MB / 0.794 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5096, allocations: 0 / 0.794 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/0.5104, allocations: 149.8 kB / 0.7942 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.5104, allocations: 3.781 kB / 0.7942 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.231e-05/0.5105, allocations: 19.73 kB / 0.7942 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.5105, allocations: 4.438 kB / 0.7942 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5105, allocations: 1.406 kB / 0.7942 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.5123, allocations: 0.8634 MB / 0.795 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.5126, allocations: 211 kB / 0.7952 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.995e-05/0.5127, allocations: 19.09 kB / 0.7953 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005839/0.5133, allocations: 57.06 kB / 0.7953 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.817e-05/0.5134, allocations: 43.09 kB / 0.7954 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.077e-05/0.5135, allocations: 24.98 kB / 0.7954 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003599/0.5138, allocations: 298.4 kB / 0.7957 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5139, allocations: 4 kB / 0.7957 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007938/0.5147, allocations: 229.9 kB / 0.7959 GB, free: 15.23 MB / 0.5762 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.003771/0.5184, allocations: 1.807 MB / 0.7977 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002164/0.5206, allocations: 0.723 MB / 0.7984 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5206, allocations: 0.5312 kB / 0.7984 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009993/0.5216, allocations: 389.1 kB / 0.7987 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.5221, allocations: 73.83 kB / 0.7988 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009695/0.5318, allocations: 5.355 MB / 0.804 GB, free: 11 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.5324, allocations: 0.8769 MB / 0.8049 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006519/0.533, allocations: 160.5 kB / 0.805 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/0.5335, allocations: 224.1 kB / 0.8053 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/0.5335, allocations: 0 / 0.8053 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0413/0.5748, allocations: 14.22 MB / 0.8191 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.62/9.195, allocations: 10.66 kB / 0.8192 GB, free: 4.688 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)