Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",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.001008/0.001008, 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.001082/0.001082, allocations: 194.1 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001966, allocations: 274.6 kB / 290.2 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8873/0.8873, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 87.41 kB / 0.5946 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1212, allocations: 86.98 MB / 0.6795 GB, free: 1.098 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.00458/0.1258, allocations: 3.817 MB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004278/0.1301, allocations: 3.446 MB / 0.6866 GB, free: 9.809 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002922/0.1305, allocations: 7.938 kB / 0.6866 GB, free: 9.801 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.0004215/0.1309, allocations: 107.2 kB / 0.6867 GB, free: 9.695 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008732/0.1318, allocations: 382.2 kB / 0.6871 GB, free: 9.32 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.1324, allocations: 326.1 kB / 0.6874 GB, free: 9.004 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.1329, allocations: 0.729 MB / 0.6881 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.1332, allocations: 193.6 kB / 0.6883 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.1335, allocations: 282.7 kB / 0.6886 GB, free: 7.805 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003591/0.1338, allocations: 306.6 kB / 0.6889 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.327e-05/0.1339, allocations: 32 kB / 0.6889 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006246/0.1345, allocations: 479.4 kB / 0.6894 GB, free: 7.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1347, allocations: 135.4 kB / 0.6895 GB, free: 6.871 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002242/0.1349, allocations: 298.2 kB / 0.6898 GB, free: 6.578 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008989/0.1358, allocations: 1.059 MB / 0.6908 GB, free: 5.516 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1358, allocations: 4 kB / 0.6908 GB, free: 5.512 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1358, allocations: 0 / 0.6908 GB, free: 5.512 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1358, allocations: 0 / 0.6908 GB, free: 5.512 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001657/0.1375, allocations: 1.005 MB / 0.6918 GB, free: 4.453 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.1375, allocations: 15.97 kB / 0.6918 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.675e-05/0.1376, allocations: 90.7 kB / 0.6919 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00329/0.1409, allocations: 0.6244 MB / 0.6925 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.1422, allocations: 0.6273 MB / 0.6931 GB, free: 3.051 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.1423, allocations: 126.4 kB / 0.6932 GB, free: 2.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-05/0.1424, allocations: 43.98 kB / 0.6933 GB, free: 2.867 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.1438, allocations: 0.719 MB / 0.694 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1438, allocations: 0 / 0.694 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.1439, allocations: 20 kB / 0.694 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1439, allocations: 12 kB / 0.694 GB, free: 2.094 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001924/0.1458, allocations: 0.7844 MB / 0.6948 GB, free: 1.309 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002964/0.1488, allocations: 1.912 MB / 0.6966 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.1515, allocations: 0.8675 MB / 0.6975 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009162/0.1524, allocations: 386.3 kB / 0.6979 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001567/0.154, allocations: 1.773 MB / 0.6996 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.155, allocations: 454.8 kB / 0.7 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 1.854e-06/0.1551, allocations: 4 kB / 0.7 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.00662/0.1617, allocations: 1.667 MB / 0.7017 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.1617, allocations: 111.3 kB / 0.7018 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.1621, allocations: 423.5 kB / 0.7022 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/0.1622, allocations: 33.7 kB / 0.7022 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.1624, allocations: 280.6 kB / 0.7025 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.1625, allocations: 193.1 kB / 0.7027 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.1628, allocations: 126.2 kB / 0.7028 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1629, allocations: 362.8 kB / 0.7031 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008739/0.1638, allocations: 321.1 kB / 0.7034 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009462/0.1647, allocations: 455.7 kB / 0.7039 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.1665, allocations: 0.7206 MB / 0.7046 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.1665, allocations: 4 kB / 0.7046 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003514/0.17, allocations: 1.061 MB / 0.7056 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.17, allocations: 8 kB / 0.7056 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1701, allocations: 7.938 kB / 0.7056 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006991/0.1708, allocations: 141 kB / 0.7058 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007964/0.1716, allocations: 159.7 kB / 0.7059 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004577/0.1762, allocations: 1.988 MB / 0.7078 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007007/0.1769, allocations: 99.45 kB / 0.7079 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.185e-05/0.1769, allocations: 31.97 kB / 0.708 GB, free: 3.012 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (71): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.1772, allocations: 213.3 kB / 0.7082 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1773, allocations: 51.34 kB / 0.7082 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.1807, allocations: 1.089 MB / 0.7093 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.1807, allocations: 8 kB / 0.7093 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.1807, allocations: 3.938 kB / 0.7093 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.1807, allocations: 7.922 kB / 0.7093 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/0.1845, allocations: 1.804 MB / 0.7111 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1845, allocations: 0 / 0.7111 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007384/0.1853, allocations: 151.8 kB / 0.7112 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007216/0.186, allocations: 136.6 kB / 0.7113 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.605e-05/0.1861, allocations: 19.98 kB / 0.7114 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.1892, allocations: 1.766 MB / 0.7131 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1892, allocations: 0 / 0.7131 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.1923, allocations: 1.049 MB / 0.7141 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.1925, allocations: 212.2 kB / 0.7143 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/0.1926, allocations: 16 kB / 0.7143 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006179/0.1932, allocations: 67.86 kB / 0.7144 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.1934, allocations: 44.59 kB / 0.7144 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.944e-05/0.1934, allocations: 24.12 kB / 0.7145 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003234/0.1938, allocations: 295.1 kB / 0.7147 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1938, allocations: 0 / 0.7147 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007147/0.1945, allocations: 243.6 kB / 0.715 GB, free: 11.57 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 (69): * Single equations (assignments): 67 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004133/0.1986, allocations: 1.998 MB / 0.7169 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002087/0.2007, allocations: 0.8943 MB / 0.7178 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2007, allocations: 0 / 0.7178 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.2018, allocations: 0.5451 MB / 0.7183 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.2023, allocations: 62.83 kB / 0.7184 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/0.2145, allocations: 6.224 MB / 0.7245 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.2149, allocations: 0.8851 MB / 0.7253 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007007/0.2156, allocations: 156.4 kB / 0.7255 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.216, allocations: 227.3 kB / 0.7257 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.216, allocations: 0 / 0.7257 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6394/0.8554, allocations: 15.64 MB / 0.741 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002508/0.8557, allocations: 324.2 kB / 0.7413 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.786, allocations: 4 kB / 0.7413 GB, free: 0.75 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)