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.004967/0.004967, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001309/0.001309, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002494/0.002494, allocations: 286.6 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.018/1.018, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002692/0.002692, allocations: 91.86 kB / 0.6809 GB, free: 100 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1603, allocations: 86.98 MB / 0.7659 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Climate.Examples.TiltedRadiation): time 0.004914/0.1652, allocations: 3.06 MB / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005313/0.1706, allocations: 3.244 MB / 0.772 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.1709, allocations: 4 kB / 0.772 GB, free: 2.699 MB / 0.5606 GB [/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.0003362/0.1712, allocations: 71.3 kB / 0.7721 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.1725, allocations: 425.8 kB / 0.7725 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009366/0.1735, allocations: 386.4 kB / 0.7729 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008151/0.1743, allocations: 0.7103 MB / 0.7736 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.1745, allocations: 114.5 kB / 0.7737 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003802/0.1749, allocations: 283.1 kB / 0.7739 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005309/0.1754, allocations: 326.8 kB / 0.7742 GB, free: 424 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.845e-05/0.1756, allocations: 60 kB / 0.7743 GB, free: 364 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2953/0.4709, allocations: 500 kB / 0.7748 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.4711, allocations: 169 kB / 0.7749 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003201/0.4714, allocations: 288.3 kB / 0.7752 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001476/0.4729, allocations: 0.9751 MB / 0.7762 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.473, allocations: 1.312 kB / 0.7762 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.813e-06/0.473, allocations: 0.9375 kB / 0.7762 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.473, allocations: 3.938 kB / 0.7762 GB, free: 8.793 MB / 0.5606 GB 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.001988/0.475, allocations: 0.9345 MB / 0.7771 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.475, allocations: 8.844 kB / 0.7771 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.4751, allocations: 88.84 kB / 0.7772 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003233/0.4784, allocations: 0.5596 MB / 0.7777 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.4796, allocations: 0.5563 MB / 0.7783 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.4798, allocations: 201.9 kB / 0.7785 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.95e-05/0.4799, allocations: 46.06 kB / 0.7785 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.4813, allocations: 0.6825 MB / 0.7792 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4813, allocations: 0 / 0.7792 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.435e-05/0.4814, allocations: 20.12 kB / 0.7792 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.4814, allocations: 9.75 kB / 0.7792 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/0.4832, allocations: 0.7738 MB / 0.78 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.4863, allocations: 1.72 MB / 0.7816 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003052/0.4894, allocations: 1.025 MB / 0.7826 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000852/0.4903, allocations: 365.8 kB / 0.783 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001547/0.4918, allocations: 1.769 MB / 0.7847 GB, free: 20.97 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.4929, allocations: 464.5 kB / 0.7852 GB, free: 20.81 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=66): time 2.635e-06/0.4929, allocations: 0 / 0.7852 GB, free: 20.81 MB / 0.5762 GB Notification: Performance of matching and sorting (n=66): time 0.002748/0.4957, allocations: 1.07 MB / 0.7862 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.481e-05/0.4958, allocations: 112.5 kB / 0.7863 GB, free: 20.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004091/0.4962, allocations: 361.2 kB / 0.7867 GB, free: 20.11 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.279e-05/0.4963, allocations: 41.28 kB / 0.7867 GB, free: 20.07 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.4964, allocations: 223.3 kB / 0.7869 GB, free: 19.89 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.4966, allocations: 232.5 kB / 0.7871 GB, free: 19.71 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.4968, allocations: 144.6 kB / 0.7873 GB, free: 19.64 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.497, allocations: 359 kB / 0.7876 GB, free: 19.31 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007856/0.4978, allocations: 313.1 kB / 0.7879 GB, free: 19.21 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008267/0.4986, allocations: 439.7 kB / 0.7883 GB, free: 18.99 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.5002, allocations: 0.727 MB / 0.789 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.5002, allocations: 0.6094 kB / 0.789 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001987/0.5022, allocations: 0.8634 MB / 0.7899 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.5022, allocations: 8.281 kB / 0.7899 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.5023, allocations: 6.25 kB / 0.7899 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.5023, allocations: 6.969 kB / 0.7899 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009479/0.5032, allocations: 186.6 kB / 0.7901 GB, free: 18.33 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.5033, allocations: 7.297 kB / 0.7901 GB, free: 18.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007064/0.504, allocations: 97.61 kB / 0.7902 GB, free: 18.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.959e-05/0.5041, allocations: 35.64 kB / 0.7902 GB, free: 18.28 MB / 0.5762 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.0003191/0.5044, allocations: 203.5 kB / 0.7904 GB, free: 18.12 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.5045, allocations: 54.88 kB / 0.7905 GB, free: 18.09 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002638/0.5072, allocations: 1.125 MB / 0.7916 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.5072, allocations: 11.81 kB / 0.7916 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5072, allocations: 4 kB / 0.7916 GB, free: 17.67 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.5072, allocations: 8.531 kB / 0.7916 GB, free: 17.67 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/0.5101, allocations: 1.755 MB / 0.7933 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.5102, allocations: 0.6094 kB / 0.7933 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009209/0.5111, allocations: 196.9 kB / 0.7935 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.5111, allocations: 5.969 kB / 0.7935 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.583e-05/0.5112, allocations: 29.98 kB / 0.7935 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.5112, allocations: 3.094 kB / 0.7935 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5112, allocations: 0.6562 kB / 0.7935 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.5132, allocations: 1.014 MB / 0.7945 GB, free: 16.36 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.5135, allocations: 218.5 kB / 0.7947 GB, free: 16.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.5137, allocations: 18.97 kB / 0.7947 GB, free: 16.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006648/0.5143, allocations: 52.97 kB / 0.7948 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.5145, allocations: 54.55 kB / 0.7948 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-05/0.5146, allocations: 36.95 kB / 0.7949 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003281/0.5149, allocations: 253.9 kB / 0.7951 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5149, allocations: 0 / 0.7951 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008855/0.5158, allocations: 233.1 kB / 0.7953 GB, free: 15.95 MB / 0.5762 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.004269/0.5201, allocations: 1.961 MB / 0.7973 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002316/0.5224, allocations: 0.8161 MB / 0.7981 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5225, allocations: 1.469 kB / 0.7981 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.5237, allocations: 473.5 kB / 0.7985 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006035/0.5243, allocations: 73.78 kB / 0.7986 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.5344, allocations: 5.136 MB / 0.8036 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.535, allocations: 0.8716 MB / 0.8044 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008194/0.5358, allocations: 171 kB / 0.8046 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000517/0.5363, allocations: 219.2 kB / 0.8048 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/0.5363, allocations: 4 kB / 0.8048 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04344/0.5798, allocations: 14.54 MB / 0.819 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.845/9.424, allocations: 11.48 kB / 0.819 GB, free: 5.309 MB / 0.5762 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)