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.0009539/0.000954, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009346/0.0009346, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.187/1.187, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00196/0.00196, allocations: 267.2 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8762/0.8762, allocations: 169.2 MB / 0.4977 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 91.59 kB / 0.5946 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1283, allocations: 86.98 MB / 0.6795 GB, free: 1.086 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004474/0.1328, allocations: 3.732 MB / 0.6832 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004176/0.137, allocations: 3.443 MB / 0.6865 GB, free: 9.895 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.1372, allocations: 11.94 kB / 0.6866 GB, free: 9.883 MB / 494.1 MB [/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.0003952/0.1376, allocations: 103.3 kB / 0.6866 GB, free: 9.781 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007454/0.1384, allocations: 370.2 kB / 0.687 GB, free: 9.418 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.139, allocations: 332.5 kB / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005537/0.1395, allocations: 0.7058 MB / 0.688 GB, free: 8.391 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.1398, allocations: 197.6 kB / 0.6882 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.1401, allocations: 266.8 kB / 0.6885 GB, free: 7.934 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003666/0.1405, allocations: 300.9 kB / 0.6887 GB, free: 7.641 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.576e-05/0.1405, allocations: 32 kB / 0.6888 GB, free: 7.609 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006537/0.1412, allocations: 479.5 kB / 0.6892 GB, free: 7.141 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.1414, allocations: 139.4 kB / 0.6894 GB, free: 7.004 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.1416, allocations: 286.3 kB / 0.6896 GB, free: 6.723 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.1425, allocations: 1.048 MB / 0.6907 GB, free: 5.672 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1426, allocations: 0 / 0.6907 GB, free: 5.672 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1426, allocations: 0 / 0.6907 GB, free: 5.672 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1426, allocations: 0 / 0.6907 GB, free: 5.672 MB / 494.1 MB 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.001873/0.1444, allocations: 0.9992 MB / 0.6916 GB, free: 4.617 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1445, allocations: 12.03 kB / 0.6916 GB, free: 4.605 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.964e-05/0.1446, allocations: 90.7 kB / 0.6917 GB, free: 4.508 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002967/0.1476, allocations: 0.562 MB / 0.6923 GB, free: 3.945 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.1488, allocations: 0.6157 MB / 0.6929 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.1489, allocations: 122.4 kB / 0.693 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-05/0.149, allocations: 48 kB / 0.693 GB, free: 3.109 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.1503, allocations: 0.6558 MB / 0.6937 GB, free: 2.434 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1503, allocations: 4 kB / 0.6937 GB, free: 2.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.1504, allocations: 24 kB / 0.6937 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.1504, allocations: 8 kB / 0.6937 GB, free: 2.398 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.152, allocations: 0.6947 MB / 0.6944 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003144/0.1551, allocations: 1.769 MB / 0.6961 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.1576, allocations: 0.8102 MB / 0.6969 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007495/0.1584, allocations: 322 kB / 0.6972 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00175/0.1602, allocations: 1.769 MB / 0.6989 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008592/0.161, allocations: 401 kB / 0.6993 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.084e-06/0.161, allocations: 0 / 0.6993 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002314/0.1634, allocations: 0.92 MB / 0.7002 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.1634, allocations: 119.2 kB / 0.7003 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.1639, allocations: 415.1 kB / 0.7007 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.45e-05/0.164, allocations: 45.64 kB / 0.7008 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.1642, allocations: 272.5 kB / 0.701 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.1643, allocations: 177.4 kB / 0.7012 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.1645, allocations: 118.2 kB / 0.7013 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1646, allocations: 366.7 kB / 0.7017 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006659/0.1653, allocations: 268.9 kB / 0.7019 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007669/0.1661, allocations: 416.5 kB / 0.7023 GB, free: 9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.1675, allocations: 0.6555 MB / 0.703 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1675, allocations: 4 kB / 0.703 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001695/0.1692, allocations: 0.7558 MB / 0.7037 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1692, allocations: 8.375 kB / 0.7037 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1693, allocations: 4 kB / 0.7037 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1693, allocations: 8 kB / 0.7037 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.1709, allocations: 247.7 kB / 0.704 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.1724, allocations: 1.479 MB / 0.7054 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006419/0.1731, allocations: 87.38 kB / 0.7055 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.874e-05/0.1732, allocations: 31.97 kB / 0.7055 GB, free: 5.543 MB / 0.4981 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.0002675/0.1734, allocations: 213.7 kB / 0.7057 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1735, allocations: 55.28 kB / 0.7058 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.176, allocations: 0.9268 MB / 0.7067 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.176, allocations: 12 kB / 0.7067 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.176, allocations: 0 / 0.7067 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.1761, allocations: 3.984 kB / 0.7067 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002946/0.179, allocations: 1.622 MB / 0.7083 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.179, allocations: 4 kB / 0.7083 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007125/0.1797, allocations: 147.8 kB / 0.7084 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004616/0.1802, allocations: 64.73 kB / 0.7085 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/0.1803, allocations: 23.92 kB / 0.7085 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/0.1817, allocations: 1.473 MB / 0.71 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1817, allocations: 0 / 0.71 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.1837, allocations: 0.8941 MB / 0.7108 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.184, allocations: 208.2 kB / 0.711 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.391e-05/0.1841, allocations: 12 kB / 0.711 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005805/0.1847, allocations: 51.94 kB / 0.7111 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.371e-05/0.1848, allocations: 48.5 kB / 0.7111 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/0.1848, allocations: 27.92 kB / 0.7112 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002897/0.1851, allocations: 287.1 kB / 0.7114 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1851, allocations: 0 / 0.7114 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006696/0.1858, allocations: 235.6 kB / 0.7117 GB, free: 14.99 MB / 0.5137 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.0033/0.1891, allocations: 1.845 MB / 0.7135 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002357/0.1915, allocations: 0.7613 MB / 0.7142 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1915, allocations: 448 / 0.7142 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009599/0.1925, allocations: 497.7 kB / 0.7147 GB, free: 12 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.1929, allocations: 69.88 kB / 0.7147 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008099/0.2011, allocations: 5.431 MB / 0.72 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.2014, allocations: 0.885 MB / 0.7209 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006782/0.2021, allocations: 152.4 kB / 0.7211 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003631/0.2025, allocations: 227.3 kB / 0.7213 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.2025, allocations: 0 / 0.7213 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.457/2.659, allocations: 13.67 MB / 0.7346 GB, free: 7.66 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/2.659, allocations: 305.7 kB / 0.7349 GB, free: 7.277 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.624/5.283, allocations: 4.062 kB / 0.7349 GB, free: 7.273 MB / 0.5294 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/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)