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.001167/0.001166, allocations: 108 kB / 15.61 MB, free: 152 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.001147/0.001147, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.244/1.244, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 283 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9045/0.9045, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 99.38 kB / 0.5953 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1395, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005116/0.1447, allocations: 3.783 MB / 0.684 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.1496, allocations: 3.452 MB / 0.6873 GB, free: 9.316 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003914/0.1501, allocations: 7.938 kB / 0.6874 GB, free: 9.309 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.0005247/0.1506, allocations: 126.9 kB / 0.6875 GB, free: 9.184 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001288/0.1519, allocations: 457.4 kB / 0.6879 GB, free: 8.734 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000822/0.1527, allocations: 364.4 kB / 0.6883 GB, free: 8.379 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007775/0.1535, allocations: 0.7797 MB / 0.689 GB, free: 7.598 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.1538, allocations: 205.9 kB / 0.6892 GB, free: 7.391 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003666/0.1542, allocations: 310.9 kB / 0.6895 GB, free: 7.086 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004312/0.1546, allocations: 326.6 kB / 0.6898 GB, free: 6.766 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.845e-05/0.1547, allocations: 68 kB / 0.6899 GB, free: 6.699 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008132/0.1556, allocations: 0.4995 MB / 0.6904 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.1558, allocations: 179.3 kB / 0.6905 GB, free: 6.023 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.1561, allocations: 338.2 kB / 0.6909 GB, free: 5.691 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.1572, allocations: 1.083 MB / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1572, allocations: 0 / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1572, allocations: 0 / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.1572, allocations: 0 / 0.6919 GB, free: 4.605 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.001854/0.1591, allocations: 1.014 MB / 0.6929 GB, free: 3.543 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.1592, allocations: 8.031 kB / 0.6929 GB, free: 3.535 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.1593, allocations: 90.64 kB / 0.693 GB, free: 3.438 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003431/0.1627, allocations: 0.6205 MB / 0.6936 GB, free: 2.816 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.1641, allocations: 0.639 MB / 0.6942 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.1642, allocations: 126.4 kB / 0.6944 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.1644, allocations: 44 kB / 0.6944 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.166, allocations: 0.7074 MB / 0.6951 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.166, allocations: 4 kB / 0.6951 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.162e-05/0.1661, allocations: 20 kB / 0.6951 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.1661, allocations: 12 kB / 0.6951 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.1682, allocations: 0.7806 MB / 0.6959 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.1718, allocations: 1.912 MB / 0.6978 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002817/0.1746, allocations: 0.8646 MB / 0.6986 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009819/0.1756, allocations: 386.2 kB / 0.699 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001684/0.1773, allocations: 1.765 MB / 0.7007 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001065/0.1784, allocations: 454.8 kB / 0.7011 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 2.634e-06/0.1784, allocations: 8 kB / 0.7011 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.006645/0.185, allocations: 1.671 MB / 0.7028 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.1851, allocations: 111.3 kB / 0.7029 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000488/0.1856, allocations: 419.5 kB / 0.7033 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.1857, allocations: 37.69 kB / 0.7033 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.1859, allocations: 276.6 kB / 0.7036 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.1861, allocations: 197.1 kB / 0.7038 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.1863, allocations: 126.2 kB / 0.7039 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.1864, allocations: 366.8 kB / 0.7042 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.1873, allocations: 321.1 kB / 0.7045 GB, free: 7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009705/0.1883, allocations: 447.7 kB / 0.705 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/0.1902, allocations: 0.7284 MB / 0.7057 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1902, allocations: 4 kB / 0.7057 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003665/0.1939, allocations: 1.053 MB / 0.7067 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.1939, allocations: 8 kB / 0.7067 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1939, allocations: 7.938 kB / 0.7067 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007376/0.1946, allocations: 141 kB / 0.7069 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008106/0.1955, allocations: 159.7 kB / 0.707 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/0.2002, allocations: 2.118 MB / 0.7091 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007897/0.201, allocations: 99.45 kB / 0.7092 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.118e-05/0.2011, allocations: 35.97 kB / 0.7092 GB, free: 1.977 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.0003712/0.2014, allocations: 213.4 kB / 0.7094 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.2016, allocations: 51.34 kB / 0.7095 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003527/0.2051, allocations: 1.089 MB / 0.7105 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.2052, allocations: 8 kB / 0.7105 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-06/0.2052, allocations: 0 / 0.7105 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2052, allocations: 3.984 kB / 0.7105 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00409/0.2093, allocations: 1.811 MB / 0.7123 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2093, allocations: 0 / 0.7123 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008163/0.2101, allocations: 151.8 kB / 0.7124 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006134/0.2107, allocations: 120.7 kB / 0.7126 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.873e-05/0.2108, allocations: 23.98 kB / 0.7126 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00394/0.2148, allocations: 1.971 MB / 0.7145 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2148, allocations: 0 / 0.7145 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003101/0.2179, allocations: 1.049 MB / 0.7155 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.2182, allocations: 208.4 kB / 0.7157 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.2183, allocations: 12 kB / 0.7157 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006537/0.219, allocations: 63.91 kB / 0.7158 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.2191, allocations: 56.52 kB / 0.7159 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.879e-05/0.2192, allocations: 23.98 kB / 0.7159 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003417/0.2195, allocations: 299.1 kB / 0.7162 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2196, allocations: 0 / 0.7162 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000753/0.2203, allocations: 243.6 kB / 0.7164 GB, free: 10.33 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.004362/0.2247, allocations: 1.979 MB / 0.7183 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002592/0.2273, allocations: 0.9489 MB / 0.7193 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2273, allocations: 0 / 0.7193 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.2289, allocations: 0.5958 MB / 0.7198 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/0.2294, allocations: 80.61 kB / 0.7199 GB, free: 6.828 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/0.2419, allocations: 5.986 MB / 0.7258 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.2424, allocations: 0.8928 MB / 0.7266 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000731/0.2431, allocations: 144.5 kB / 0.7268 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.2435, allocations: 223.3 kB / 0.727 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of SimCode: time 4.91e-07/0.2435, allocations: 0 / 0.727 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.282, allocations: 16.04 MB / 0.7427 GB, free: 15.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.93, allocations: 19.67 kB / 0.7427 GB, free: 15.59 MB / 0.545 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)