Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.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.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",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.005196/0.005196, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.001228/0.001228, allocations: 190.1 kB / 16.67 MB, free: 5.934 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00243/0.00243, allocations: 289.9 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9492/0.9492, allocations: 169.3 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002659/0.002659, allocations: 104.2 kB / 0.6809 GB, free: 7.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3817, allocations: 86.97 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.005282/0.3871, allocations: 3.732 MB / 0.7695 GB, free: 132 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004815/0.3919, allocations: 3.431 MB / 0.7729 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002422/0.3922, allocations: 11.94 kB / 0.7729 GB, free: 12.67 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.0004527/0.3926, allocations: 118.9 kB / 0.773 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.3938, allocations: 461.4 kB / 0.7734 GB, free: 12.1 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007858/0.3946, allocations: 354.4 kB / 0.7738 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008241/0.3954, allocations: 0.7604 MB / 0.7745 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000302/0.3957, allocations: 197.9 kB / 0.7747 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.3961, allocations: 302.9 kB / 0.775 GB, free: 10.5 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004774/0.3966, allocations: 322.6 kB / 0.7753 GB, free: 10.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.3967, allocations: 68 kB / 0.7754 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008838/0.3976, allocations: 0.4956 MB / 0.7758 GB, free: 9.621 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.3978, allocations: 175.4 kB / 0.776 GB, free: 9.449 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.3981, allocations: 322.3 kB / 0.7763 GB, free: 9.133 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.3994, allocations: 1.091 MB / 0.7774 GB, free: 8.043 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3994, allocations: 0 / 0.7774 GB, free: 8.043 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.664e-06/0.3994, allocations: 0 / 0.7774 GB, free: 8.043 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.3995, allocations: 4 kB / 0.7774 GB, free: 8.039 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001934/0.4014, allocations: 1.021 MB / 0.7784 GB, free: 6.965 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.4014, allocations: 8.031 kB / 0.7784 GB, free: 6.957 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.4016, allocations: 90.7 kB / 0.7785 GB, free: 6.859 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003362/0.4049, allocations: 0.6209 MB / 0.7791 GB, free: 6.238 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.4063, allocations: 0.6277 MB / 0.7797 GB, free: 5.574 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.4065, allocations: 126.4 kB / 0.7798 GB, free: 5.434 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.421e-05/0.4066, allocations: 40 kB / 0.7799 GB, free: 5.395 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.4082, allocations: 0.7065 MB / 0.7806 GB, free: 4.672 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.4082, allocations: 0 / 0.7806 GB, free: 4.672 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.898e-05/0.4083, allocations: 16 kB / 0.7806 GB, free: 4.656 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.4083, allocations: 15.94 kB / 0.7806 GB, free: 4.641 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.4104, allocations: 0.765 MB / 0.7813 GB, free: 3.871 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003472/0.4139, allocations: 1.806 MB / 0.7831 GB, free: 2.012 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002803/0.4167, allocations: 0.8399 MB / 0.7839 GB, free: 1.164 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009713/0.4177, allocations: 361.9 kB / 0.7843 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001937/0.4196, allocations: 1.765 MB / 0.786 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.4207, allocations: 454.6 kB / 0.7864 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=55): time 2.474e-06/0.4207, allocations: 0 / 0.7864 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55): time 0.006566/0.4273, allocations: 1.617 MB / 0.788 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.569e-05/0.4274, allocations: 115.3 kB / 0.7881 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000573/0.428, allocations: 417.9 kB / 0.7885 GB, free: 12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.155e-05/0.4281, allocations: 33.7 kB / 0.7885 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.4283, allocations: 281.3 kB / 0.7888 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.4285, allocations: 194.3 kB / 0.789 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.4288, allocations: 114.2 kB / 0.7891 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001893/0.429, allocations: 362.8 kB / 0.7894 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009086/0.4299, allocations: 309.1 kB / 0.7897 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.4309, allocations: 445.4 kB / 0.7902 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001877/0.4328, allocations: 0.7223 MB / 0.7909 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4328, allocations: 4 kB / 0.7909 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003616/0.4364, allocations: 1.042 MB / 0.7919 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4365, allocations: 11.92 kB / 0.7919 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.4365, allocations: 4 kB / 0.7919 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006953/0.4372, allocations: 133 kB / 0.792 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007612/0.438, allocations: 163.7 kB / 0.7922 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/0.4427, allocations: 2.107 MB / 0.7942 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007334/0.4435, allocations: 103.6 kB / 0.7943 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.627e-05/0.4436, allocations: 27.98 kB / 0.7944 GB, free: 5.711 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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003416/0.4439, allocations: 213.6 kB / 0.7946 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.4441, allocations: 59.55 kB / 0.7946 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003411/0.4475, allocations: 1.06 MB / 0.7957 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.4475, allocations: 4 kB / 0.7957 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4475, allocations: 0 / 0.7957 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4475, allocations: 3.984 kB / 0.7957 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00415/0.4517, allocations: 1.753 MB / 0.7974 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4517, allocations: 0 / 0.7974 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/0.4524, allocations: 135.8 kB / 0.7975 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006151/0.4531, allocations: 124.7 kB / 0.7976 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/0.4531, allocations: 19.98 kB / 0.7977 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003458/0.4566, allocations: 1.904 MB / 0.7995 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4566, allocations: 0 / 0.7995 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.4597, allocations: 1.013 MB / 0.8005 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/0.46, allocations: 212.5 kB / 0.8007 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.462e-05/0.4601, allocations: 16 kB / 0.8007 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005973/0.4607, allocations: 59.94 kB / 0.8008 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.4608, allocations: 40.64 kB / 0.8008 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.482e-05/0.4609, allocations: 31.91 kB / 0.8008 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003721/0.4613, allocations: 291.1 kB / 0.8011 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4613, allocations: 4 kB / 0.8011 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007695/0.4621, allocations: 239.4 kB / 0.8014 GB, free: 14.28 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004829/0.4669, allocations: 1.959 MB / 0.8033 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002329/0.4692, allocations: 0.8696 MB / 0.8041 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4692, allocations: 0 / 0.8041 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.4704, allocations: 0.5173 MB / 0.8046 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.4709, allocations: 71.75 kB / 0.8047 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.484, allocations: 5.79 MB / 0.8103 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.4845, allocations: 0.8851 MB / 0.8112 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006307/0.4852, allocations: 148.4 kB / 0.8114 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004208/0.4856, allocations: 219.3 kB / 0.8116 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of SimCode: time 4.31e-07/0.4856, allocations: 0 / 0.8116 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04927/0.5349, allocations: 16.08 MB / 0.8273 GB, free: 3.883 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.99, allocations: 11.55 kB / 0.8273 GB, free: 3.871 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP_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_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)