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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 109.4 kB / 16.37 MB, free: 6.477 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.001215/0.001215, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.241/1.241, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00211/0.00211, allocations: 286.7 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8921/0.8921, allocations: 169.3 MB / 0.4989 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 90.33 kB / 0.5967 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1486, allocations: 86.97 MB / 0.6816 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004975/0.1536, allocations: 3.745 MB / 0.6853 GB, free: 3.727 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004617/0.1582, allocations: 3.427 MB / 0.6886 GB, free: 288 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003163/0.1586, allocations: 7.938 kB / 0.6886 GB, free: 280 kB / 494.1 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.0004499/0.1591, allocations: 130.9 kB / 0.6887 GB, free: 148 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2451/0.4042, allocations: 451.1 kB / 0.6892 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008952/0.4051, allocations: 357.6 kB / 0.6895 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009474/0.4061, allocations: 0.7502 MB / 0.6902 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003229/0.4064, allocations: 197.7 kB / 0.6904 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.4069, allocations: 309.4 kB / 0.6907 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005421/0.4075, allocations: 313.9 kB / 0.691 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.4076, allocations: 64.34 kB / 0.6911 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009299/0.4086, allocations: 0.4983 MB / 0.6916 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.4088, allocations: 165.8 kB / 0.6917 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003524/0.4091, allocations: 321.6 kB / 0.692 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.4105, allocations: 1.091 MB / 0.6931 GB, free: 12.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4106, allocations: 1.375 kB / 0.6931 GB, free: 12.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4106, allocations: 0 / 0.6931 GB, free: 12.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.4106, allocations: 3.875 kB / 0.6931 GB, free: 12.25 MB / 494.1 MB 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.002086/0.4127, allocations: 0.9914 MB / 0.6941 GB, free: 11.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.4127, allocations: 10 kB / 0.6941 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00359/0.4163, allocations: 0.6167 MB / 0.6947 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.4178, allocations: 0.63 MB / 0.6953 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.4179, allocations: 124.2 kB / 0.6954 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-05/0.418, allocations: 41.06 kB / 0.6955 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.4196, allocations: 0.7038 MB / 0.6961 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.4196, allocations: 0 / 0.6961 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.139e-05/0.4197, allocations: 21.97 kB / 0.6962 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.4197, allocations: 12.12 kB / 0.6962 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.4216, allocations: 0.7557 MB / 0.6969 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003319/0.425, allocations: 1.798 MB / 0.6987 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002737/0.4277, allocations: 0.8448 MB / 0.6995 GB, free: 9.715 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009665/0.4287, allocations: 355.1 kB / 0.6998 GB, free: 9.598 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001556/0.4303, allocations: 1.765 MB / 0.7016 GB, free: 7.613 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.4314, allocations: 429.8 kB / 0.702 GB, free: 7.457 MB / 494.1 MB Notification: Performance of pre-optimization done (n=53): time 1.924e-06/0.4314, allocations: 0 / 0.702 GB, free: 7.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=53): time 0.002946/0.4344, allocations: 1.01 MB / 0.703 GB, free: 7.113 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.4344, allocations: 109.2 kB / 0.7031 GB, free: 6.988 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005088/0.4349, allocations: 428.5 kB / 0.7035 GB, free: 6.785 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.435, allocations: 35.58 kB / 0.7035 GB, free: 6.746 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.4352, allocations: 284.9 kB / 0.7038 GB, free: 6.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.4353, allocations: 180.6 kB / 0.7039 GB, free: 6.375 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.4355, allocations: 120.6 kB / 0.7041 GB, free: 6.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.918e-05/0.4356, allocations: 363.1 kB / 0.7044 GB, free: 5.984 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008638/0.4365, allocations: 301.9 kB / 0.7047 GB, free: 5.891 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009087/0.4374, allocations: 444.8 kB / 0.7051 GB, free: 5.652 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.439, allocations: 0.6999 MB / 0.7058 GB, free: 5.316 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4391, allocations: 1.531 kB / 0.7058 GB, free: 5.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002001/0.4411, allocations: 0.811 MB / 0.7066 GB, free: 5.039 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.4411, allocations: 9.938 kB / 0.7066 GB, free: 5.039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4411, allocations: 3.594 kB / 0.7066 GB, free: 5.039 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.4411, allocations: 6.625 kB / 0.7066 GB, free: 5.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008748/0.442, allocations: 176 kB / 0.7068 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.442, allocations: 11.52 kB / 0.7068 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006719/0.4427, allocations: 108 kB / 0.7069 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-05/0.4428, allocations: 30.19 kB / 0.7069 GB, free: 4.98 MB / 494.1 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.0002432/0.443, allocations: 205.3 kB / 0.7071 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.4432, allocations: 53.36 kB / 0.7072 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.4455, allocations: 0.8869 MB / 0.708 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.4455, allocations: 7.312 kB / 0.708 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4455, allocations: 8.453 kB / 0.708 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.4455, allocations: 7.828 kB / 0.7081 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.4484, allocations: 1.579 MB / 0.7096 GB, free: 3.672 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4484, allocations: 0 / 0.7096 GB, free: 3.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008184/0.4492, allocations: 149.4 kB / 0.7097 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.4492, allocations: 3 kB / 0.7097 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.733e-05/0.4493, allocations: 21.75 kB / 0.7098 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.4493, allocations: 3.406 kB / 0.7098 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4493, allocations: 4.219 kB / 0.7098 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.4511, allocations: 0.8569 MB / 0.7106 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002507/0.4513, allocations: 205.7 kB / 0.7108 GB, free: 3.098 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.714e-05/0.4514, allocations: 18.91 kB / 0.7108 GB, free: 3.082 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005726/0.452, allocations: 60.66 kB / 0.7109 GB, free: 3.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.4521, allocations: 38.84 kB / 0.7109 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-05/0.4522, allocations: 21.94 kB / 0.7109 GB, free: 3.062 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.4525, allocations: 298.9 kB / 0.7112 GB, free: 2.918 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4525, allocations: 0 / 0.7112 GB, free: 2.918 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007223/0.4532, allocations: 238.7 kB / 0.7115 GB, free: 2.848 MB / 494.1 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.001011/0.4542, allocations: 0.4983 MB / 0.7119 GB, free: 2.645 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.456, allocations: 0.7234 MB / 0.7126 GB, free: 2.441 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.456, allocations: 1.188 kB / 0.7126 GB, free: 2.441 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008585/0.4569, allocations: 388.7 kB / 0.713 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.4574, allocations: 68.3 kB / 0.7131 GB, free: 2.301 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.4594, allocations: 1.212 MB / 0.7143 GB, free: 1.703 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.4598, allocations: 0.8831 MB / 0.7151 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000564/0.4603, allocations: 152.9 kB / 0.7153 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.4606, allocations: 71.12 kB / 0.7153 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4606, allocations: 0 / 0.7153 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of Templates: time 0.01364/0.4743, allocations: 8.588 MB / 0.7237 GB, free: 13.29 MB / 0.4981 GB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)