Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",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.8582/0.8582, allocations: 141.8 MB / 149.3 MB, free: 9.25 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.001189/0.001189, allocations: 184.8 kB / 182.2 MB, free: 9.473 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.611/1.611, allocations: 221.5 MB / 436.4 MB, free: 13.29 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.001162/0.001162, allocations: 88.05 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002015/0.002015, allocations: 272.3 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.651e-05/2.631e-05, allocations: 0 / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5224/0.5225, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1812/0.7038, allocations: 122.5 MB / 0.877 GB, free: 5.301 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.7041, allocations: 83.95 kB / 0.8771 GB, free: 5.219 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.05765/0.7618, allocations: 19.51 MB / 0.8962 GB, free: 1.59 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.094e-06/0.7618, allocations: 0 / 0.8962 GB, free: 1.59 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.641e-05/0.7619, allocations: 19.98 kB / 0.8962 GB, free: 1.57 MB / 0.5573 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.001768/0.7637, allocations: 0.8477 MB / 0.897 GB, free: 0.6758 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.7637, allocations: 12.03 kB / 0.897 GB, free: 0.6641 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002947/0.7667, allocations: 0.5455 MB / 0.8976 GB, free: 120 kB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4864/1.253, allocations: 440.7 kB / 0.898 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/1.253, allocations: 106 kB / 0.8981 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/1.253, allocations: 25.75 kB / 0.8981 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001474/1.255, allocations: 0.6665 MB / 0.8988 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/1.256, allocations: 0.5882 MB / 0.8993 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/1.256, allocations: 0 / 0.8993 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.458e-05/1.256, allocations: 2.641 kB / 0.8993 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/1.256, allocations: 11.12 kB / 0.8993 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004605/1.261, allocations: 1.924 MB / 0.9012 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/1.263, allocations: 0.7857 MB / 0.902 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005978/1.264, allocations: 311.9 kB / 0.9023 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001823/1.265, allocations: 1.766 MB / 0.904 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008668/1.266, allocations: 393 kB / 0.9044 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=55): time 5.601e-06/1.266, allocations: 0 / 0.9044 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=55): time 0.01977/1.286, allocations: 2.623 MB / 0.907 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.655e-05/1.286, allocations: 139.7 kB / 0.9071 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000717/1.287, allocations: 394.2 kB / 0.9075 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/1.287, allocations: 25.7 kB / 0.9075 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/1.287, allocations: 264 kB / 0.9077 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/1.287, allocations: 175.7 kB / 0.9079 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.626e-05/1.287, allocations: 0 / 0.9079 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001202/1.288, allocations: 366.7 kB / 0.9083 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/1.288, allocations: 266.1 kB / 0.9085 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/1.289, allocations: 365.6 kB / 0.9089 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0167/1.305, allocations: 2.289 MB / 0.9111 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/1.306, allocations: 0 / 0.9111 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.01703/1.323, allocations: 2.713 MB / 0.9137 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/1.323, allocations: 9.125 kB / 0.9137 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/1.323, allocations: 3.969 kB / 0.9138 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.867e-05/1.323, allocations: 3.25 kB / 0.9138 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009668/1.324, allocations: 202.2 kB / 0.9139 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/1.324, allocations: 8.703 kB / 0.914 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009262/1.325, allocations: 140.4 kB / 0.9141 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/1.325, allocations: 30.48 kB / 0.9141 GB, free: 119.3 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001716/1.325, allocations: 120 kB / 0.9142 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01719/1.342, allocations: 2.613 MB / 0.9168 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.686e-05/1.342, allocations: 53.72 kB / 0.9168 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01577/1.358, allocations: 2.764 MB / 0.9195 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/1.358, allocations: 6.969 kB / 0.9195 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.358, allocations: 2.062 kB / 0.9195 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/1.358, allocations: 3.375 kB / 0.9195 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0165/1.375, allocations: 3.506 MB / 0.923 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/1.375, allocations: 4 kB / 0.923 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009333/1.376, allocations: 188.1 kB / 0.9232 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-05/1.376, allocations: 3.703 kB / 0.9232 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.942e-05/1.376, allocations: 19.59 kB / 0.9232 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/1.376, allocations: 3.953 kB / 0.9232 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.376, allocations: 0 / 0.9232 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/1.391, allocations: 2.74 MB / 0.9259 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/1.391, allocations: 238.4 kB / 0.9261 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/1.391, allocations: 3.828 kB / 0.9261 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007496/1.392, allocations: 89.98 kB / 0.9262 GB, free: 114.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.968e-05/1.392, allocations: 52.77 kB / 0.9262 GB, free: 114.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.734e-05/1.392, allocations: 27.8 kB / 0.9263 GB, free: 114.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003456/1.392, allocations: 309.7 kB / 0.9265 GB, free: 114 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/1.392, allocations: 0 / 0.9265 GB, free: 114 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00084/1.393, allocations: 258.1 kB / 0.9268 GB, free: 113.8 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01665/1.41, allocations: 3.653 MB / 0.9304 GB, free: 110.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001053/1.411, allocations: 0.6504 MB / 0.931 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.411, allocations: 4.062 kB / 0.931 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004668/1.411, allocations: 366.4 kB / 0.9313 GB, free: 110 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/1.412, allocations: 41.61 kB / 0.9314 GB, free: 109.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/1.414, allocations: 0.9654 MB / 0.9323 GB, free: 109.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/1.414, allocations: 0.8895 MB / 0.9332 GB, free: 108.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007252/1.415, allocations: 148 kB / 0.9333 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003835/1.415, allocations: 219.3 kB / 0.9336 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of SimCode: time 4.21e-07/1.415, allocations: 0 / 0.9336 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/1.448, allocations: 12.96 MB / 0.9462 GB, free: 95.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/1.449, allocations: 191.5 kB / 0.9464 GB, free: 94.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.596/4.045, allocations: 4 kB / 0.9464 GB, free: 94.88 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)