Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 109 kB / 16.41 MB, free: 6.496 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.00136/0.00136, allocations: 187 kB / 17.34 MB, free: 5.762 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.283/1.283, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 290 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8878/0.8878, allocations: 169.3 MB / 0.499 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 96.28 kB / 0.6821 GB, free: 7.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.383, allocations: 86.98 MB / 0.767 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005493/0.3886, allocations: 3.71 MB / 0.7706 GB, free: 240 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005415/0.394, allocations: 3.434 MB / 0.774 GB, free: 12.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006158/0.3946, allocations: 7.938 kB / 0.774 GB, free: 12.77 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.000706/0.3954, allocations: 122.9 kB / 0.7741 GB, free: 12.65 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.3971, allocations: 453.5 kB / 0.7745 GB, free: 12.21 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.3981, allocations: 365.3 kB / 0.7749 GB, free: 11.85 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001096/0.3992, allocations: 0.7682 MB / 0.7756 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.3995, allocations: 197.8 kB / 0.7758 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004777/0.4, allocations: 314.9 kB / 0.7761 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005536/0.4006, allocations: 322.7 kB / 0.7764 GB, free: 10.26 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.4008, allocations: 64 kB / 0.7765 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008594/0.4016, allocations: 0.5072 MB / 0.777 GB, free: 9.691 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.4018, allocations: 167.4 kB / 0.7772 GB, free: 9.527 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.4021, allocations: 318.4 kB / 0.7775 GB, free: 9.215 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.4034, allocations: 1.101 MB / 0.7785 GB, free: 8.113 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4034, allocations: 0 / 0.7785 GB, free: 8.113 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4034, allocations: 0 / 0.7785 GB, free: 8.113 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.882e-05/0.4034, allocations: 0 / 0.7785 GB, free: 8.113 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00198/0.4054, allocations: 0.9954 MB / 0.7795 GB, free: 7.066 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.4055, allocations: 8.031 kB / 0.7795 GB, free: 7.059 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/0.4086, allocations: 0.5581 MB / 0.7801 GB, free: 6.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.4099, allocations: 0.6235 MB / 0.7807 GB, free: 5.84 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.41, allocations: 122.7 kB / 0.7808 GB, free: 5.703 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.15e-05/0.4101, allocations: 47.94 kB / 0.7808 GB, free: 5.656 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.4114, allocations: 0.6714 MB / 0.7815 GB, free: 4.969 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.4114, allocations: 0 / 0.7815 GB, free: 4.969 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.4115, allocations: 20 kB / 0.7815 GB, free: 4.949 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.4115, allocations: 12 kB / 0.7815 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.4131, allocations: 0.6908 MB / 0.7822 GB, free: 4.242 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003199/0.4163, allocations: 1.769 MB / 0.7839 GB, free: 2.418 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.4189, allocations: 0.7995 MB / 0.7847 GB, free: 1.609 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007876/0.4197, allocations: 326 kB / 0.785 GB, free: 1.289 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001752/0.4215, allocations: 1.773 MB / 0.7867 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008537/0.4223, allocations: 393.2 kB / 0.7871 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.355e-06/0.4223, allocations: 0 / 0.7871 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002326/0.4247, allocations: 0.9239 MB / 0.788 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/0.4247, allocations: 107.2 kB / 0.7881 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.4252, allocations: 431 kB / 0.7885 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.4253, allocations: 37.64 kB / 0.7886 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.4255, allocations: 272.5 kB / 0.7888 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.4256, allocations: 177.5 kB / 0.789 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/0.4258, allocations: 122.1 kB / 0.7891 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.426, allocations: 362.7 kB / 0.7895 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006829/0.4266, allocations: 276.9 kB / 0.7897 GB, free: 12 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007973/0.4275, allocations: 404.6 kB / 0.7901 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.4289, allocations: 0.6594 MB / 0.7908 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.4289, allocations: 0 / 0.7908 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00179/0.4307, allocations: 0.7601 MB / 0.7915 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.4308, allocations: 8 kB / 0.7915 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.4308, allocations: 7.938 kB / 0.7915 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.4308, allocations: 8 kB / 0.7915 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.4323, allocations: 247.7 kB / 0.7918 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.434, allocations: 1.593 MB / 0.7933 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006443/0.4346, allocations: 83.58 kB / 0.7934 GB, free: 8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/0.4347, allocations: 31.97 kB / 0.7934 GB, free: 7.969 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003006/0.435, allocations: 205.6 kB / 0.7936 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.4352, allocations: 51.34 kB / 0.7937 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.4376, allocations: 0.9307 MB / 0.7946 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4376, allocations: 8 kB / 0.7946 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4376, allocations: 4 kB / 0.7946 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.4376, allocations: 3.984 kB / 0.7946 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.4406, allocations: 1.623 MB / 0.7962 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4407, allocations: 0 / 0.7962 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006929/0.4414, allocations: 147.8 kB / 0.7963 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003957/0.4418, allocations: 52.81 kB / 0.7964 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.4418, allocations: 15.98 kB / 0.7964 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.4433, allocations: 1.58 MB / 0.7979 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4433, allocations: 7.969 kB / 0.7979 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.4454, allocations: 0.8956 MB / 0.7988 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.4457, allocations: 220 kB / 0.799 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.4458, allocations: 15.98 kB / 0.799 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005617/0.4464, allocations: 47.94 kB / 0.7991 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.964e-05/0.4465, allocations: 48.5 kB / 0.7991 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/0.4465, allocations: 23.98 kB / 0.7991 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003508/0.4469, allocations: 291.1 kB / 0.7994 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4469, allocations: 0 / 0.7994 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007568/0.4477, allocations: 231.7 kB / 0.7996 GB, free: 1.324 MB / 0.5606 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 (66): * Single equations (assignments): 64 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001207/0.4489, allocations: 0.4988 MB / 0.8001 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002416/0.4513, allocations: 0.7612 MB / 0.8009 GB, free: 208 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4513, allocations: 448 / 0.8009 GB, free: 208 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.4523, allocations: 497.7 kB / 0.8014 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.4528, allocations: 74.98 kB / 0.8014 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.455, allocations: 1.236 MB / 0.8026 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.4554, allocations: 0.8849 MB / 0.8035 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.4558, allocations: 83.31 kB / 0.8036 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/0.4558, allocations: 0 / 0.8036 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of Templates: time 0.01557/0.4713, allocations: 12.26 MB / 0.8155 GB, free: 1.129 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)