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.001371/0.001377, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001675/0.001675, allocations: 192.4 kB / 16.25 MB, free: 6.629 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.231/1.231, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001964/0.001964, allocations: 274.8 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8903/0.8903, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 92.17 kB / 0.5948 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1347, allocations: 86.98 MB / 0.6797 GB, free: 1.008 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004723/0.1395, allocations: 3.819 MB / 0.6835 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004323/0.1438, allocations: 3.396 MB / 0.6868 GB, free: 9.773 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002863/0.1441, allocations: 11.94 kB / 0.6868 GB, free: 9.762 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.0004817/0.1446, allocations: 107.2 kB / 0.6869 GB, free: 9.656 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008877/0.1455, allocations: 394.2 kB / 0.6873 GB, free: 9.27 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006072/0.1461, allocations: 334.4 kB / 0.6876 GB, free: 8.945 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000601/0.1468, allocations: 0.7758 MB / 0.6883 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.147, allocations: 201.9 kB / 0.6885 GB, free: 7.965 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003018/0.1473, allocations: 314.8 kB / 0.6888 GB, free: 7.656 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.1477, allocations: 330.6 kB / 0.6891 GB, free: 7.332 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.1478, allocations: 68 kB / 0.6892 GB, free: 7.266 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006472/0.1485, allocations: 0.5111 MB / 0.6897 GB, free: 6.754 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1486, allocations: 167.5 kB / 0.6899 GB, free: 6.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.1489, allocations: 338.2 kB / 0.6902 GB, free: 6.258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009762/0.1498, allocations: 1.098 MB / 0.6913 GB, free: 5.156 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.1499, allocations: 0 / 0.6913 GB, free: 5.156 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1499, allocations: 0 / 0.6913 GB, free: 5.156 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1499, allocations: 0 / 0.6913 GB, free: 5.156 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.001724/0.1516, allocations: 0.9991 MB / 0.6922 GB, free: 4.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1516, allocations: 12.03 kB / 0.6922 GB, free: 4.094 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.966e-05/0.1518, allocations: 90.7 kB / 0.6923 GB, free: 3.996 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003432/0.1552, allocations: 0.6244 MB / 0.6929 GB, free: 3.371 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.1564, allocations: 0.6312 MB / 0.6936 GB, free: 2.703 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.1565, allocations: 122.4 kB / 0.6937 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.808e-05/0.1566, allocations: 44 kB / 0.6937 GB, free: 2.523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1581, allocations: 0.7151 MB / 0.6944 GB, free: 1.785 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1581, allocations: 0 / 0.6944 GB, free: 1.785 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.1582, allocations: 28 kB / 0.6944 GB, free: 1.758 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.1582, allocations: 8 kB / 0.6945 GB, free: 1.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.1601, allocations: 0.7767 MB / 0.6952 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003069/0.1632, allocations: 1.916 MB / 0.6971 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.1659, allocations: 0.8627 MB / 0.6979 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009127/0.1668, allocations: 390.2 kB / 0.6983 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/0.1684, allocations: 1.765 MB / 0.7 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.1695, allocations: 462.8 kB / 0.7005 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 2.034e-06/0.1695, allocations: 0 / 0.7005 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.006585/0.1761, allocations: 1.671 MB / 0.7021 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.1761, allocations: 111.3 kB / 0.7022 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004274/0.1766, allocations: 423.5 kB / 0.7026 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.1766, allocations: 37.7 kB / 0.7026 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.1768, allocations: 280.6 kB / 0.7029 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.177, allocations: 193.1 kB / 0.7031 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.1772, allocations: 126.2 kB / 0.7032 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1773, allocations: 366.8 kB / 0.7036 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008773/0.1782, allocations: 313.1 kB / 0.7039 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009391/0.1792, allocations: 447.8 kB / 0.7043 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.1809, allocations: 0.7284 MB / 0.705 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1809, allocations: 0 / 0.705 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003641/0.1846, allocations: 1.069 MB / 0.706 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1846, allocations: 7.938 kB / 0.706 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1846, allocations: 7.938 kB / 0.7061 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007161/0.1853, allocations: 140.7 kB / 0.7062 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000816/0.1862, allocations: 167.9 kB / 0.7064 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/0.1907, allocations: 2.114 MB / 0.7084 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007671/0.1915, allocations: 95.45 kB / 0.7085 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.313e-05/0.1916, allocations: 27.97 kB / 0.7085 GB, free: 2.535 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.00032/0.1919, allocations: 215 kB / 0.7087 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.192, allocations: 55.34 kB / 0.7088 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/0.1953, allocations: 1.101 MB / 0.7099 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.1953, allocations: 8 kB / 0.7099 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1953, allocations: 0 / 0.7099 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.1954, allocations: 3.984 kB / 0.7099 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/0.1992, allocations: 1.808 MB / 0.7116 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1992, allocations: 4 kB / 0.7116 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007449/0.1999, allocations: 143.8 kB / 0.7118 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005814/0.2005, allocations: 120.7 kB / 0.7119 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/0.2006, allocations: 23.98 kB / 0.7119 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003639/0.2042, allocations: 1.955 MB / 0.7138 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2043, allocations: 4.062 kB / 0.7138 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002918/0.2072, allocations: 1.057 MB / 0.7149 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.2074, allocations: 212.2 kB / 0.7151 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.678e-05/0.2075, allocations: 16.06 kB / 0.7151 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.2082, allocations: 64.69 kB / 0.7151 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.2083, allocations: 52.59 kB / 0.7152 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.816e-05/0.2084, allocations: 23.98 kB / 0.7152 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003002/0.2087, allocations: 299 kB / 0.7155 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2087, allocations: 0 / 0.7155 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007074/0.2094, allocations: 247.6 kB / 0.7157 GB, free: 10.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 (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.00415/0.2136, allocations: 1.972 MB / 0.7177 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002466/0.216, allocations: 0.949 MB / 0.7186 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2161, allocations: 4.062 kB / 0.7186 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.2175, allocations: 0.5801 MB / 0.7192 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.2181, allocations: 82.67 kB / 0.7192 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.2307, allocations: 6.234 MB / 0.7253 GB, free: 1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.2311, allocations: 0.8851 MB / 0.7262 GB, free: 84 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007312/0.2318, allocations: 140.6 kB / 0.7263 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.2322, allocations: 227.2 kB / 0.7265 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of SimCode: time 5.91e-07/0.2322, allocations: 0 / 0.7265 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.263, allocations: 15.92 MB / 0.7421 GB, free: 96 kB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/0.2633, allocations: 313.7 kB / 0.7424 GB, free: 15.71 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.316, allocations: 0 / 0.7424 GB, free: 15.71 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)