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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7731/0.7731, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 182.7 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 221.3 MB / 441.4 MB, free: 4.59 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008806/0.0008805, allocations: 99.88 kB / 0.5124 GB, free: 24.28 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001901/0.001901, allocations: 274.5 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.535e-05/4.538e-05, allocations: 8 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4867/0.4868, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.6314, allocations: 123.3 MB / 0.8848 GB, free: 1.203 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.6318, allocations: 84.42 kB / 0.8848 GB, free: 1.121 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd - DAE generated: time 0.05667/0.6885, allocations: 19.82 MB / 0.9042 GB, free: 13.19 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.164e-06/0.6885, allocations: 0 / 0.9042 GB, free: 13.19 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.084e-05/0.6886, allocations: 15.94 kB / 0.9042 GB, free: 13.18 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001785/0.6904, allocations: 0.8592 MB / 0.9051 GB, free: 12.27 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.6904, allocations: 8.031 kB / 0.9051 GB, free: 12.26 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.6906, allocations: 86.52 kB / 0.9051 GB, free: 12.16 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002481/0.693, allocations: 495 kB / 0.9056 GB, free: 11.68 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007797/0.6938, allocations: 435.3 kB / 0.906 GB, free: 11.21 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.694, allocations: 118.1 kB / 0.9061 GB, free: 11.08 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.223e-05/0.6941, allocations: 44 kB / 0.9062 GB, free: 11.04 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.6952, allocations: 0.6402 MB / 0.9068 GB, free: 10.38 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.6953, allocations: 0 / 0.9068 GB, free: 10.38 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.616e-05/0.6953, allocations: 16 kB / 0.9068 GB, free: 10.36 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.6954, allocations: 12 kB / 0.9068 GB, free: 10.35 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.6965, allocations: 0.6676 MB / 0.9075 GB, free: 9.68 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004124/0.7006, allocations: 2.02 MB / 0.9095 GB, free: 7.605 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.7026, allocations: 0.795 MB / 0.9102 GB, free: 6.801 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.7032, allocations: 326.1 kB / 0.9106 GB, free: 6.48 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00186/0.7051, allocations: 1.761 MB / 0.9123 GB, free: 4.332 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006971/0.7058, allocations: 402.8 kB / 0.9127 GB, free: 3.926 MB / 0.573 GB Notification: Performance of pre-optimization done (n=55): time 3.747e-06/0.7058, allocations: 0 / 0.9127 GB, free: 3.926 MB / 0.573 GB Notification: Performance of matching and sorting (n=55): time 0.001339/0.7072, allocations: 0.6519 MB / 0.9133 GB, free: 3.27 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/0.7072, allocations: 137.1 kB / 0.9134 GB, free: 3.105 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005942/0.7078, allocations: 427 kB / 0.9138 GB, free: 2.684 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.562e-05/0.7079, allocations: 37.7 kB / 0.9139 GB, free: 2.641 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.7082, allocations: 261 kB / 0.9141 GB, free: 2.379 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.7084, allocations: 189.3 kB / 0.9143 GB, free: 2.191 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.7084, allocations: 8 kB / 0.9143 GB, free: 2.184 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001806/0.7086, allocations: 358.8 kB / 0.9146 GB, free: 1.824 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.7091, allocations: 277 kB / 0.9149 GB, free: 1.555 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005215/0.7096, allocations: 375.5 kB / 0.9153 GB, free: 1.152 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004675/0.7101, allocations: 271.1 kB / 0.9155 GB, free: 0.8867 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.7101, allocations: 3.953 kB / 0.9155 GB, free: 0.8828 MB / 0.573 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001238/0.7113, allocations: 0.7247 MB / 0.9162 GB, free: 156 kB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.7114, allocations: 11.98 kB / 0.9163 GB, free: 144 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.7114, allocations: 0 / 0.9163 GB, free: 144 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.7114, allocations: 4 kB / 0.9163 GB, free: 140 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.463/1.174, allocations: 0.5078 MB / 0.9168 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/1.177, allocations: 1.64 MB / 0.9184 GB, free: 133.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/1.178, allocations: 136.3 kB / 0.9185 GB, free: 133.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/1.178, allocations: 27.52 kB / 0.9185 GB, free: 133.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002236/1.179, allocations: 136.7 kB / 0.9186 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/1.179, allocations: 52.48 kB / 0.9187 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/1.182, allocations: 0.9643 MB / 0.9196 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/1.182, allocations: 6.594 kB / 0.9196 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/1.182, allocations: 0 / 0.9196 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/1.182, allocations: 7.094 kB / 0.9196 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/1.185, allocations: 1.75 MB / 0.9214 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/1.185, allocations: 0.5625 kB / 0.9214 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009383/1.186, allocations: 173 kB / 0.9215 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009323/1.187, allocations: 121.7 kB / 0.9216 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.538e-05/1.187, allocations: 20.94 kB / 0.9217 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/1.189, allocations: 1.638 MB / 0.9233 GB, free: 131.6 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.189, allocations: 0 / 0.9233 GB, free: 131.6 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/1.192, allocations: 0.9174 MB / 0.9242 GB, free: 131.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/1.192, allocations: 237.9 kB / 0.9244 GB, free: 131.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.973e-05/1.192, allocations: 13.23 kB / 0.9244 GB, free: 131.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007763/1.193, allocations: 97.88 kB / 0.9245 GB, free: 131.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/1.193, allocations: 49.91 kB / 0.9245 GB, free: 131.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-05/1.193, allocations: 27.5 kB / 0.9246 GB, free: 131.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0005536/1.194, allocations: 335.7 kB / 0.9249 GB, free: 131.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.3e-07/1.194, allocations: 0.5625 kB / 0.9249 GB, free: 131.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001376/1.195, allocations: 282.1 kB / 0.9251 GB, free: 131.2 MB / 0.573 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003695/1.199, allocations: 1.879 MB / 0.927 GB, free: 130.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003974/1.203, allocations: 0.9005 MB / 0.9279 GB, free: 130.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.203, allocations: 0 / 0.9279 GB, free: 130.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/1.204, allocations: 497.9 kB / 0.9283 GB, free: 130.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/1.205, allocations: 55.98 kB / 0.9284 GB, free: 130.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/1.209, allocations: 1.02 MB / 0.9294 GB, free: 130.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/1.209, allocations: 0.8973 MB / 0.9303 GB, free: 129.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0007657/1.21, allocations: 142.6 kB / 0.9304 GB, free: 129.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/1.21, allocations: 218.9 kB / 0.9306 GB, free: 129.3 MB / 0.573 GB Notification: Performance of SimCode: time 1.342e-06/1.21, allocations: 3.969 kB / 0.9306 GB, free: 129.3 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/1.246, allocations: 14.76 MB / 0.945 GB, free: 127.5 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/1.246, allocations: 244.8 kB / 0.9453 GB, free: 127.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.439/3.685, allocations: 2.531 kB / 0.9453 GB, free: 127.2 MB / 0.573 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)