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.001338/0.001338, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001547/0.001547, allocations: 191.8 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.396/1.396, 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.00258/0.00258, allocations: 290.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9981/0.9981, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 95.84 kB / 0.6821 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4093, allocations: 86.98 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005247/0.4145, allocations: 3.706 MB / 0.7706 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005105/0.4196, allocations: 3.454 MB / 0.774 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.4198, allocations: 7.938 kB / 0.774 GB, free: 12.74 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.0004376/0.4203, allocations: 126.1 kB / 0.7741 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001006/0.4213, allocations: 457.5 kB / 0.7746 GB, free: 12.17 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007255/0.422, allocations: 370.1 kB / 0.7749 GB, free: 11.81 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008087/0.4228, allocations: 0.7644 MB / 0.7757 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.423, allocations: 134 kB / 0.7758 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000394/0.4234, allocations: 318.9 kB / 0.7761 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.4239, allocations: 322.6 kB / 0.7764 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.842e-05/0.424, allocations: 71.94 kB / 0.7765 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008087/0.4248, allocations: 0.4956 MB / 0.777 GB, free: 9.715 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.425, allocations: 171.4 kB / 0.7771 GB, free: 9.547 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.4253, allocations: 326.3 kB / 0.7774 GB, free: 9.227 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.4266, allocations: 1.095 MB / 0.7785 GB, free: 8.133 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4267, allocations: 4 kB / 0.7785 GB, free: 8.129 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4267, allocations: 0 / 0.7785 GB, free: 8.129 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.352e-05/0.4267, allocations: 0 / 0.7785 GB, free: 8.129 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.002053/0.4287, allocations: 1.013 MB / 0.7795 GB, free: 7.062 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.4288, allocations: 12.02 kB / 0.7795 GB, free: 7.051 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00332/0.4321, allocations: 0.5624 MB / 0.7801 GB, free: 6.488 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.4335, allocations: 0.6277 MB / 0.7807 GB, free: 5.824 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.4337, allocations: 122.7 kB / 0.7808 GB, free: 5.688 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.4338, allocations: 51.94 kB / 0.7808 GB, free: 5.637 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.4352, allocations: 0.6635 MB / 0.7815 GB, free: 4.957 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.4353, allocations: 0 / 0.7815 GB, free: 4.957 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.648e-05/0.4353, allocations: 20 kB / 0.7815 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.4353, allocations: 12 kB / 0.7815 GB, free: 4.926 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.4372, allocations: 0.6947 MB / 0.7822 GB, free: 4.227 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003492/0.4406, allocations: 1.77 MB / 0.7839 GB, free: 2.402 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002799/0.4434, allocations: 0.7721 MB / 0.7847 GB, free: 1.621 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008321/0.4443, allocations: 306 kB / 0.785 GB, free: 1.32 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002045/0.4463, allocations: 1.769 MB / 0.7867 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009493/0.4473, allocations: 389.2 kB / 0.7871 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.154e-06/0.4473, allocations: 0 / 0.7871 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002591/0.4499, allocations: 0.9358 MB / 0.788 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.4499, allocations: 115.2 kB / 0.7881 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005082/0.4505, allocations: 419.2 kB / 0.7885 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.817e-05/0.4505, allocations: 37.7 kB / 0.7885 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/0.4508, allocations: 281 kB / 0.7888 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.4509, allocations: 186.4 kB / 0.789 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.4511, allocations: 114.2 kB / 0.7891 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001849/0.4513, allocations: 358.8 kB / 0.7894 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007872/0.4521, allocations: 276.9 kB / 0.7897 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009025/0.453, allocations: 412.6 kB / 0.7901 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/0.4547, allocations: 0.6593 MB / 0.7907 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4547, allocations: 0 / 0.7907 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001963/0.4566, allocations: 0.7641 MB / 0.7915 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4566, allocations: 8 kB / 0.7915 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.4567, allocations: 4 kB / 0.7915 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.4567, allocations: 4 kB / 0.7915 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/0.4583, allocations: 255.7 kB / 0.7917 GB, free: 9.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.4602, allocations: 1.582 MB / 0.7933 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006694/0.4608, allocations: 99.59 kB / 0.7934 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/0.4609, allocations: 27.97 kB / 0.7934 GB, free: 7.984 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.000301/0.4612, allocations: 205.6 kB / 0.7936 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4613, allocations: 55.62 kB / 0.7937 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002699/0.464, allocations: 0.9192 MB / 0.7946 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.464, allocations: 7.938 kB / 0.7946 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.464, allocations: 8 kB / 0.7946 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.4641, allocations: 3.984 kB / 0.7946 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.4674, allocations: 1.615 MB / 0.7961 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.4674, allocations: 7.938 kB / 0.7962 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.4682, allocations: 143.8 kB / 0.7963 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004502/0.4687, allocations: 60.8 kB / 0.7963 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/0.4687, allocations: 19.98 kB / 0.7964 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.4705, allocations: 1.58 MB / 0.7979 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4705, allocations: 3.938 kB / 0.7979 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.4728, allocations: 0.8999 MB / 0.7988 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.4731, allocations: 208.5 kB / 0.799 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.068e-05/0.4732, allocations: 8 kB / 0.799 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006268/0.4738, allocations: 62.28 kB / 0.7991 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.4739, allocations: 44.5 kB / 0.7991 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.474, allocations: 27.97 kB / 0.7991 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003584/0.4743, allocations: 291.1 kB / 0.7994 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.4743, allocations: 0 / 0.7994 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007893/0.4751, allocations: 235.4 kB / 0.7996 GB, free: 1.34 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.001677/0.4768, allocations: 0.5024 MB / 0.8001 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002639/0.4794, allocations: 0.7417 MB / 0.8008 GB, free: 240 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.4794, allocations: 4.438 kB / 0.8009 GB, free: 236 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.4806, allocations: 473.6 kB / 0.8013 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.481, allocations: 65.7 kB / 0.8014 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.4834, allocations: 1.218 MB / 0.8026 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005505/0.484, allocations: 0.8849 MB / 0.8034 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005836/0.4845, allocations: 152.4 kB / 0.8036 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.4848, allocations: 71.39 kB / 0.8036 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of SimCode: time 4.51e-07/0.4848, allocations: 0 / 0.8036 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of Templates: time 0.01745/0.5022, allocations: 8.852 MB / 0.8123 GB, free: 4.52 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)