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.00563/0.005629, allocations: 100.2 kB / 15.73 MB, free: 6.031 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.001207/0.001207, allocations: 187.7 kB / 16.67 MB, free: 5.965 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002076/0.002076, allocations: 283 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9692/0.9692, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 99.84 kB / 0.6809 GB, free: 48 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1535, allocations: 86.97 MB / 0.7658 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Climate.Examples.TiltedRadiation): time 0.003924/0.1574, allocations: 3.062 MB / 0.7688 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004624/0.1621, allocations: 3.248 MB / 0.772 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/0.1624, allocations: 7.938 kB / 0.772 GB, free: 2.633 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.0003862/0.1628, allocations: 63.38 kB / 0.7721 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001068/0.1638, allocations: 444.8 kB / 0.7725 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00082/0.1647, allocations: 374.4 kB / 0.7729 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006684/0.1653, allocations: 0.7181 MB / 0.7736 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.1656, allocations: 118.6 kB / 0.7737 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/0.1659, allocations: 275.2 kB / 0.7739 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004537/0.1664, allocations: 326.8 kB / 0.7742 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.454e-05/0.1665, allocations: 60 kB / 0.7743 GB, free: 296 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3183/0.4848, allocations: 497.9 kB / 0.7748 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.4851, allocations: 166.2 kB / 0.7749 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003701/0.4855, allocations: 291 kB / 0.7752 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.4872, allocations: 0.9801 MB / 0.7762 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4872, allocations: 0 / 0.7762 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.753e-06/0.4872, allocations: 4.438 kB / 0.7762 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.728e-06/0.4872, allocations: 0 / 0.7762 GB, free: 8.812 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.001942/0.4891, allocations: 0.9072 MB / 0.7771 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.4892, allocations: 10.02 kB / 0.7771 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.997e-05/0.4893, allocations: 85.7 kB / 0.7772 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00316/0.4925, allocations: 0.5567 MB / 0.7777 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.4937, allocations: 0.5659 MB / 0.7783 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.4939, allocations: 198.1 kB / 0.7784 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.364e-05/0.494, allocations: 48.22 kB / 0.7785 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.4953, allocations: 0.677 MB / 0.7791 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.4953, allocations: 0 / 0.7791 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.333e-05/0.4954, allocations: 18.5 kB / 0.7792 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.4954, allocations: 11.06 kB / 0.7792 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.4971, allocations: 0.7765 MB / 0.7799 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003004/0.5001, allocations: 1.71 MB / 0.7816 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00295/0.5031, allocations: 1.031 MB / 0.7826 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007974/0.5039, allocations: 362.1 kB / 0.783 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001352/0.5052, allocations: 1.769 MB / 0.7847 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.5064, allocations: 459.6 kB / 0.7851 GB, free: 20.82 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=66): time 2.335e-06/0.5064, allocations: 0 / 0.7851 GB, free: 20.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=66): time 0.002573/0.509, allocations: 1.067 MB / 0.7862 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.509, allocations: 111.3 kB / 0.7863 GB, free: 20.32 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.5094, allocations: 367.5 kB / 0.7866 GB, free: 20.12 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.5095, allocations: 37.39 kB / 0.7867 GB, free: 20.08 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.5096, allocations: 219.2 kB / 0.7869 GB, free: 19.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.5097, allocations: 219.1 kB / 0.7871 GB, free: 19.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.51, allocations: 152.3 kB / 0.7872 GB, free: 19.67 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.5101, allocations: 351 kB / 0.7876 GB, free: 19.34 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007344/0.5108, allocations: 322.3 kB / 0.7879 GB, free: 19.24 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007966/0.5116, allocations: 438 kB / 0.7883 GB, free: 19.02 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.5131, allocations: 0.7231 MB / 0.789 GB, free: 18.68 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.5132, allocations: 2.719 kB / 0.789 GB, free: 18.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001846/0.515, allocations: 0.8559 MB / 0.7898 GB, free: 18.37 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.515, allocations: 7.703 kB / 0.7898 GB, free: 18.37 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.515, allocations: 9.719 kB / 0.7898 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.5151, allocations: 5.906 kB / 0.7898 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009376/0.516, allocations: 187.5 kB / 0.79 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.516, allocations: 10.67 kB / 0.79 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006702/0.5167, allocations: 100.9 kB / 0.7901 GB, free: 18.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/0.5168, allocations: 35.61 kB / 0.7902 GB, free: 18.3 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.0002406/0.517, allocations: 194.7 kB / 0.7904 GB, free: 18.15 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.5171, allocations: 52.14 kB / 0.7904 GB, free: 18.12 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002508/0.5197, allocations: 1.117 MB / 0.7915 GB, free: 17.71 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.5197, allocations: 12.34 kB / 0.7915 GB, free: 17.71 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5197, allocations: 5.125 kB / 0.7915 GB, free: 17.71 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.5197, allocations: 7.781 kB / 0.7915 GB, free: 17.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.5225, allocations: 1.756 MB / 0.7932 GB, free: 16.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5225, allocations: 0 / 0.7932 GB, free: 16.87 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009119/0.5234, allocations: 197.7 kB / 0.7934 GB, free: 16.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.5234, allocations: 4.625 kB / 0.7934 GB, free: 16.86 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.705e-05/0.5235, allocations: 28.5 kB / 0.7935 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.5235, allocations: 3.094 kB / 0.7935 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.5235, allocations: 0.6562 kB / 0.7935 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.5254, allocations: 1.009 MB / 0.7944 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.5257, allocations: 223.6 kB / 0.7947 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.5258, allocations: 21.78 kB / 0.7947 GB, free: 16.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.5264, allocations: 56.34 kB / 0.7947 GB, free: 16.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.5266, allocations: 58.77 kB / 0.7948 GB, free: 16.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/0.5266, allocations: 29.05 kB / 0.7948 GB, free: 16.18 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002561/0.5269, allocations: 257.6 kB / 0.7951 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.71e-07/0.5269, allocations: 0.5 kB / 0.7951 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000743/0.5277, allocations: 225.5 kB / 0.7953 GB, free: 15.99 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.003305/0.531, allocations: 1.957 MB / 0.7972 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002234/0.5332, allocations: 0.8119 MB / 0.798 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5332, allocations: 0.625 kB / 0.798 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.5345, allocations: 475.4 kB / 0.7984 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.535, allocations: 76.66 kB / 0.7985 GB, free: 14.53 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009135/0.5442, allocations: 5.115 MB / 0.8035 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004959/0.5447, allocations: 0.8709 MB / 0.8043 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000733/0.5454, allocations: 168.6 kB / 0.8045 GB, free: 11 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.5459, allocations: 222.1 kB / 0.8047 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of SimCode: time 7.82e-07/0.5459, allocations: 4 kB / 0.8047 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.5778, allocations: 14.34 MB / 0.8187 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.769, allocations: 17.72 kB / 0.8187 GB, free: 5.535 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation.fmu > BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe 2>&1)