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.007318/0.007318, allocations: 99.69 kB / 15.73 MB, free: 6.445 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.001923/0.001923, allocations: 191.5 kB / 16.67 MB, free: 6.348 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 282.4 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.095/1.095, allocations: 178.6 MB / 0.5074 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002839/0.00284, allocations: 95.84 kB / 0.6943 GB, free: 3.625 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4589/0.4617, allocations: 89.13 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005436/0.4672, allocations: 3.724 MB / 0.7849 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005206/0.4724, allocations: 3.435 MB / 0.7883 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.4727, allocations: 17.59 kB / 0.7883 GB, free: 8.762 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.0005186/0.4733, allocations: 120.3 kB / 0.7884 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.4744, allocations: 452.1 kB / 0.7888 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008635/0.4753, allocations: 369.8 kB / 0.7892 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008592/0.4762, allocations: 0.7648 MB / 0.7899 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003103/0.4765, allocations: 190.5 kB / 0.7901 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004915/0.477, allocations: 320 kB / 0.7904 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.4777, allocations: 324.8 kB / 0.7907 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.4778, allocations: 66 kB / 0.7908 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009752/0.4788, allocations: 500 kB / 0.7913 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.479, allocations: 175.7 kB / 0.7914 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003305/0.4794, allocations: 321.1 kB / 0.7918 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001491/0.4808, allocations: 1.096 MB / 0.7928 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.4809, allocations: 0 / 0.7928 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4809, allocations: 5.094 kB / 0.7928 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.4809, allocations: 0 / 0.7928 GB, free: 6.555 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.002121/0.483, allocations: 1.012 MB / 0.7938 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.4831, allocations: 9.656 kB / 0.7938 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.4832, allocations: 90.98 kB / 0.7939 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003176/0.4864, allocations: 0.568 MB / 0.7945 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.4878, allocations: 0.6238 MB / 0.7951 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.4879, allocations: 123 kB / 0.7952 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.488, allocations: 46.69 kB / 0.7952 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.4895, allocations: 0.67 MB / 0.7959 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.4895, allocations: 0 / 0.7959 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.691e-05/0.4896, allocations: 20.28 kB / 0.7959 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.4896, allocations: 10.97 kB / 0.7959 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.4914, allocations: 0.6925 MB / 0.7966 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003407/0.4948, allocations: 1.77 MB / 0.7983 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/0.4976, allocations: 0.8026 MB / 0.7991 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000848/0.4985, allocations: 324.3 kB / 0.7994 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002001/0.5005, allocations: 1.768 MB / 0.8011 GB, free: 444 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009584/0.5014, allocations: 396.9 kB / 0.8015 GB, free: 188 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.324e-06/0.5015, allocations: 3.938 kB / 0.8015 GB, free: 184 kB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002646/0.5041, allocations: 0.9329 MB / 0.8024 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/0.5042, allocations: 112 kB / 0.8025 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.5047, allocations: 416.4 kB / 0.8029 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.34e-05/0.5048, allocations: 40.08 kB / 0.803 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.5051, allocations: 281.7 kB / 0.8033 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.5052, allocations: 184.1 kB / 0.8034 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00025/0.5055, allocations: 122 kB / 0.8035 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.5057, allocations: 362.2 kB / 0.8039 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007799/0.5065, allocations: 271.3 kB / 0.8041 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/0.5074, allocations: 412.7 kB / 0.8045 GB, free: 14 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.509, allocations: 0.6514 MB / 0.8052 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.5091, allocations: 1 kB / 0.8052 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001987/0.511, allocations: 0.7684 MB / 0.8059 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.5111, allocations: 11.77 kB / 0.8059 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5111, allocations: 3.312 kB / 0.8059 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.5111, allocations: 5.156 kB / 0.8059 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.5127, allocations: 244.7 kB / 0.8062 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.5147, allocations: 1.596 MB / 0.8077 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007232/0.5154, allocations: 91.44 kB / 0.8078 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-05/0.5155, allocations: 31.16 kB / 0.8079 GB, free: 11.43 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.0003567/0.5158, allocations: 204.8 kB / 0.8081 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.516, allocations: 58.12 kB / 0.8081 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002652/0.5186, allocations: 0.9335 MB / 0.809 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.5187, allocations: 5.406 kB / 0.809 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5187, allocations: 1.812 kB / 0.809 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.5187, allocations: 7.922 kB / 0.809 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.5221, allocations: 1.619 MB / 0.8106 GB, free: 9.574 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5221, allocations: 1 kB / 0.8106 GB, free: 9.574 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007411/0.5229, allocations: 141.4 kB / 0.8108 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000435/0.5233, allocations: 58.28 kB / 0.8108 GB, free: 9.508 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/0.5234, allocations: 20.77 kB / 0.8108 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.5251, allocations: 1.576 MB / 0.8124 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.5251, allocations: 5.344 kB / 0.8124 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.5274, allocations: 0.8975 MB / 0.8132 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.5278, allocations: 216.3 kB / 0.8135 GB, free: 7.195 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.5279, allocations: 14.94 kB / 0.8135 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006613/0.5286, allocations: 54.25 kB / 0.8135 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.5287, allocations: 50.56 kB / 0.8136 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.5288, allocations: 22.14 kB / 0.8136 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003644/0.5291, allocations: 291.7 kB / 0.8139 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5292, allocations: 1.219 kB / 0.8139 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008498/0.53, allocations: 233.6 kB / 0.8141 GB, free: 6.871 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.004205/0.5342, allocations: 1.847 MB / 0.8159 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002642/0.5369, allocations: 0.7603 MB / 0.8166 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5369, allocations: 0 / 0.8166 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.538, allocations: 0.4918 MB / 0.8171 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.5386, allocations: 74.7 kB / 0.8172 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0094/0.548, allocations: 5.156 MB / 0.8222 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005972/0.5486, allocations: 0.8792 MB / 0.8231 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006349/0.5492, allocations: 152.7 kB / 0.8232 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004501/0.5497, allocations: 221 kB / 0.8234 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/0.5497, allocations: 0 / 0.8234 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04766/0.5974, allocations: 14.38 MB / 0.8375 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.29, allocations: 16.61 kB / 0.8375 GB, free: 4.695 MB / 0.5919 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)