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.005806/0.005805, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001196/0.001196, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002069/0.002069, allocations: 288.9 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9225/0.9225, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 96.14 kB / 0.6809 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3976/0.3995, allocations: 86.97 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005095/0.4046, allocations: 3.752 MB / 0.7695 GB, free: 108 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004673/0.4093, allocations: 3.427 MB / 0.7729 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003183/0.4097, allocations: 7.938 kB / 0.7729 GB, free: 12.65 MB / 0.545 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.0004706/0.4102, allocations: 123 kB / 0.773 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001213/0.4114, allocations: 469.4 kB / 0.7735 GB, free: 12.07 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008083/0.4122, allocations: 350.7 kB / 0.7738 GB, free: 11.73 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000702/0.4129, allocations: 0.7525 MB / 0.7745 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.4132, allocations: 197.9 kB / 0.7747 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003331/0.4135, allocations: 306.9 kB / 0.775 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.4139, allocations: 326.6 kB / 0.7753 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.62e-05/0.414, allocations: 64 kB / 0.7754 GB, free: 10.1 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00078/0.4148, allocations: 0.5034 MB / 0.7759 GB, free: 9.594 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.4149, allocations: 159.5 kB / 0.776 GB, free: 9.438 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.4152, allocations: 326.3 kB / 0.7763 GB, free: 9.117 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.4165, allocations: 1.095 MB / 0.7774 GB, free: 8.023 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4165, allocations: 0 / 0.7774 GB, free: 8.023 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.023e-06/0.4165, allocations: 0 / 0.7774 GB, free: 8.023 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.955e-05/0.4165, allocations: 0 / 0.7774 GB, free: 8.023 MB / 0.545 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.001956/0.4185, allocations: 1.017 MB / 0.7784 GB, free: 6.953 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.4185, allocations: 15.97 kB / 0.7784 GB, free: 6.938 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.4186, allocations: 86.72 kB / 0.7785 GB, free: 6.844 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003549/0.4222, allocations: 0.6325 MB / 0.7791 GB, free: 6.211 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.4236, allocations: 0.6238 MB / 0.7797 GB, free: 5.551 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.4237, allocations: 122.4 kB / 0.7798 GB, free: 5.414 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.553e-05/0.4238, allocations: 44 kB / 0.7799 GB, free: 5.371 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.4254, allocations: 0.6948 MB / 0.7806 GB, free: 4.66 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.4254, allocations: 0 / 0.7806 GB, free: 4.66 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.4255, allocations: 28 kB / 0.7806 GB, free: 4.633 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.4255, allocations: 11.98 kB / 0.7806 GB, free: 4.621 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.4275, allocations: 0.7609 MB / 0.7813 GB, free: 3.855 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003517/0.431, allocations: 1.806 MB / 0.7831 GB, free: 1.996 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/0.434, allocations: 0.8463 MB / 0.7839 GB, free: 1.145 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009908/0.435, allocations: 353.9 kB / 0.7843 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001802/0.4368, allocations: 1.765 MB / 0.786 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.4379, allocations: 429 kB / 0.7864 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.345e-06/0.4379, allocations: 0 / 0.7864 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002895/0.4408, allocations: 1.01 MB / 0.7874 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.4408, allocations: 115.2 kB / 0.7875 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004725/0.4413, allocations: 434.4 kB / 0.7879 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.3e-05/0.4414, allocations: 33.7 kB / 0.7879 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.4416, allocations: 281.1 kB / 0.7882 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.4417, allocations: 190.4 kB / 0.7884 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/0.442, allocations: 122.1 kB / 0.7885 GB, free: 12 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4421, allocations: 362.8 kB / 0.7889 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008886/0.443, allocations: 300.9 kB / 0.7891 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009745/0.444, allocations: 452.4 kB / 0.7896 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/0.4458, allocations: 0.6945 MB / 0.7902 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4458, allocations: 8 kB / 0.7903 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002173/0.448, allocations: 0.8225 MB / 0.7911 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.448, allocations: 8 kB / 0.7911 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.448, allocations: 4 kB / 0.7911 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.448, allocations: 4 kB / 0.7911 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009231/0.449, allocations: 179.9 kB / 0.7912 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.449, allocations: 11.88 kB / 0.7913 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000697/0.4497, allocations: 99.55 kB / 0.7914 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.148e-05/0.4498, allocations: 31.97 kB / 0.7914 GB, free: 8.938 MB / 0.5606 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.0002846/0.4501, allocations: 201.7 kB / 0.7916 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.4502, allocations: 55.67 kB / 0.7916 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002379/0.4526, allocations: 0.8832 MB / 0.7925 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.4526, allocations: 12 kB / 0.7925 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4526, allocations: 3.938 kB / 0.7925 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.4526, allocations: 7.922 kB / 0.7925 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.4556, allocations: 1.587 MB / 0.7941 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4556, allocations: 0 / 0.7941 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008308/0.4564, allocations: 151.8 kB / 0.7942 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.4564, allocations: 3.938 kB / 0.7942 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.4565, allocations: 23.92 kB / 0.7942 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.4565, allocations: 0 / 0.7942 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4565, allocations: 0 / 0.7942 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.4585, allocations: 0.856 MB / 0.7951 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.4588, allocations: 216.4 kB / 0.7953 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.971e-05/0.4589, allocations: 12 kB / 0.7953 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006386/0.4595, allocations: 59.92 kB / 0.7953 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.4596, allocations: 40.5 kB / 0.7954 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.4597, allocations: 27.98 kB / 0.7954 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003249/0.46, allocations: 299.1 kB / 0.7957 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.46, allocations: 0 / 0.7957 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006987/0.4607, allocations: 223.5 kB / 0.7959 GB, free: 4.195 MB / 0.5606 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.003281/0.464, allocations: 1.798 MB / 0.7977 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002012/0.4661, allocations: 0.7261 MB / 0.7984 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.4661, allocations: 448 / 0.7984 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009467/0.467, allocations: 387 kB / 0.7987 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.4676, allocations: 71.97 kB / 0.7988 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009393/0.477, allocations: 5.345 MB / 0.804 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.4774, allocations: 0.8773 MB / 0.8049 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000643/0.4781, allocations: 156.4 kB / 0.805 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.4785, allocations: 227.3 kB / 0.8053 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of SimCode: time 8.01e-07/0.4785, allocations: 4 kB / 0.8053 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04042/0.5189, allocations: 14.21 MB / 0.8191 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.815, allocations: 24 kB / 0.8192 GB, free: 12.5 MB / 0.5919 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)