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.006625/0.006625, allocations: 102.8 kB / 15.73 MB, free: 6.055 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.001434/0.001434, allocations: 194.4 kB / 16.67 MB, free: 5.973 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002078/0.002078, allocations: 301.9 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9501/0.9501, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 91.86 kB / 0.6809 GB, free: 7.523 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4004, allocations: 86.98 MB / 0.7659 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005513/0.4059, allocations: 3.79 MB / 0.7696 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005125/0.4111, allocations: 3.446 MB / 0.7729 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003863/0.4115, allocations: 15.88 kB / 0.7729 GB, free: 12.6 MB / 0.545 GB [/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.0005302/0.412, allocations: 130.9 kB / 0.7731 GB, free: 12.47 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001273/0.4133, allocations: 457.4 kB / 0.7735 GB, free: 12.02 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008952/0.4142, allocations: 374.5 kB / 0.7739 GB, free: 11.66 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009055/0.4151, allocations: 0.7721 MB / 0.7746 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003331/0.4155, allocations: 197.9 kB / 0.7748 GB, free: 10.69 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004669/0.416, allocations: 330.8 kB / 0.7751 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005507/0.4165, allocations: 330.6 kB / 0.7754 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.4167, allocations: 68 kB / 0.7755 GB, free: 9.973 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00094/0.4176, allocations: 0.4917 MB / 0.776 GB, free: 9.48 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.4179, allocations: 171.5 kB / 0.7761 GB, free: 9.312 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000374/0.4182, allocations: 334.2 kB / 0.7765 GB, free: 8.984 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001504/0.4198, allocations: 1.094 MB / 0.7775 GB, free: 7.887 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4198, allocations: 4 kB / 0.7775 GB, free: 7.883 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4198, allocations: 0 / 0.7775 GB, free: 7.883 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.508e-05/0.4198, allocations: 0 / 0.7775 GB, free: 7.883 MB / 0.545 GB 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.002247/0.4221, allocations: 1.022 MB / 0.7785 GB, free: 6.809 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.4221, allocations: 8.031 kB / 0.7785 GB, free: 6.801 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.4222, allocations: 90.7 kB / 0.7786 GB, free: 6.703 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003544/0.4258, allocations: 0.6166 MB / 0.7792 GB, free: 6.086 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.4272, allocations: 0.6312 MB / 0.7798 GB, free: 5.418 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.4273, allocations: 126.3 kB / 0.78 GB, free: 5.277 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/0.4274, allocations: 48 kB / 0.78 GB, free: 5.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.429, allocations: 0.7151 MB / 0.7807 GB, free: 4.496 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.429, allocations: 0 / 0.7807 GB, free: 4.496 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.4291, allocations: 20 kB / 0.7807 GB, free: 4.477 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.4291, allocations: 16 kB / 0.7807 GB, free: 4.461 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/0.4311, allocations: 0.7766 MB / 0.7815 GB, free: 3.68 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003486/0.4346, allocations: 1.915 MB / 0.7834 GB, free: 1.707 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/0.4374, allocations: 0.8697 MB / 0.7842 GB, free: 0.8281 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009701/0.4384, allocations: 382.3 kB / 0.7846 GB, free: 464 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001813/0.4403, allocations: 1.769 MB / 0.7863 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.4414, allocations: 462.8 kB / 0.7868 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 2.835e-06/0.4414, allocations: 4 kB / 0.7868 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.007027/0.4485, allocations: 1.663 MB / 0.7884 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.4485, allocations: 111.3 kB / 0.7885 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.449, allocations: 426.2 kB / 0.7889 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/0.4491, allocations: 33.7 kB / 0.7889 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.4493, allocations: 276.6 kB / 0.7892 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.4495, allocations: 193.2 kB / 0.7894 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.4497, allocations: 126.2 kB / 0.7895 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4499, allocations: 358.8 kB / 0.7898 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008908/0.4508, allocations: 325.1 kB / 0.7902 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.4518, allocations: 451.7 kB / 0.7906 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/0.4537, allocations: 0.7246 MB / 0.7913 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4537, allocations: 4 kB / 0.7913 GB, free: 9.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003748/0.4575, allocations: 1.065 MB / 0.7923 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4575, allocations: 8 kB / 0.7923 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4576, allocations: 8.219 kB / 0.7924 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007376/0.4583, allocations: 136.7 kB / 0.7925 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008475/0.4592, allocations: 167.7 kB / 0.7926 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005211/0.4644, allocations: 2.11 MB / 0.7947 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009571/0.4654, allocations: 110.1 kB / 0.7948 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.4655, allocations: 27.98 kB / 0.7948 GB, free: 5.238 MB / 0.5606 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.0004596/0.466, allocations: 219.3 kB / 0.795 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.4661, allocations: 55.28 kB / 0.7951 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003435/0.4696, allocations: 1.093 MB / 0.7962 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.4696, allocations: 12 kB / 0.7962 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.4696, allocations: 0 / 0.7962 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.4696, allocations: 3.984 kB / 0.7962 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004071/0.4737, allocations: 1.797 MB / 0.7979 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.4737, allocations: 4 kB / 0.7979 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008016/0.4745, allocations: 151.8 kB / 0.7981 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005923/0.4751, allocations: 112.8 kB / 0.7982 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.853e-05/0.4752, allocations: 15.98 kB / 0.7982 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.4791, allocations: 1.97 MB / 0.8001 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4791, allocations: 0 / 0.8001 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.4822, allocations: 1.046 MB / 0.8011 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.4825, allocations: 216.1 kB / 0.8014 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.4826, allocations: 16 kB / 0.8014 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006499/0.4833, allocations: 63.92 kB / 0.8014 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.4834, allocations: 40.59 kB / 0.8015 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-05/0.4835, allocations: 27.98 kB / 0.8015 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003392/0.4838, allocations: 299.1 kB / 0.8018 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4838, allocations: 0 / 0.8018 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007794/0.4846, allocations: 239.6 kB / 0.802 GB, free: 13.62 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 (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.004422/0.489, allocations: 2 MB / 0.804 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00234/0.4914, allocations: 0.8942 MB / 0.8048 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4914, allocations: 0 / 0.8048 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.4929, allocations: 0.5842 MB / 0.8054 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/0.4935, allocations: 67.75 kB / 0.8055 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.5068, allocations: 5.913 MB / 0.8112 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005761/0.5074, allocations: 0.889 MB / 0.8121 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006929/0.5081, allocations: 156.4 kB / 0.8123 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004401/0.5086, allocations: 223.3 kB / 0.8125 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of SimCode: time 7.31e-07/0.5086, allocations: 0 / 0.8125 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04221/0.5508, allocations: 16.57 MB / 0.8287 GB, free: 2.477 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.97, allocations: 18.39 kB / 0.8287 GB, free: 2.461 MB / 0.5919 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)