Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7726/0.7726, allocations: 143.4 MB / 159.2 MB, free: 4.848 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 187.3 kB / 191.9 MB, free: 5.711 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 222.9 MB / 447.3 MB, free: 5.852 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 103.5 kB / 0.517 GB, free: 3.703 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001857/0.001857, allocations: 278.9 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 79.88 kB / 0.6885 GB, free: 3.832 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3276, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.003867/0.3315, allocations: 3.747 MB / 0.7716 GB, free: 23.9 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.003807/0.3354, allocations: 3.439 MB / 0.7749 GB, free: 20.45 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003345/0.3357, allocations: 11.88 kB / 0.775 GB, free: 20.44 MB / 458.7 MB [/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.0004392/0.3362, allocations: 96.88 kB / 0.775 GB, free: 20.34 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000854/0.3371, allocations: 378.2 kB / 0.7754 GB, free: 19.97 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005654/0.3377, allocations: 314.3 kB / 0.7757 GB, free: 19.67 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.3381, allocations: 0.6824 MB / 0.7764 GB, free: 18.98 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.3384, allocations: 201.5 kB / 0.7766 GB, free: 18.78 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.3386, allocations: 274.7 kB / 0.7768 GB, free: 18.51 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003054/0.3389, allocations: 294.6 kB / 0.7771 GB, free: 18.22 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.339, allocations: 28 kB / 0.7771 GB, free: 18.2 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007291/0.3397, allocations: 479.4 kB / 0.7776 GB, free: 17.73 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.3399, allocations: 135.5 kB / 0.7777 GB, free: 17.59 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.3401, allocations: 286.3 kB / 0.778 GB, free: 17.31 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007605/0.3408, allocations: 1.032 MB / 0.779 GB, free: 16.28 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3408, allocations: 3.938 kB / 0.779 GB, free: 16.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3409, allocations: 0 / 0.779 GB, free: 16.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.3409, allocations: 0 / 0.779 GB, free: 16.27 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001738/0.3426, allocations: 0.9836 MB / 0.78 GB, free: 15.24 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3427, allocations: 8.031 kB / 0.78 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003313/0.346, allocations: 0.6166 MB / 0.7806 GB, free: 14.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.3472, allocations: 0.6274 MB / 0.7812 GB, free: 13.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.144e-05/0.3473, allocations: 122.7 kB / 0.7813 GB, free: 13.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.192e-05/0.3474, allocations: 43.94 kB / 0.7813 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.3486, allocations: 0.6908 MB / 0.782 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3486, allocations: 0 / 0.782 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.464e-05/0.3487, allocations: 16 kB / 0.782 GB, free: 13.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.3487, allocations: 19.98 kB / 0.7821 GB, free: 13.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.3504, allocations: 0.7494 MB / 0.7828 GB, free: 12.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002849/0.3533, allocations: 1.798 MB / 0.7845 GB, free: 10.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.3558, allocations: 0.8496 MB / 0.7854 GB, free: 9.555 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008098/0.3567, allocations: 358 kB / 0.7857 GB, free: 9.203 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001298/0.358, allocations: 1.765 MB / 0.7874 GB, free: 7.051 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009081/0.3589, allocations: 433 kB / 0.7878 GB, free: 6.613 MB / 458.7 MB Notification: Performance of pre-optimization done (n=53): time 2.735e-06/0.3589, allocations: 3.938 kB / 0.7879 GB, free: 6.609 MB / 458.7 MB Notification: Performance of matching and sorting (n=53): time 0.002537/0.3614, allocations: 1.006 MB / 0.7888 GB, free: 5.598 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3615, allocations: 111.2 kB / 0.7889 GB, free: 5.465 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.3619, allocations: 434.1 kB / 0.7894 GB, free: 5.039 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.3619, allocations: 37.7 kB / 0.7894 GB, free: 4.996 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.362, allocations: 268.6 kB / 0.7896 GB, free: 4.727 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.3621, allocations: 177.5 kB / 0.7898 GB, free: 4.551 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001777/0.3623, allocations: 126 kB / 0.7899 GB, free: 4.422 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.549e-05/0.3624, allocations: 362.7 kB / 0.7903 GB, free: 4.059 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000767/0.3632, allocations: 304.9 kB / 0.7906 GB, free: 3.762 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008169/0.364, allocations: 436.5 kB / 0.791 GB, free: 3.285 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.3656, allocations: 0.7023 MB / 0.7917 GB, free: 2.543 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3656, allocations: 4 kB / 0.7917 GB, free: 2.539 MB / 458.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001815/0.3674, allocations: 0.8183 MB / 0.7925 GB, free: 1.715 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3674, allocations: 8 kB / 0.7925 GB, free: 1.707 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3674, allocations: 0 / 0.7925 GB, free: 1.707 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3675, allocations: 8 kB / 0.7925 GB, free: 1.699 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000813/0.3683, allocations: 179.9 kB / 0.7927 GB, free: 1.523 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3683, allocations: 8 kB / 0.7927 GB, free: 1.516 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.3689, allocations: 111.2 kB / 0.7928 GB, free: 1.406 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.369, allocations: 31.97 kB / 0.7928 GB, free: 1.375 MB / 458.7 MB 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): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002349/0.3693, allocations: 209.7 kB / 0.793 GB, free: 1.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.977e-05/0.3694, allocations: 51.34 kB / 0.7931 GB, free: 1.109 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.3714, allocations: 0.891 MB / 0.7939 GB, free: 212 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3714, allocations: 11.94 kB / 0.7939 GB, free: 200 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.3714, allocations: 4 kB / 0.7939 GB, free: 196 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3714, allocations: 7.922 kB / 0.794 GB, free: 188 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.3743, allocations: 1.559 MB / 0.7955 GB, free: 14.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3744, allocations: 7.938 kB / 0.7955 GB, free: 14.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.3752, allocations: 151.8 kB / 0.7956 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.3752, allocations: 4 kB / 0.7956 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.225e-05/0.3752, allocations: 19.92 kB / 0.7956 GB, free: 14.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.3753, allocations: 4 kB / 0.7957 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3753, allocations: 0 / 0.7957 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003269/0.3785, allocations: 1.885 MB / 0.7975 GB, free: 12.44 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.3788, allocations: 204.2 kB / 0.7977 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.317e-05/0.3789, allocations: 12 kB / 0.7977 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.3795, allocations: 71.83 kB / 0.7978 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.444e-05/0.3796, allocations: 36.52 kB / 0.7978 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.779e-05/0.3797, allocations: 23.98 kB / 0.7978 GB, free: 12.08 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003162/0.38, allocations: 299.1 kB / 0.7981 GB, free: 11.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.38, allocations: 0 / 0.7981 GB, free: 11.79 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007722/0.3808, allocations: 227.8 kB / 0.7983 GB, free: 11.57 MB / 474.7 MB 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): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/0.3819, allocations: 0.4953 MB / 0.7988 GB, free: 11.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.3838, allocations: 0.7223 MB / 0.7995 GB, free: 10.49 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3838, allocations: 0 / 0.7995 GB, free: 10.49 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009029/0.3847, allocations: 391.3 kB / 0.7999 GB, free: 10.11 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.3852, allocations: 74.27 kB / 0.8 GB, free: 10.05 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.3878, allocations: 1.796 MB / 0.8017 GB, free: 8.211 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.3882, allocations: 0.8931 MB / 0.8026 GB, free: 7.293 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007635/0.389, allocations: 160.4 kB / 0.8027 GB, free: 7.133 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.3893, allocations: 71.38 kB / 0.8028 GB, free: 7.062 MB / 474.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3893, allocations: 0 / 0.8028 GB, free: 7.062 MB / 474.7 MB Notification: Performance of Templates: time 0.0144/0.4037, allocations: 8.536 MB / 0.8111 GB, free: 14.56 MB / 490.7 MB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)