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.7963/0.7963, allocations: 143.4 MB / 158.3 MB, free: 5.824 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 173.1 kB / 191.5 MB, free: 5.77 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.42/1.42, allocations: 223.2 MB / 447.7 MB, free: 4.801 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.0009883/0.0009883, allocations: 88.33 kB / 0.5187 GB, free: 1.168 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001937/0.001937, allocations: 269.1 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004434, allocations: 13.41 kB / 0.6929 GB, free: 59.62 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1829, allocations: 82.8 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6026/0.7856, allocations: 123.4 MB / 0.8943 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.7859, allocations: 86.91 kB / 0.8943 GB, free: 21.91 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.05702/0.8429, allocations: 20.06 MB / 0.9139 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.864e-06/0.843, allocations: 0 / 0.9139 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.637e-05/0.843, allocations: 11.62 kB / 0.9139 GB, free: 20.1 MB / 0.5417 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.001789/0.8448, allocations: 0.924 MB / 0.9148 GB, free: 19.45 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.8449, allocations: 7.625 kB / 0.9148 GB, free: 19.45 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.845, allocations: 89.23 kB / 0.9149 GB, free: 19.41 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002402/0.8474, allocations: 0.4911 MB / 0.9154 GB, free: 19.35 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006922/0.8481, allocations: 435.4 kB / 0.9158 GB, free: 19.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.8482, allocations: 120.8 kB / 0.9159 GB, free: 19 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.008e-05/0.8483, allocations: 53.59 kB / 0.916 GB, free: 18.99 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.8497, allocations: 0.7518 MB / 0.9167 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.8497, allocations: 3.938 kB / 0.9167 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.65e-05/0.8498, allocations: 22.53 kB / 0.9168 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.8498, allocations: 11.78 kB / 0.9168 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.8516, allocations: 0.9011 MB / 0.9176 GB, free: 18.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003789/0.8554, allocations: 2.025 MB / 0.9196 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002949/0.8584, allocations: 1.083 MB / 0.9207 GB, free: 18.41 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001453/0.8599, allocations: 1.762 MB / 0.9224 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.861, allocations: 0.5051 MB / 0.9229 GB, free: 16.38 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=55): time 3.357e-06/0.861, allocations: 0 / 0.9229 GB, free: 16.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=55): time 0.002996/0.864, allocations: 1.273 MB / 0.9241 GB, free: 16.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.8641, allocations: 136.9 kB / 0.9243 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005034/0.8646, allocations: 422.9 kB / 0.9247 GB, free: 16.02 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.8647, allocations: 32.89 kB / 0.9247 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.8648, allocations: 268.1 kB / 0.925 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.865, allocations: 183.3 kB / 0.9251 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.865, allocations: 11.25 kB / 0.9251 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.8651, allocations: 363.8 kB / 0.9255 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007974/0.8659, allocations: 390.2 kB / 0.9259 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008469/0.8668, allocations: 490.8 kB / 0.9263 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008349/0.8676, allocations: 403.4 kB / 0.9267 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.8676, allocations: 0 / 0.9267 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00192/0.8695, allocations: 0.9602 MB / 0.9277 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.8696, allocations: 11.69 kB / 0.9277 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.8696, allocations: 4.125 kB / 0.9277 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.8696, allocations: 7.875 kB / 0.9277 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004506/0.8741, allocations: 0.5027 MB / 0.9282 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.8766, allocations: 1.655 MB / 0.9298 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.8777, allocations: 146.2 kB / 0.9299 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/0.8778, allocations: 30.48 kB / 0.9299 GB, free: 29.76 MB / 0.5573 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 () * Number of clocked 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.0004082/0.8782, allocations: 209 kB / 0.9301 GB, free: 29.63 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.8783, allocations: 49.69 kB / 0.9302 GB, free: 29.61 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.8814, allocations: 1.197 MB / 0.9314 GB, free: 29.49 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.8814, allocations: 7.75 kB / 0.9314 GB, free: 29.49 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.8814, allocations: 3.938 kB / 0.9314 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.8814, allocations: 3.797 kB / 0.9314 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009347/0.8824, allocations: 0.7836 MB / 0.9321 GB, free: 29.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.8824, allocations: 0 / 0.9321 GB, free: 29.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008156/0.8832, allocations: 175.8 kB / 0.9323 GB, free: 29.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008543/0.8841, allocations: 119.5 kB / 0.9324 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.014e-05/0.8841, allocations: 15.08 kB / 0.9324 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.8861, allocations: 1.67 MB / 0.9341 GB, free: 27.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.8861, allocations: 0 / 0.9341 GB, free: 27.93 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.8888, allocations: 1.086 MB / 0.9351 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004251/0.8892, allocations: 237.8 kB / 0.9354 GB, free: 27.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.365e-05/0.8893, allocations: 15.38 kB / 0.9354 GB, free: 27.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/0.89, allocations: 98.69 kB / 0.9355 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.8901, allocations: 49.02 kB / 0.9355 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.602e-05/0.8902, allocations: 22.73 kB / 0.9355 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004347/0.8907, allocations: 338.8 kB / 0.9359 GB, free: 27.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.8e-07/0.8907, allocations: 0 / 0.9359 GB, free: 27.55 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009996/0.8917, allocations: 285.3 kB / 0.9361 GB, free: 27.49 MB / 0.5573 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 (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.004278/0.896, allocations: 2.085 MB / 0.9382 GB, free: 26.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004378/0.9004, allocations: 1.128 MB / 0.9393 GB, free: 26.34 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.9004, allocations: 0 / 0.9393 GB, free: 26.34 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.9017, allocations: 0.6198 MB / 0.9399 GB, free: 26.12 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.9022, allocations: 42.83 kB / 0.9399 GB, free: 26.11 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007349/0.9096, allocations: 5.222 MB / 0.945 GB, free: 23.33 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.9101, allocations: 0.8876 MB / 0.9459 GB, free: 22.54 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007278/0.9109, allocations: 146.4 kB / 0.946 GB, free: 22.47 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003765/0.9112, allocations: 220.1 kB / 0.9462 GB, free: 22.44 MB / 0.5573 GB Notification: Performance of SimCode: time 1.142e-06/0.9112, allocations: 0 / 0.9462 GB, free: 22.44 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.9405, allocations: 14.56 MB / 0.9605 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002261/0.9408, allocations: 280.2 kB / 0.9607 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/3.518, allocations: 0 / 0.9607 GB, free: 15.09 MB / 0.5573 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)