Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",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.005841/0.005841, allocations: 95.97 kB / 15.73 MB, free: 6.051 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.001184/0.001184, allocations: 197.8 kB / 16.67 MB, free: 5.973 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003788/0.003788, allocations: 278.6 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9617/0.9617, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 99.84 kB / 0.6809 GB, free: 16 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1455, allocations: 86.97 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005078/0.1506, allocations: 3.71 MB / 0.7695 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005054/0.1557, allocations: 3.434 MB / 0.7728 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003965/0.1561, allocations: 7.938 kB / 0.7729 GB, free: 1.773 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.0006037/0.1567, allocations: 129.8 kB / 0.773 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.1581, allocations: 461.5 kB / 0.7734 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009077/0.159, allocations: 373.8 kB / 0.7738 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008972/0.1599, allocations: 0.7643 MB / 0.7745 GB, free: 68 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3194/0.4793, allocations: 184.5 kB / 0.7747 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000659/0.48, allocations: 322.8 kB / 0.775 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005797/0.4806, allocations: 323.5 kB / 0.7753 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.4807, allocations: 65.28 kB / 0.7754 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.4819, allocations: 0.4926 MB / 0.7759 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.4821, allocations: 170 kB / 0.776 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003261/0.4824, allocations: 325.5 kB / 0.7763 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001725/0.4842, allocations: 1.091 MB / 0.7774 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4842, allocations: 1.344 kB / 0.7774 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4842, allocations: 0 / 0.7774 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.4842, allocations: 3.438 kB / 0.7774 GB, free: 7.953 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.002161/0.4864, allocations: 1.016 MB / 0.7784 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.4864, allocations: 10.66 kB / 0.7784 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.4866, allocations: 95.75 kB / 0.7785 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003327/0.4899, allocations: 0.5705 MB / 0.779 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.4913, allocations: 0.6299 MB / 0.7797 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.4914, allocations: 116.3 kB / 0.7798 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.637e-05/0.4915, allocations: 50.47 kB / 0.7798 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.4929, allocations: 0.6616 MB / 0.7805 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.493, allocations: 1.375 kB / 0.7805 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.76e-05/0.493, allocations: 20.12 kB / 0.7805 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.493, allocations: 12.48 kB / 0.7805 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.4947, allocations: 0.6953 MB / 0.7812 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.4982, allocations: 1.766 MB / 0.7829 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00275/0.501, allocations: 0.8078 MB / 0.7837 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008105/0.5018, allocations: 321.3 kB / 0.784 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001696/0.5035, allocations: 1.767 MB / 0.7857 GB, free: 20.06 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/0.5045, allocations: 392.9 kB / 0.7861 GB, free: 19.91 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 3.146e-06/0.5045, allocations: 6.375 kB / 0.7861 GB, free: 19.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.00246/0.5069, allocations: 0.9309 MB / 0.787 GB, free: 19.57 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/0.507, allocations: 109.6 kB / 0.7871 GB, free: 19.45 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005352/0.5076, allocations: 425.1 kB / 0.7875 GB, free: 19.23 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.5076, allocations: 32.83 kB / 0.7876 GB, free: 19.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.5078, allocations: 281.8 kB / 0.7878 GB, free: 18.97 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.508, allocations: 188.7 kB / 0.788 GB, free: 18.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.5082, allocations: 124.3 kB / 0.7881 GB, free: 18.76 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.5083, allocations: 357.8 kB / 0.7885 GB, free: 18.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007233/0.5091, allocations: 274.8 kB / 0.7887 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008016/0.5099, allocations: 409.6 kB / 0.7891 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.5114, allocations: 0.6543 MB / 0.7898 GB, free: 17.77 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.5114, allocations: 0 / 0.7898 GB, free: 17.77 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001844/0.5132, allocations: 0.7665 MB / 0.7905 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.5133, allocations: 7.594 kB / 0.7905 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5133, allocations: 2.719 kB / 0.7905 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.5133, allocations: 6.875 kB / 0.7905 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.5149, allocations: 247.6 kB / 0.7908 GB, free: 17.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.5167, allocations: 1.585 MB / 0.7923 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007789/0.5175, allocations: 87.89 kB / 0.7924 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.5175, allocations: 32.2 kB / 0.7924 GB, free: 15.91 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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003741/0.5179, allocations: 209.6 kB / 0.7926 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.518, allocations: 56.88 kB / 0.7927 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00245/0.5205, allocations: 0.936 MB / 0.7936 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.5205, allocations: 9.844 kB / 0.7936 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.5205, allocations: 1.078 kB / 0.7936 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.5205, allocations: 4.297 kB / 0.7936 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.5238, allocations: 1.623 MB / 0.7952 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.5238, allocations: 5.094 kB / 0.7952 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007683/0.5246, allocations: 144.7 kB / 0.7953 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004324/0.525, allocations: 56.16 kB / 0.7954 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.616e-05/0.5251, allocations: 23.81 kB / 0.7954 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.5265, allocations: 1.575 MB / 0.7969 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5266, allocations: 0 / 0.7969 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.5289, allocations: 0.9057 MB / 0.7978 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.5293, allocations: 205.5 kB / 0.798 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-05/0.5294, allocations: 20.28 kB / 0.798 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006051/0.53, allocations: 55.05 kB / 0.7981 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.5301, allocations: 45.75 kB / 0.7981 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.095e-05/0.5302, allocations: 22.62 kB / 0.7982 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004155/0.5306, allocations: 293.6 kB / 0.7984 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5306, allocations: 0 / 0.7984 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000964/0.5316, allocations: 232 kB / 0.7987 GB, free: 12.22 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): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003794/0.5354, allocations: 1.855 MB / 0.8005 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003046/0.5385, allocations: 0.7663 MB / 0.8012 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5385, allocations: 0.5312 kB / 0.8012 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.5397, allocations: 0.4958 MB / 0.8017 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.5403, allocations: 65.08 kB / 0.8018 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009515/0.5498, allocations: 5.163 MB / 0.8068 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004941/0.5503, allocations: 0.8794 MB / 0.8077 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006528/0.551, allocations: 147.9 kB / 0.8078 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004155/0.5514, allocations: 228.7 kB / 0.808 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/0.5514, allocations: 0 / 0.808 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04282/0.5943, allocations: 14.38 MB / 0.8221 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.34, allocations: 16.55 kB / 0.8221 GB, free: 1.508 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex_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_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)