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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002118/0.002118, allocations: 107.6 kB / 16.4 MB, free: 6.512 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.002115/0.002115, allocations: 185.2 kB / 17.34 MB, free: 5.738 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.422/1.422, allocations: 222.9 MB / 241 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.002532/0.002532, allocations: 291 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9984/0.9984, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 95.86 kB / 0.6821 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4076, allocations: 86.98 MB / 0.767 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005433/0.413, allocations: 3.799 MB / 0.7707 GB, free: 124 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005224/0.4182, allocations: 3.462 MB / 0.7741 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.4185, allocations: 7.938 kB / 0.7741 GB, free: 12.63 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.0004988/0.419, allocations: 126.9 kB / 0.7742 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.42, allocations: 469.4 kB / 0.7747 GB, free: 12.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007595/0.4208, allocations: 366.2 kB / 0.775 GB, free: 11.69 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.4216, allocations: 0.7721 MB / 0.7758 GB, free: 10.92 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.4219, allocations: 138 kB / 0.7759 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000388/0.4223, allocations: 318.8 kB / 0.7762 GB, free: 10.47 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004802/0.4227, allocations: 334.6 kB / 0.7765 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.914e-05/0.4228, allocations: 71.94 kB / 0.7766 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008332/0.4237, allocations: 0.4917 MB / 0.7771 GB, free: 9.578 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.4239, allocations: 171.4 kB / 0.7773 GB, free: 9.41 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.4242, allocations: 338.2 kB / 0.7776 GB, free: 9.078 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001379/0.4256, allocations: 1.115 MB / 0.7787 GB, free: 7.965 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.4256, allocations: 0 / 0.7787 GB, free: 7.965 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4256, allocations: 0 / 0.7787 GB, free: 7.965 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.4256, allocations: 0 / 0.7787 GB, free: 7.965 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.002086/0.4277, allocations: 1.037 MB / 0.7797 GB, free: 6.875 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.4277, allocations: 16.03 kB / 0.7797 GB, free: 6.859 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003796/0.4315, allocations: 0.6209 MB / 0.7803 GB, free: 6.238 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.433, allocations: 0.6355 MB / 0.7809 GB, free: 5.566 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.4331, allocations: 126.7 kB / 0.781 GB, free: 5.426 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.4332, allocations: 51.94 kB / 0.7811 GB, free: 5.375 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.4349, allocations: 0.7151 MB / 0.7818 GB, free: 4.641 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4349, allocations: 4 kB / 0.7818 GB, free: 4.637 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-05/0.435, allocations: 24 kB / 0.7818 GB, free: 4.613 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.435, allocations: 8 kB / 0.7818 GB, free: 4.605 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002185/0.4372, allocations: 0.7767 MB / 0.7826 GB, free: 3.824 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003644/0.4408, allocations: 1.908 MB / 0.7844 GB, free: 1.859 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00298/0.4438, allocations: 0.8191 MB / 0.7852 GB, free: 1.031 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.4449, allocations: 362.2 kB / 0.7856 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002128/0.447, allocations: 1.773 MB / 0.7873 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001176/0.4482, allocations: 461.3 kB / 0.7878 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 2.755e-06/0.4482, allocations: 0 / 0.7878 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.007124/0.4553, allocations: 1.667 MB / 0.7894 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.876e-05/0.4554, allocations: 111.4 kB / 0.7895 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00058/0.456, allocations: 418.1 kB / 0.7899 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.327e-05/0.456, allocations: 41.69 kB / 0.7899 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/0.4563, allocations: 281.1 kB / 0.7902 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.4565, allocations: 206.3 kB / 0.7904 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.4567, allocations: 122.2 kB / 0.7905 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000199/0.4569, allocations: 366.8 kB / 0.7909 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009881/0.4579, allocations: 321.1 kB / 0.7912 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.459, allocations: 439.8 kB / 0.7916 GB, free: 10 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/0.461, allocations: 0.7363 MB / 0.7923 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.461, allocations: 0 / 0.7923 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00397/0.465, allocations: 1.069 MB / 0.7934 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.465, allocations: 8 kB / 0.7934 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.465, allocations: 3.984 kB / 0.7934 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007786/0.4658, allocations: 156.9 kB / 0.7935 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008706/0.4667, allocations: 163.7 kB / 0.7937 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005163/0.4718, allocations: 2.108 MB / 0.7957 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007904/0.4726, allocations: 103.5 kB / 0.7958 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.4727, allocations: 35.97 kB / 0.7959 GB, free: 5.43 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.0003362/0.473, allocations: 209.6 kB / 0.7961 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4732, allocations: 59.62 kB / 0.7961 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003668/0.4768, allocations: 1.078 MB / 0.7972 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.4768, allocations: 11.94 kB / 0.7972 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.4768, allocations: 4 kB / 0.7972 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.4769, allocations: 3.984 kB / 0.7972 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004463/0.4813, allocations: 1.805 MB / 0.799 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4813, allocations: 0 / 0.799 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008328/0.4822, allocations: 151.8 kB / 0.7991 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006398/0.4828, allocations: 124.7 kB / 0.7992 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.046e-05/0.4829, allocations: 23.98 kB / 0.7992 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004254/0.4871, allocations: 1.955 MB / 0.8011 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/0.4871, allocations: 3.984 kB / 0.8011 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/0.4905, allocations: 1.054 MB / 0.8022 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.4908, allocations: 212.5 kB / 0.8024 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.888e-05/0.4909, allocations: 16 kB / 0.8024 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006716/0.4915, allocations: 55.92 kB / 0.8025 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.4917, allocations: 56.58 kB / 0.8025 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.029e-05/0.4917, allocations: 23.98 kB / 0.8025 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003724/0.4921, allocations: 295.1 kB / 0.8028 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.4921, allocations: 0 / 0.8028 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008096/0.4929, allocations: 247.4 kB / 0.803 GB, free: 13.8 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.001663/0.4946, allocations: 0.4974 MB / 0.8035 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002437/0.497, allocations: 0.8671 MB / 0.8044 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.497, allocations: 8.062 kB / 0.8044 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001621/0.4987, allocations: 0.5489 MB / 0.8049 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.4992, allocations: 75.8 kB / 0.805 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.5018, allocations: 1.297 MB / 0.8063 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005638/0.5023, allocations: 0.8851 MB / 0.8071 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006044/0.5029, allocations: 144.5 kB / 0.8073 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.5032, allocations: 75.38 kB / 0.8073 GB, free: 9.465 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/0.5032, allocations: 0 / 0.8073 GB, free: 9.465 MB / 0.5762 GB Notification: Performance of Templates: time 0.02009/0.5233, allocations: 10.69 MB / 0.8178 GB, free: 14.85 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)