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.005823/0.005823, allocations: 100.4 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.001277/0.001277, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00245/0.00245, allocations: 297 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.209/1.209, allocations: 178.5 MB / 0.5074 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004082/0.004083, allocations: 103.8 kB / 0.6943 GB, free: 15.24 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3886, allocations: 89.13 MB / 0.7813 GB, free: 1.145 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.00504/0.3937, allocations: 3.747 MB / 0.785 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005137/0.3989, allocations: 3.426 MB / 0.7883 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.3992, allocations: 13.62 kB / 0.7883 GB, free: 11.44 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.0005305/0.3997, allocations: 127.2 kB / 0.7884 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.4009, allocations: 458 kB / 0.7889 GB, free: 11 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007939/0.4017, allocations: 357.6 kB / 0.7892 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008023/0.4025, allocations: 0.7541 MB / 0.79 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.4028, allocations: 190.6 kB / 0.7901 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.4032, allocations: 308 kB / 0.7904 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005004/0.4037, allocations: 330.7 kB / 0.7908 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.4038, allocations: 68.66 kB / 0.7908 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000883/0.4047, allocations: 497 kB / 0.7913 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.4049, allocations: 166.8 kB / 0.7914 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.4052, allocations: 324.6 kB / 0.7918 GB, free: 9.137 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.4066, allocations: 1.09 MB / 0.7928 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4066, allocations: 0 / 0.7928 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4066, allocations: 1.219 kB / 0.7928 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.936e-06/0.4066, allocations: 0 / 0.7928 GB, free: 8.367 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.001938/0.4086, allocations: 1.017 MB / 0.7938 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.4086, allocations: 12.75 kB / 0.7938 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001159/0.4087, allocations: 86.98 kB / 0.7939 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003677/0.4124, allocations: 0.628 MB / 0.7945 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.4139, allocations: 0.6252 MB / 0.7951 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.4141, allocations: 129 kB / 0.7953 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.4142, allocations: 46.88 kB / 0.7953 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.4158, allocations: 0.699 MB / 0.796 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.4159, allocations: 0 / 0.796 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-05/0.4159, allocations: 21.31 kB / 0.796 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.416, allocations: 11 kB / 0.796 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.4181, allocations: 0.7617 MB / 0.7968 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003624/0.4217, allocations: 1.8 MB / 0.7985 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003035/0.4248, allocations: 0.8391 MB / 0.7993 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.4258, allocations: 357.3 kB / 0.7997 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002055/0.4278, allocations: 1.764 MB / 0.8014 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.429, allocations: 435.2 kB / 0.8018 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.796e-06/0.429, allocations: 0 / 0.8018 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.003165/0.4322, allocations: 1.007 MB / 0.8028 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.4323, allocations: 113 kB / 0.8029 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006386/0.4329, allocations: 439.2 kB / 0.8033 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.762e-05/0.433, allocations: 35.11 kB / 0.8034 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002678/0.4333, allocations: 282.2 kB / 0.8036 GB, free: 256 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.4335, allocations: 184.3 kB / 0.8038 GB, free: 92 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.4337, allocations: 126.1 kB / 0.8039 GB, free: 8 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002623/0.434, allocations: 357.5 kB / 0.8043 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000975/0.435, allocations: 305.9 kB / 0.8046 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.4361, allocations: 439.5 kB / 0.805 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.438, allocations: 0.7056 MB / 0.8057 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.438, allocations: 0 / 0.8057 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002384/0.4404, allocations: 0.8178 MB / 0.8065 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.4405, allocations: 8 kB / 0.8065 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4405, allocations: 4 kB / 0.8065 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.4405, allocations: 4 kB / 0.8065 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009486/0.4415, allocations: 179.9 kB / 0.8067 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-05/0.4415, allocations: 11.92 kB / 0.8067 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008304/0.4423, allocations: 103.5 kB / 0.8068 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.4424, allocations: 31.97 kB / 0.8068 GB, free: 13.88 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.0003712/0.4428, allocations: 198.2 kB / 0.807 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.443, allocations: 59.67 kB / 0.807 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.4456, allocations: 0.8871 MB / 0.8079 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.4456, allocations: 8 kB / 0.8079 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.4456, allocations: 7.922 kB / 0.8079 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.4456, allocations: 7.984 kB / 0.8079 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.449, allocations: 1.575 MB / 0.8095 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.449, allocations: 0 / 0.8095 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008382/0.4499, allocations: 151.8 kB / 0.8096 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.4499, allocations: 3.938 kB / 0.8096 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.996e-05/0.4499, allocations: 23.97 kB / 0.8096 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.45, allocations: 0 / 0.8096 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.45, allocations: 4 kB / 0.8096 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.4521, allocations: 0.8637 MB / 0.8105 GB, free: 10 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003146/0.4524, allocations: 216.4 kB / 0.8107 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.4526, allocations: 12 kB / 0.8107 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/0.4532, allocations: 63.92 kB / 0.8108 GB, free: 9.695 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.4533, allocations: 36.52 kB / 0.8108 GB, free: 9.66 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.801e-05/0.4534, allocations: 27.97 kB / 0.8108 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003872/0.4538, allocations: 295.1 kB / 0.8111 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4538, allocations: 0 / 0.8111 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008064/0.4546, allocations: 227.4 kB / 0.8113 GB, free: 9.125 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.004128/0.4588, allocations: 1.797 MB / 0.8131 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002161/0.4609, allocations: 0.73 MB / 0.8138 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.4609, allocations: 4 kB / 0.8138 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.462, allocations: 379.4 kB / 0.8142 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005701/0.4625, allocations: 83.36 kB / 0.8142 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.4737, allocations: 5.356 MB / 0.8195 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.4743, allocations: 0.8773 MB / 0.8203 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007091/0.4751, allocations: 152.4 kB / 0.8205 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.4756, allocations: 227.3 kB / 0.8207 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of SimCode: time 6.21e-07/0.4756, allocations: 4 kB / 0.8207 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04406/0.5196, allocations: 14.21 MB / 0.8346 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.131/9.65, allocations: 6.766 kB / 0.8346 GB, free: 1.414 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)