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.001044/0.001044, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 190.9 kB / 16.67 MB, free: 6.57 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.301/1.301, allocations: 222.9 MB / 240.3 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002037/0.002037, allocations: 274.6 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9401/0.9401, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 87.86 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1583, allocations: 86.97 MB / 0.7663 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004885/0.1632, allocations: 3.79 MB / 0.77 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004751/0.168, allocations: 3.464 MB / 0.7734 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003308/0.1684, allocations: 7.938 kB / 0.7734 GB, free: 1.156 MB / 0.5606 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.0004877/0.1689, allocations: 126.9 kB / 0.7735 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.1701, allocations: 465.4 kB / 0.774 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008046/0.1709, allocations: 366.8 kB / 0.7743 GB, free: 224 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3195/0.4904, allocations: 0.7663 MB / 0.7751 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.4909, allocations: 192.5 kB / 0.7753 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004682/0.4913, allocations: 317.4 kB / 0.7756 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004934/0.4918, allocations: 329.5 kB / 0.7759 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.492, allocations: 66.56 kB / 0.776 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.493, allocations: 0.4975 MB / 0.7764 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.4932, allocations: 172.3 kB / 0.7766 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003123/0.4935, allocations: 330 kB / 0.7769 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.4949, allocations: 1.113 MB / 0.778 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.4949, allocations: 1.688 kB / 0.778 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.824e-06/0.4949, allocations: 1.031 kB / 0.778 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.045e-05/0.4949, allocations: 0 / 0.778 GB, free: 9.008 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001787/0.4967, allocations: 1.046 MB / 0.779 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.4968, allocations: 9.406 kB / 0.779 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003382/0.5002, allocations: 0.6259 MB / 0.7796 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.5014, allocations: 0.6339 MB / 0.7803 GB, free: 8.023 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.5015, allocations: 115.9 kB / 0.7804 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-05/0.5016, allocations: 48.75 kB / 0.7804 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.5032, allocations: 0.721 MB / 0.7811 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.5032, allocations: 0 / 0.7811 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.916e-05/0.5033, allocations: 23.86 kB / 0.7812 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.5033, allocations: 15.44 kB / 0.7812 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.5053, allocations: 0.7741 MB / 0.7819 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.5087, allocations: 1.912 MB / 0.7838 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002881/0.5116, allocations: 0.8631 MB / 0.7846 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009543/0.5126, allocations: 386.6 kB / 0.785 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001358/0.514, allocations: 1.766 MB / 0.7867 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/0.515, allocations: 463.4 kB / 0.7872 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 3.035e-06/0.5151, allocations: 0 / 0.7872 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.006429/0.5215, allocations: 1.675 MB / 0.7888 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.5216, allocations: 109.1 kB / 0.7889 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005411/0.5221, allocations: 417.1 kB / 0.7893 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.356e-05/0.5222, allocations: 37.39 kB / 0.7893 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.5224, allocations: 281.9 kB / 0.7896 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.5225, allocations: 202.2 kB / 0.7898 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.5228, allocations: 122.2 kB / 0.7899 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.842e-05/0.5229, allocations: 371 kB / 0.7903 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008793/0.5238, allocations: 318 kB / 0.7906 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009488/0.5247, allocations: 446.7 kB / 0.791 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.5265, allocations: 0.7275 MB / 0.7917 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5265, allocations: 0 / 0.7917 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003533/0.5301, allocations: 1.074 MB / 0.7928 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.5301, allocations: 5.984 kB / 0.7928 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.5301, allocations: 8.438 kB / 0.7928 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007064/0.5308, allocations: 136.6 kB / 0.7929 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/0.5317, allocations: 170.6 kB / 0.7931 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004572/0.5362, allocations: 2.103 MB / 0.7951 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008862/0.5371, allocations: 100.4 kB / 0.7952 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.313e-05/0.5372, allocations: 35.89 kB / 0.7952 GB, free: 15.86 MB / 0.5762 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.0004041/0.5376, allocations: 215.3 kB / 0.7955 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.5378, allocations: 57.86 kB / 0.7955 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003515/0.5413, allocations: 1.089 MB / 0.7966 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.5413, allocations: 10.75 kB / 0.7966 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5413, allocations: 5.031 kB / 0.7966 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.5414, allocations: 3.609 kB / 0.7966 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004401/0.5458, allocations: 1.811 MB / 0.7984 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5458, allocations: 0 / 0.7984 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008595/0.5467, allocations: 152.3 kB / 0.7985 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006667/0.5473, allocations: 116 kB / 0.7986 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.19e-05/0.5474, allocations: 20.27 kB / 0.7986 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.5514, allocations: 1.964 MB / 0.8006 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.5514, allocations: 1 kB / 0.8006 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.5548, allocations: 1.056 MB / 0.8016 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003393/0.5551, allocations: 216.9 kB / 0.8018 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.5552, allocations: 12.67 kB / 0.8018 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006474/0.5559, allocations: 60.45 kB / 0.8019 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.556, allocations: 49.42 kB / 0.8019 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.698e-05/0.5561, allocations: 24.34 kB / 0.8019 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003903/0.5565, allocations: 298.7 kB / 0.8022 GB, free: 12 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5565, allocations: 1.094 kB / 0.8022 GB, free: 12 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009475/0.5575, allocations: 245.4 kB / 0.8025 GB, free: 11.93 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.001165/0.5586, allocations: 0.4989 MB / 0.8029 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002403/0.5611, allocations: 0.9019 MB / 0.8038 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5611, allocations: 0 / 0.8038 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.5627, allocations: 0.5834 MB / 0.8044 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/0.5632, allocations: 83.06 kB / 0.8045 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.5657, allocations: 1.297 MB / 0.8057 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.5662, allocations: 0.8876 MB / 0.8066 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006804/0.5669, allocations: 153.1 kB / 0.8067 GB, free: 9.699 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.5672, allocations: 68.23 kB / 0.8068 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of SimCode: time 6.71e-07/0.5672, allocations: 0 / 0.8068 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of Templates: time 0.01882/0.586, allocations: 10.64 MB / 0.8172 GB, free: 5.625 MB / 0.5762 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)