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.001173/0.001173, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 198 kB / 16.54 MB, free: 6.672 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002363/0.002363, allocations: 278.6 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8822/0.8822, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 105.2 kB / 0.5953 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1456, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004514/0.1501, allocations: 3.69 MB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004248/0.1544, allocations: 3.446 MB / 0.6872 GB, free: 9.418 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002722/0.1547, allocations: 7.938 kB / 0.6873 GB, free: 9.41 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.0004076/0.1551, allocations: 124.7 kB / 0.6874 GB, free: 9.289 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009693/0.1561, allocations: 449.5 kB / 0.6878 GB, free: 8.848 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006801/0.1568, allocations: 366.1 kB / 0.6882 GB, free: 8.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006685/0.1574, allocations: 0.7527 MB / 0.6889 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.1577, allocations: 205.9 kB / 0.6891 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003385/0.1581, allocations: 302.8 kB / 0.6894 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000433/0.1585, allocations: 330.6 kB / 0.6897 GB, free: 6.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1586, allocations: 64 kB / 0.6897 GB, free: 6.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007415/0.1594, allocations: 0.4956 MB / 0.6902 GB, free: 6.352 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.1595, allocations: 171.5 kB / 0.6904 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002703/0.1598, allocations: 318.3 kB / 0.6907 GB, free: 5.871 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1609, allocations: 1.075 MB / 0.6917 GB, free: 4.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1609, allocations: 4 kB / 0.6918 GB, free: 4.789 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1609, allocations: 3.938 kB / 0.6918 GB, free: 4.785 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1609, allocations: 0 / 0.6918 GB, free: 4.785 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.001774/0.1627, allocations: 0.9992 MB / 0.6927 GB, free: 3.734 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.1627, allocations: 12.03 kB / 0.6927 GB, free: 3.723 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.1628, allocations: 86.7 kB / 0.6928 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002955/0.1658, allocations: 0.5659 MB / 0.6934 GB, free: 3.062 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.167, allocations: 0.6196 MB / 0.694 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.1671, allocations: 122.4 kB / 0.6941 GB, free: 2.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.309e-05/0.1672, allocations: 48 kB / 0.6941 GB, free: 2.223 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.1684, allocations: 0.6557 MB / 0.6948 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1685, allocations: 0 / 0.6948 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.976e-05/0.1685, allocations: 20 kB / 0.6948 GB, free: 1.531 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1686, allocations: 12 kB / 0.6948 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.1701, allocations: 0.6987 MB / 0.6955 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.173, allocations: 1.77 MB / 0.6972 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/0.1755, allocations: 0.8063 MB / 0.698 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007285/0.1763, allocations: 321.9 kB / 0.6983 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001624/0.1779, allocations: 1.773 MB / 0.7001 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008015/0.1787, allocations: 401.1 kB / 0.7004 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 1.754e-06/0.1787, allocations: 0 / 0.7004 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002232/0.181, allocations: 0.92 MB / 0.7013 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.181, allocations: 119.1 kB / 0.7014 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000404/0.1814, allocations: 419.1 kB / 0.7018 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.1815, allocations: 33.7 kB / 0.7019 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.1817, allocations: 276.5 kB / 0.7021 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.1818, allocations: 173.5 kB / 0.7023 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.182, allocations: 126.2 kB / 0.7024 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1821, allocations: 354.8 kB / 0.7028 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006686/0.1828, allocations: 272.9 kB / 0.703 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007679/0.1836, allocations: 412.5 kB / 0.7034 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.185, allocations: 0.6632 MB / 0.7041 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.185, allocations: 0 / 0.7041 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00168/0.1867, allocations: 0.7599 MB / 0.7048 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.1867, allocations: 4 kB / 0.7048 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1867, allocations: 4 kB / 0.7048 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1868, allocations: 8 kB / 0.7048 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.1882, allocations: 247.9 kB / 0.7051 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.1897, allocations: 1.582 MB / 0.7066 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.1903, allocations: 95.31 kB / 0.7067 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.633e-05/0.1903, allocations: 40.03 kB / 0.7067 GB, free: 4.535 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.0002458/0.1906, allocations: 211.1 kB / 0.7069 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.395e-05/0.1907, allocations: 51.34 kB / 0.707 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.193, allocations: 0.9269 MB / 0.7079 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.193, allocations: 8 kB / 0.7079 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.193, allocations: 0 / 0.7079 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.1931, allocations: 7.922 kB / 0.7079 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.1959, allocations: 1.622 MB / 0.7095 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1959, allocations: 3.984 kB / 0.7095 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/0.1966, allocations: 139.8 kB / 0.7096 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003921/0.197, allocations: 56.81 kB / 0.7097 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.197, allocations: 27.98 kB / 0.7097 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.1984, allocations: 1.576 MB / 0.7112 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1984, allocations: 3.938 kB / 0.7113 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.2004, allocations: 0.8981 MB / 0.7121 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.2006, allocations: 204.2 kB / 0.7123 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.205e-05/0.2007, allocations: 12 kB / 0.7123 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005404/0.2013, allocations: 55.94 kB / 0.7124 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/0.2014, allocations: 44.48 kB / 0.7124 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/0.2014, allocations: 23.98 kB / 0.7125 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002869/0.2017, allocations: 291.1 kB / 0.7127 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2017, allocations: 3.938 kB / 0.7127 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005915/0.2023, allocations: 243.6 kB / 0.713 GB, free: 13.88 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.003159/0.2055, allocations: 1.84 MB / 0.7148 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002541/0.208, allocations: 0.8119 MB / 0.7156 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.208, allocations: 3.938 kB / 0.7156 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009327/0.209, allocations: 0.4942 MB / 0.716 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.2094, allocations: 67.23 kB / 0.7161 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007694/0.2171, allocations: 5.208 MB / 0.7212 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.2175, allocations: 0.8772 MB / 0.722 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006322/0.2181, allocations: 148.5 kB / 0.7222 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/0.2185, allocations: 219.3 kB / 0.7224 GB, free: 4.137 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.2185, allocations: 0 / 0.7224 GB, free: 4.137 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6562/0.8747, allocations: 14.09 MB / 0.7362 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.57, allocations: 13.3 kB / 0.7362 GB, free: 6.277 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)