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.006128/0.006128, allocations: 100.3 kB / 15.73 MB, free: 6.039 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.001427/0.001427, allocations: 187.5 kB / 16.67 MB, free: 5.969 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.319/1.319, 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.002161/0.002161, allocations: 274.1 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.9653/0.9653, allocations: 169.2 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 99.84 kB / 0.6809 GB, free: 52 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1552, allocations: 86.98 MB / 0.7659 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004868/0.1601, allocations: 3.714 MB / 0.7695 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004991/0.1652, allocations: 3.452 MB / 0.7729 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004105/0.1656, allocations: 11.94 kB / 0.7729 GB, free: 1.781 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.0005062/0.1661, allocations: 115 kB / 0.773 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001192/0.1673, allocations: 461.4 kB / 0.7734 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008204/0.1681, allocations: 358.4 kB / 0.7738 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008056/0.169, allocations: 0.7527 MB / 0.7745 GB, free: 116 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2943/0.4632, allocations: 194.2 kB / 0.7747 GB, free: 8.32 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006143/0.4639, allocations: 315.7 kB / 0.775 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004749/0.4644, allocations: 316.8 kB / 0.7753 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.4645, allocations: 65.34 kB / 0.7754 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009402/0.4654, allocations: 0.4916 MB / 0.7758 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.4656, allocations: 172.5 kB / 0.776 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002703/0.4659, allocations: 327.8 kB / 0.7763 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.4672, allocations: 1.083 MB / 0.7774 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4672, allocations: 1.969 kB / 0.7774 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4672, allocations: 0 / 0.7774 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.4672, allocations: 2.281 kB / 0.7774 GB, free: 8.004 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001843/0.4691, allocations: 0.9943 MB / 0.7783 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.4691, allocations: 9.781 kB / 0.7784 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.786e-05/0.4692, allocations: 94.58 kB / 0.7784 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003443/0.4727, allocations: 0.6235 MB / 0.7791 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.474, allocations: 0.6253 MB / 0.7797 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.4741, allocations: 116.2 kB / 0.7798 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.4742, allocations: 52.16 kB / 0.7798 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.4756, allocations: 0.698 MB / 0.7805 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.4756, allocations: 2.562 kB / 0.7805 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.66e-05/0.4757, allocations: 20.75 kB / 0.7805 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.4757, allocations: 12.52 kB / 0.7805 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.4775, allocations: 0.7603 MB / 0.7813 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.4809, allocations: 1.797 MB / 0.783 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.4836, allocations: 0.8439 MB / 0.7839 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009021/0.4845, allocations: 364.9 kB / 0.7842 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001617/0.4861, allocations: 1.77 MB / 0.7859 GB, free: 20.09 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001/0.4871, allocations: 441.5 kB / 0.7864 GB, free: 19.93 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=55): time 2.564e-06/0.4871, allocations: 0 / 0.7864 GB, free: 19.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55): time 0.006639/0.4938, allocations: 1.615 MB / 0.7879 GB, free: 19.45 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.985e-05/0.4939, allocations: 113.8 kB / 0.788 GB, free: 19.33 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005152/0.4944, allocations: 420.6 kB / 0.7884 GB, free: 19.11 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.878e-05/0.4945, allocations: 40.7 kB / 0.7885 GB, free: 19.07 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.4947, allocations: 269.1 kB / 0.7887 GB, free: 18.86 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4948, allocations: 183.7 kB / 0.7889 GB, free: 18.71 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/0.495, allocations: 124.5 kB / 0.789 GB, free: 18.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4952, allocations: 364.3 kB / 0.7894 GB, free: 18.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008022/0.496, allocations: 305.3 kB / 0.7897 GB, free: 18.23 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009064/0.4969, allocations: 442.4 kB / 0.7901 GB, free: 17.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/0.4987, allocations: 0.7149 MB / 0.7908 GB, free: 17.63 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4987, allocations: 3.219 kB / 0.7908 GB, free: 17.63 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003704/0.5024, allocations: 1.042 MB / 0.7918 GB, free: 17.33 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.5025, allocations: 6.594 kB / 0.7918 GB, free: 17.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.5025, allocations: 6.156 kB / 0.7918 GB, free: 17.33 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007494/0.5032, allocations: 149.1 kB / 0.792 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007805/0.504, allocations: 152.7 kB / 0.7921 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004771/0.5088, allocations: 2.12 MB / 0.7942 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008729/0.5097, allocations: 95.34 kB / 0.7943 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.968e-05/0.5098, allocations: 30.22 kB / 0.7943 GB, free: 15.66 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): 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.0003565/0.5101, allocations: 210.2 kB / 0.7945 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.5103, allocations: 52.22 kB / 0.7946 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003267/0.5135, allocations: 1.041 MB / 0.7956 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.5136, allocations: 11.33 kB / 0.7956 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5136, allocations: 2.016 kB / 0.7956 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.5136, allocations: 7.375 kB / 0.7956 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0043/0.5179, allocations: 1.758 MB / 0.7973 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.5179, allocations: 3.406 kB / 0.7973 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007706/0.5187, allocations: 145 kB / 0.7975 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006505/0.5194, allocations: 116.8 kB / 0.7976 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.068e-05/0.5195, allocations: 21.92 kB / 0.7976 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003495/0.523, allocations: 1.906 MB / 0.7994 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.523, allocations: 0.5938 kB / 0.7994 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/0.5264, allocations: 1.01 MB / 0.8004 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004444/0.5269, allocations: 213.9 kB / 0.8006 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.527, allocations: 12.91 kB / 0.8006 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000691/0.5277, allocations: 59.86 kB / 0.8007 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.5279, allocations: 47.84 kB / 0.8008 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.151e-05/0.528, allocations: 22.69 kB / 0.8008 GB, free: 12 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004614/0.5284, allocations: 288.2 kB / 0.801 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5284, allocations: 0 / 0.801 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00111/0.5296, allocations: 242.2 kB / 0.8013 GB, free: 11.8 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.004783/0.5344, allocations: 1.957 MB / 0.8032 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002454/0.5368, allocations: 0.8613 MB / 0.804 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.5369, allocations: 192 / 0.804 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.538, allocations: 0.5247 MB / 0.8045 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006554/0.5387, allocations: 88.66 kB / 0.8046 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/0.5523, allocations: 5.763 MB / 0.8103 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.5528, allocations: 0.877 MB / 0.8111 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006352/0.5534, allocations: 143.1 kB / 0.8113 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004073/0.5539, allocations: 227.8 kB / 0.8115 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of SimCode: time 8.01e-07/0.5539, allocations: 0 / 0.8115 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0425/0.5964, allocations: 16.3 MB / 0.8274 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.94, allocations: 17.05 kB / 0.8274 GB, free: 14.96 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)