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.00472/0.00472, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001259/0.001259, allocations: 193.7 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 292.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.966/0.966, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00261/0.00261, allocations: 95.84 kB / 0.6809 GB, free: 7.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4766/0.4792, allocations: 86.98 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005648/0.4849, allocations: 3.702 MB / 0.7695 GB, free: 132 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005467/0.4904, allocations: 3.442 MB / 0.7729 GB, free: 12.67 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004316/0.4909, allocations: 7.938 kB / 0.7729 GB, free: 12.66 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.0005421/0.4915, allocations: 118.9 kB / 0.773 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001266/0.4927, allocations: 457.4 kB / 0.7734 GB, free: 12.09 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008731/0.4936, allocations: 366 kB / 0.7738 GB, free: 11.74 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008738/0.4945, allocations: 0.7566 MB / 0.7745 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.4949, allocations: 201.9 kB / 0.7747 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000403/0.4953, allocations: 318.8 kB / 0.775 GB, free: 10.47 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005525/0.4958, allocations: 322.6 kB / 0.7753 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.4959, allocations: 68 kB / 0.7754 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009842/0.4969, allocations: 0.4956 MB / 0.7759 GB, free: 9.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.4972, allocations: 171.4 kB / 0.776 GB, free: 9.422 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.4975, allocations: 326.3 kB / 0.7763 GB, free: 9.102 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001525/0.499, allocations: 1.091 MB / 0.7774 GB, free: 8.012 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4991, allocations: 0 / 0.7774 GB, free: 8.012 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4991, allocations: 0 / 0.7774 GB, free: 8.012 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.4991, allocations: 0 / 0.7774 GB, free: 8.012 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.002078/0.5012, allocations: 1.021 MB / 0.7784 GB, free: 6.938 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.5012, allocations: 8.031 kB / 0.7784 GB, free: 6.93 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.5013, allocations: 90.7 kB / 0.7785 GB, free: 6.832 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003032/0.5044, allocations: 0.5663 MB / 0.779 GB, free: 6.266 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.5058, allocations: 0.6238 MB / 0.7796 GB, free: 5.605 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.5059, allocations: 122.4 kB / 0.7798 GB, free: 5.469 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.497e-05/0.506, allocations: 44 kB / 0.7798 GB, free: 5.426 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.5075, allocations: 0.6713 MB / 0.7805 GB, free: 4.738 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.5075, allocations: 4 kB / 0.7805 GB, free: 4.734 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.5076, allocations: 20 kB / 0.7805 GB, free: 4.715 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.5076, allocations: 12 kB / 0.7805 GB, free: 4.703 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001715/0.5093, allocations: 0.687 MB / 0.7812 GB, free: 4.012 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.5128, allocations: 1.774 MB / 0.7829 GB, free: 2.184 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.5155, allocations: 0.8033 MB / 0.7837 GB, free: 1.371 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000806/0.5164, allocations: 334 kB / 0.784 GB, free: 1.043 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001919/0.5183, allocations: 1.765 MB / 0.7857 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009197/0.5192, allocations: 397.1 kB / 0.7861 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 3.226e-06/0.5192, allocations: 0 / 0.7861 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002518/0.5218, allocations: 0.9319 MB / 0.787 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.191e-05/0.5219, allocations: 111.2 kB / 0.7871 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005277/0.5224, allocations: 427.1 kB / 0.7875 GB, free: 13 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.5225, allocations: 33.7 kB / 0.7876 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.5227, allocations: 285.1 kB / 0.7878 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.5229, allocations: 186.4 kB / 0.788 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.5231, allocations: 122.2 kB / 0.7881 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.5233, allocations: 354.8 kB / 0.7885 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007154/0.524, allocations: 276.9 kB / 0.7887 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008317/0.5248, allocations: 408.5 kB / 0.7891 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.5264, allocations: 0.6516 MB / 0.7898 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.5264, allocations: 8 kB / 0.7898 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001863/0.5283, allocations: 0.7642 MB / 0.7905 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5283, allocations: 8.062 kB / 0.7905 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.5283, allocations: 4 kB / 0.7905 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.5283, allocations: 8 kB / 0.7905 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.5298, allocations: 243.7 kB / 0.7908 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.5316, allocations: 1.589 MB / 0.7923 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006731/0.5323, allocations: 91.66 kB / 0.7924 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.198e-05/0.5323, allocations: 31.97 kB / 0.7924 GB, free: 7.707 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): 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.0003251/0.5327, allocations: 204.7 kB / 0.7926 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.5328, allocations: 55.62 kB / 0.7927 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.5353, allocations: 0.9347 MB / 0.7936 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5353, allocations: 8 kB / 0.7936 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.5353, allocations: 0 / 0.7936 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.5353, allocations: 11.92 kB / 0.7936 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003146/0.5385, allocations: 1.611 MB / 0.7952 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5385, allocations: 3.938 kB / 0.7952 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007035/0.5392, allocations: 147.8 kB / 0.7953 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000407/0.5396, allocations: 56.75 kB / 0.7954 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.227e-05/0.5397, allocations: 15.98 kB / 0.7954 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.5414, allocations: 1.595 MB / 0.797 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.5414, allocations: 3.938 kB / 0.797 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.5436, allocations: 0.892 MB / 0.7978 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.5439, allocations: 212.5 kB / 0.798 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.5441, allocations: 15.94 kB / 0.798 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005838/0.5447, allocations: 51.94 kB / 0.7981 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.5448, allocations: 44.5 kB / 0.7981 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.364e-05/0.5448, allocations: 27.98 kB / 0.7982 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00041/0.5453, allocations: 291.1 kB / 0.7984 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5453, allocations: 0 / 0.7984 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008071/0.5461, allocations: 231.4 kB / 0.7987 GB, free: 1.055 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): 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.004182/0.5503, allocations: 1.842 MB / 0.8005 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002578/0.5529, allocations: 0.7612 MB / 0.8012 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.5529, allocations: 0 / 0.8012 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.554, allocations: 0.4903 MB / 0.8017 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.5546, allocations: 68.73 kB / 0.8017 GB, free: 14 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00937/0.564, allocations: 5.163 MB / 0.8068 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.5646, allocations: 0.8849 MB / 0.8077 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006449/0.5653, allocations: 152.4 kB / 0.8078 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/0.5657, allocations: 223.3 kB / 0.808 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of SimCode: time 7.71e-07/0.5658, allocations: 0 / 0.808 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0629/0.6287, allocations: 14.36 MB / 0.822 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.62, allocations: 25.92 kB / 0.8221 GB, free: 9.23 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)