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.00113/0.00113, allocations: 110.5 kB / 16.41 MB, free: 6.492 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.001117/0.001117, allocations: 187 kB / 17.34 MB, free: 5.766 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.249/1.249, 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.002034/0.002034, allocations: 283.6 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.898/0.898, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 95.84 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3933, 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.005177/0.3986, allocations: 3.792 MB / 0.7707 GB, free: 128 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005288/0.4039, allocations: 3.458 MB / 0.7741 GB, free: 12.65 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006867/0.4046, allocations: 7.938 kB / 0.7741 GB, free: 12.64 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.0007091/0.4053, allocations: 118.9 kB / 0.7742 GB, free: 12.52 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.4067, allocations: 469.4 kB / 0.7747 GB, free: 12.06 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008758/0.4076, allocations: 362 kB / 0.775 GB, free: 11.71 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000951/0.4085, allocations: 0.7682 MB / 0.7758 GB, free: 10.94 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.4089, allocations: 209.9 kB / 0.776 GB, free: 10.73 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.4094, allocations: 314.8 kB / 0.7763 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005897/0.41, allocations: 330.6 kB / 0.7766 GB, free: 10.1 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.4102, allocations: 68 kB / 0.7766 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009847/0.4111, allocations: 0.4995 MB / 0.7771 GB, free: 9.535 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.4114, allocations: 175.4 kB / 0.7773 GB, free: 9.363 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00035/0.4117, allocations: 330.3 kB / 0.7776 GB, free: 9.039 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.4132, allocations: 1.101 MB / 0.7787 GB, free: 7.938 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4132, allocations: 0 / 0.7787 GB, free: 7.938 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.075e-05/0.4132, allocations: 4 kB / 0.7787 GB, free: 7.934 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.696e-05/0.4132, allocations: 0 / 0.7787 GB, free: 7.934 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.002233/0.4155, allocations: 1.022 MB / 0.7797 GB, free: 6.859 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.4155, allocations: 8.031 kB / 0.7797 GB, free: 6.852 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003485/0.419, allocations: 0.6244 MB / 0.7803 GB, free: 6.227 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.4205, allocations: 0.6273 MB / 0.7809 GB, free: 5.562 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.4206, allocations: 118.7 kB / 0.781 GB, free: 5.43 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.4208, allocations: 47.94 kB / 0.7811 GB, free: 5.383 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.4225, allocations: 0.719 MB / 0.7818 GB, free: 4.645 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.4225, allocations: 3.938 kB / 0.7818 GB, free: 4.641 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.4226, allocations: 24 kB / 0.7818 GB, free: 4.617 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.4226, allocations: 12 kB / 0.7818 GB, free: 4.605 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.4246, allocations: 0.7728 MB / 0.7826 GB, free: 3.828 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003496/0.4281, allocations: 1.919 MB / 0.7844 GB, free: 1.852 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.4309, allocations: 0.8689 MB / 0.7853 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009673/0.4319, allocations: 386.3 kB / 0.7857 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001774/0.4337, allocations: 1.765 MB / 0.7874 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.4348, allocations: 462.8 kB / 0.7878 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 2.965e-06/0.4349, allocations: 0 / 0.7878 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.006629/0.4415, allocations: 1.659 MB / 0.7894 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.4416, allocations: 115.4 kB / 0.7896 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/0.4423, allocations: 422.1 kB / 0.79 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.155e-05/0.4424, allocations: 33.7 kB / 0.79 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.4426, allocations: 284.6 kB / 0.7903 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.4428, allocations: 185.2 kB / 0.7904 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.443, allocations: 130.2 kB / 0.7906 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4432, allocations: 366.7 kB / 0.7909 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009051/0.4441, allocations: 317.1 kB / 0.7912 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009961/0.4451, allocations: 451.7 kB / 0.7916 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00185/0.447, allocations: 0.7323 MB / 0.7924 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.447, allocations: 0 / 0.7924 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00366/0.4507, allocations: 1.061 MB / 0.7934 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4507, allocations: 4.281 kB / 0.7934 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.4507, allocations: 8 kB / 0.7934 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007112/0.4514, allocations: 144.6 kB / 0.7935 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008272/0.4523, allocations: 163.7 kB / 0.7937 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00466/0.4569, allocations: 2.108 MB / 0.7958 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008476/0.4578, allocations: 103.4 kB / 0.7959 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.458, allocations: 31.97 kB / 0.7959 GB, free: 5.391 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.0003925/0.4584, allocations: 216 kB / 0.7961 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.4585, allocations: 55.28 kB / 0.7961 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/0.4619, allocations: 1.093 MB / 0.7972 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.462, allocations: 11.94 kB / 0.7972 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.462, allocations: 0 / 0.7972 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.462, allocations: 3.984 kB / 0.7972 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004095/0.4661, allocations: 1.797 MB / 0.799 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.4661, allocations: 0 / 0.799 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007692/0.4669, allocations: 151.8 kB / 0.7991 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005966/0.4675, allocations: 116.7 kB / 0.7992 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-05/0.4676, allocations: 27.97 kB / 0.7993 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003873/0.4715, allocations: 1.966 MB / 0.8012 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4715, allocations: 0 / 0.8012 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003145/0.4746, allocations: 1.042 MB / 0.8022 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.475, allocations: 216.1 kB / 0.8024 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.4751, allocations: 16 kB / 0.8024 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006556/0.4758, allocations: 63.92 kB / 0.8025 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.4759, allocations: 44.59 kB / 0.8025 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.304e-05/0.476, allocations: 27.97 kB / 0.8026 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003604/0.4764, allocations: 291.1 kB / 0.8028 GB, free: 14 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4764, allocations: 0 / 0.8028 GB, free: 14 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000789/0.4772, allocations: 243.6 kB / 0.8031 GB, free: 13.77 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.001197/0.4784, allocations: 0.5055 MB / 0.8036 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002309/0.4807, allocations: 0.8904 MB / 0.8044 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.4807, allocations: 4 kB / 0.8044 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.4823, allocations: 0.5842 MB / 0.805 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.4828, allocations: 65.89 kB / 0.8051 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.4854, allocations: 1.316 MB / 0.8064 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.4859, allocations: 0.8889 MB / 0.8072 GB, free: 9.562 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.4863, allocations: 83.38 kB / 0.8073 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of SimCode: time 2.184e-06/0.4863, allocations: 0 / 0.8073 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of Templates: time 0.01746/0.5037, allocations: 13.07 MB / 0.8201 GB, free: 12.45 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)