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.001262/0.001262, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.001243/0.001243, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.244/1.244, 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.002102/0.002101, allocations: 289.5 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.882/0.882, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 91.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3834, allocations: 86.98 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004598/0.388, allocations: 3.71 MB / 0.7706 GB, free: 200 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004376/0.3924, allocations: 3.435 MB / 0.774 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.3927, allocations: 7.938 kB / 0.774 GB, free: 12.73 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.000408/0.3931, allocations: 119 kB / 0.7741 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008989/0.394, allocations: 456.5 kB / 0.7745 GB, free: 12.17 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006534/0.3947, allocations: 377.1 kB / 0.7749 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006408/0.3953, allocations: 0.7565 MB / 0.7756 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.3956, allocations: 197.9 kB / 0.7758 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.3959, allocations: 314.9 kB / 0.7761 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003978/0.3963, allocations: 322.6 kB / 0.7764 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.841e-05/0.3965, allocations: 71.94 kB / 0.7765 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007389/0.3972, allocations: 0.4995 MB / 0.777 GB, free: 9.656 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.3974, allocations: 171.4 kB / 0.7772 GB, free: 9.488 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.3976, allocations: 314.4 kB / 0.7775 GB, free: 9.18 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.3987, allocations: 1.097 MB / 0.7785 GB, free: 8.082 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3987, allocations: 4 kB / 0.7785 GB, free: 8.078 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3987, allocations: 0 / 0.7785 GB, free: 8.078 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.715e-06/0.3988, allocations: 0 / 0.7785 GB, free: 8.078 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.001823/0.4006, allocations: 0.9953 MB / 0.7795 GB, free: 7.031 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.4006, allocations: 16.03 kB / 0.7795 GB, free: 7.016 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002929/0.4036, allocations: 0.5581 MB / 0.7801 GB, free: 6.457 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.4048, allocations: 0.6235 MB / 0.7807 GB, free: 5.797 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.405, allocations: 118.7 kB / 0.7808 GB, free: 5.664 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.324e-05/0.4051, allocations: 51.94 kB / 0.7808 GB, free: 5.613 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.4063, allocations: 0.6597 MB / 0.7815 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.4063, allocations: 4 kB / 0.7815 GB, free: 4.934 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.4064, allocations: 16 kB / 0.7815 GB, free: 4.918 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.4064, allocations: 15.98 kB / 0.7815 GB, free: 4.902 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.408, allocations: 0.7025 MB / 0.7822 GB, free: 4.195 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003091/0.4111, allocations: 1.758 MB / 0.7839 GB, free: 2.383 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.4136, allocations: 0.8011 MB / 0.7847 GB, free: 1.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007387/0.4143, allocations: 326 kB / 0.785 GB, free: 1.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00175/0.4161, allocations: 1.765 MB / 0.7867 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008195/0.4169, allocations: 401.1 kB / 0.7871 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.184e-06/0.4169, allocations: 0 / 0.7871 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002256/0.4192, allocations: 0.9161 MB / 0.788 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.144e-05/0.4193, allocations: 119.2 kB / 0.7881 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.4197, allocations: 423 kB / 0.7885 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/0.4198, allocations: 37.7 kB / 0.7886 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.42, allocations: 272.5 kB / 0.7888 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.4201, allocations: 177.5 kB / 0.789 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.4203, allocations: 126 kB / 0.7891 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.4205, allocations: 362.8 kB / 0.7895 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006627/0.4211, allocations: 272.9 kB / 0.7897 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007494/0.4219, allocations: 408.5 kB / 0.7901 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.4233, allocations: 0.6555 MB / 0.7908 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4233, allocations: 0 / 0.7908 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001698/0.425, allocations: 0.7599 MB / 0.7915 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.425, allocations: 8 kB / 0.7915 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.4251, allocations: 4 kB / 0.7915 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4251, allocations: 4.219 kB / 0.7915 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/0.4266, allocations: 247.7 kB / 0.7917 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.4283, allocations: 1.613 MB / 0.7933 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006655/0.429, allocations: 79.47 kB / 0.7934 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.429, allocations: 27.98 kB / 0.7934 GB, free: 7.93 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.0002975/0.4293, allocations: 212.9 kB / 0.7936 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.4294, allocations: 51.34 kB / 0.7937 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.4318, allocations: 0.9269 MB / 0.7946 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.4318, allocations: 8 kB / 0.7946 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4318, allocations: 3.984 kB / 0.7946 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.4318, allocations: 0 / 0.7946 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.4348, allocations: 1.623 MB / 0.7962 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4348, allocations: 4 kB / 0.7962 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007123/0.4355, allocations: 139.8 kB / 0.7963 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000427/0.436, allocations: 64.75 kB / 0.7964 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.277e-05/0.436, allocations: 15.98 kB / 0.7964 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.4376, allocations: 1.576 MB / 0.7979 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4376, allocations: 3.938 kB / 0.7979 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.4397, allocations: 0.8995 MB / 0.7988 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/0.44, allocations: 216 kB / 0.799 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.949e-05/0.4401, allocations: 19.98 kB / 0.799 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006564/0.4407, allocations: 47.94 kB / 0.7991 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4409, allocations: 52.44 kB / 0.7991 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.243e-05/0.4409, allocations: 19.98 kB / 0.7992 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003417/0.4413, allocations: 287.1 kB / 0.7994 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/0.4413, allocations: 0 / 0.7994 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008656/0.4421, allocations: 239.7 kB / 0.7997 GB, free: 1.281 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.001709/0.4439, allocations: 0.4925 MB / 0.8001 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002645/0.4465, allocations: 0.7574 MB / 0.8009 GB, free: 172 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4465, allocations: 0 / 0.8009 GB, free: 172 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.4476, allocations: 0.4903 MB / 0.8014 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005004/0.4481, allocations: 70.66 kB / 0.8014 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.4506, allocations: 1.244 MB / 0.8026 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.4512, allocations: 0.881 MB / 0.8035 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.4515, allocations: 83.38 kB / 0.8036 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of SimCode: time 4.1e-07/0.4515, allocations: 0 / 0.8036 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of Templates: time 0.01942/0.4709, allocations: 12.27 MB / 0.8156 GB, free: 1.082 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)