Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.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.Climate.Examples.TiltedRadiation,fileNamePrefix="BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Climate.Examples.TiltedRadiation,fileNamePrefix="BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation",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.001303/0.001303, 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.00116/0.00116, allocations: 195.6 kB / 16.53 MB, free: 6.391 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.277/1.277, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, 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.9214/0.9214, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 91.42 kB / 0.5953 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1346, allocations: 86.97 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Climate.Examples.TiltedRadiation): time 0.004039/0.1386, allocations: 3.052 MB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004117/0.1428, allocations: 3.256 MB / 0.6864 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1429, allocations: 4 kB / 0.6864 GB, free: 10.28 MB / 494.1 MB [/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.0002842/0.1432, allocations: 59.38 kB / 0.6865 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008866/0.1441, allocations: 433.7 kB / 0.6869 GB, free: 9.797 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007027/0.1448, allocations: 382 kB / 0.6873 GB, free: 9.426 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005743/0.1454, allocations: 0.7025 MB / 0.6879 GB, free: 8.723 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.1456, allocations: 126.5 kB / 0.6881 GB, free: 8.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.1459, allocations: 283.1 kB / 0.6883 GB, free: 8.316 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004285/0.1463, allocations: 318.8 kB / 0.6886 GB, free: 8.004 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.373e-05/0.1464, allocations: 60 kB / 0.6887 GB, free: 7.945 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007304/0.1472, allocations: 0.4917 MB / 0.6892 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001672/0.1474, allocations: 171.4 kB / 0.6893 GB, free: 7.285 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002457/0.1476, allocations: 290.5 kB / 0.6896 GB, free: 7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009602/0.1486, allocations: 0.9622 MB / 0.6906 GB, free: 6.035 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1486, allocations: 0 / 0.6906 GB, free: 6.035 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1486, allocations: 0 / 0.6906 GB, free: 6.035 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1486, allocations: 4 kB / 0.6906 GB, free: 6.031 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001793/0.1504, allocations: 0.9141 MB / 0.6915 GB, free: 5.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1505, allocations: 12.03 kB / 0.6915 GB, free: 5.055 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.965e-05/0.1506, allocations: 82.72 kB / 0.6915 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00315/0.1537, allocations: 0.5543 MB / 0.6921 GB, free: 4.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.1549, allocations: 0.5584 MB / 0.6926 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.1551, allocations: 199.5 kB / 0.6928 GB, free: 3.582 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.352e-05/0.1552, allocations: 44 kB / 0.6929 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1565, allocations: 0.683 MB / 0.6935 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1566, allocations: 0 / 0.6935 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.951e-05/0.1566, allocations: 20 kB / 0.6936 GB, free: 2.824 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1567, allocations: 12 kB / 0.6936 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.1585, allocations: 0.7689 MB / 0.6943 GB, free: 2.039 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.1616, allocations: 1.735 MB / 0.696 GB, free: 260 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003032/0.1646, allocations: 1.017 MB / 0.697 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008092/0.1655, allocations: 369.3 kB / 0.6974 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001664/0.1671, allocations: 1.769 MB / 0.6991 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009562/0.1681, allocations: 458.8 kB / 0.6995 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=66): time 2.053e-06/0.1681, allocations: 0 / 0.6995 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66): time 0.002691/0.1708, allocations: 1.068 MB / 0.7006 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.1709, allocations: 115.3 kB / 0.7007 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.1712, allocations: 357.7 kB / 0.701 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.1713, allocations: 41.69 kB / 0.7011 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1714, allocations: 209.1 kB / 0.7013 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.1716, allocations: 232.7 kB / 0.7015 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.1718, allocations: 146.5 kB / 0.7016 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.172, allocations: 350.8 kB / 0.7019 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008101/0.1728, allocations: 317.8 kB / 0.7023 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/0.1737, allocations: 441.6 kB / 0.7027 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.1754, allocations: 0.7282 MB / 0.7034 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1754, allocations: 4 kB / 0.7034 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001978/0.1774, allocations: 0.8479 MB / 0.7042 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1774, allocations: 8.312 kB / 0.7042 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1774, allocations: 4 kB / 0.7042 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1774, allocations: 11.94 kB / 0.7042 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009501/0.1784, allocations: 187.7 kB / 0.7044 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.1784, allocations: 7.938 kB / 0.7044 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006705/0.1791, allocations: 95.31 kB / 0.7045 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.897e-05/0.1791, allocations: 43.95 kB / 0.7046 GB, free: 6.922 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiationFixed.outsidePolarCircle,radiationOneAxisTracked.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.1794, allocations: 195 kB / 0.7047 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.1795, allocations: 47.44 kB / 0.7048 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.1822, allocations: 1.127 MB / 0.7059 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.1822, allocations: 15.94 kB / 0.7059 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.1822, allocations: 3.938 kB / 0.7059 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.1823, allocations: 3.984 kB / 0.7059 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.1852, allocations: 1.763 MB / 0.7076 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1852, allocations: 0 / 0.7076 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009407/0.1862, allocations: 187.7 kB / 0.7078 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1862, allocations: 7.938 kB / 0.7078 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/0.1862, allocations: 31.97 kB / 0.7079 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1863, allocations: 4 kB / 0.7079 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1863, allocations: 0 / 0.7079 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.1883, allocations: 1.003 MB / 0.7088 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.1885, allocations: 224 kB / 0.7091 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.976e-05/0.1886, allocations: 16 kB / 0.7091 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006342/0.1893, allocations: 57.48 kB / 0.7091 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.1894, allocations: 64.84 kB / 0.7092 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-05/0.1895, allocations: 31.98 kB / 0.7092 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002381/0.1897, allocations: 251.2 kB / 0.7095 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1897, allocations: 4 kB / 0.7095 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006217/0.1903, allocations: 223.8 kB / 0.7097 GB, free: 1.582 MB / 0.4981 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 (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003251/0.1936, allocations: 1.939 MB / 0.7116 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002426/0.196, allocations: 0.8852 MB / 0.7124 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1961, allocations: 0 / 0.7124 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009744/0.197, allocations: 473.7 kB / 0.7129 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/0.1975, allocations: 72.91 kB / 0.7129 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008163/0.2057, allocations: 5.176 MB / 0.718 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.2061, allocations: 0.8662 MB / 0.7188 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007908/0.2069, allocations: 176.6 kB / 0.719 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/0.2073, allocations: 227.3 kB / 0.7192 GB, free: 7.746 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.2073, allocations: 0 / 0.7192 GB, free: 7.746 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03244/0.2398, allocations: 14.28 MB / 0.7332 GB, free: 9.594 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.644, allocations: 6.406 kB / 0.7332 GB, free: 9.59 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe ; mkfifo BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe >> ../files/BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation.fmu > BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe 2>&1)