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.001377/0.001377, allocations: 107.1 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.001251/0.001251, allocations: 185.2 kB / 17.34 MB, free: 5.73 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.383/1.383, 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.002546/0.002546, allocations: 283.6 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.9928/0.9928, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002834/0.002834, allocations: 99.84 kB / 0.6821 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4024, allocations: 86.97 MB / 0.767 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005627/0.4081, allocations: 3.757 MB / 0.7707 GB, free: 192 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005724/0.4138, allocations: 3.438 MB / 0.774 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.4141, allocations: 11.88 kB / 0.7741 GB, free: 12.72 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.0004906/0.4146, allocations: 126.9 kB / 0.7742 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001185/0.4158, allocations: 461.5 kB / 0.7746 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008232/0.4166, allocations: 358 kB / 0.775 GB, free: 11.79 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008602/0.4175, allocations: 0.7449 MB / 0.7757 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002615/0.4177, allocations: 134 kB / 0.7758 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/0.4181, allocations: 306.9 kB / 0.7761 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004837/0.4186, allocations: 334.5 kB / 0.7764 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.4187, allocations: 64 kB / 0.7765 GB, free: 10.22 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008668/0.4196, allocations: 0.4995 MB / 0.777 GB, free: 9.723 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001838/0.4198, allocations: 167.4 kB / 0.7771 GB, free: 9.559 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003293/0.4201, allocations: 326.2 kB / 0.7774 GB, free: 9.238 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.4217, allocations: 1.091 MB / 0.7785 GB, free: 8.148 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4217, allocations: 0 / 0.7785 GB, free: 8.148 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4217, allocations: 0 / 0.7785 GB, free: 8.148 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.4217, allocations: 0 / 0.7785 GB, free: 8.148 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.002059/0.4237, allocations: 1.021 MB / 0.7795 GB, free: 7.074 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.4238, allocations: 12.03 kB / 0.7795 GB, free: 7.062 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003784/0.4276, allocations: 0.6209 MB / 0.7801 GB, free: 6.441 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.4291, allocations: 0.6238 MB / 0.7807 GB, free: 5.781 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.4292, allocations: 118.7 kB / 0.7808 GB, free: 5.648 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.4293, allocations: 59.92 kB / 0.7809 GB, free: 5.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.431, allocations: 0.6947 MB / 0.7816 GB, free: 4.879 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.431, allocations: 0 / 0.7816 GB, free: 4.879 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.419e-05/0.4311, allocations: 20 kB / 0.7816 GB, free: 4.859 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.4311, allocations: 12 kB / 0.7816 GB, free: 4.848 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.4333, allocations: 0.7533 MB / 0.7823 GB, free: 4.09 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.4371, allocations: 1.813 MB / 0.7841 GB, free: 2.223 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/0.4402, allocations: 0.8011 MB / 0.7849 GB, free: 1.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.4412, allocations: 333.9 kB / 0.7852 GB, free: 1.082 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002124/0.4434, allocations: 1.765 MB / 0.7869 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.4445, allocations: 429.1 kB / 0.7874 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.384e-06/0.4445, allocations: 4 kB / 0.7874 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.003175/0.4477, allocations: 1.01 MB / 0.7883 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.4478, allocations: 111.2 kB / 0.7884 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005571/0.4483, allocations: 443 kB / 0.7889 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.592e-05/0.4484, allocations: 33.7 kB / 0.7889 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.4486, allocations: 281.1 kB / 0.7892 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.4488, allocations: 186.4 kB / 0.7893 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/0.4491, allocations: 126.1 kB / 0.7895 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001911/0.4493, allocations: 358.8 kB / 0.7898 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009453/0.4502, allocations: 300.9 kB / 0.7901 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.4513, allocations: 440.4 kB / 0.7905 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.4533, allocations: 0.7023 MB / 0.7912 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4533, allocations: 7.938 kB / 0.7912 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002347/0.4556, allocations: 0.8224 MB / 0.792 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4556, allocations: 10.34 kB / 0.792 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.4556, allocations: 4 kB / 0.792 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.4557, allocations: 8.219 kB / 0.792 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009932/0.4566, allocations: 171.7 kB / 0.7922 GB, free: 9.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.4567, allocations: 11.94 kB / 0.7922 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007415/0.4574, allocations: 111.5 kB / 0.7923 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.315e-05/0.4575, allocations: 27.97 kB / 0.7923 GB, free: 9.219 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): 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.0003187/0.4578, allocations: 204.8 kB / 0.7925 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.4579, allocations: 51.67 kB / 0.7926 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.4605, allocations: 0.891 MB / 0.7935 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.4605, allocations: 8 kB / 0.7935 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.4605, allocations: 11.88 kB / 0.7935 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.4605, allocations: 3.984 kB / 0.7935 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003251/0.4637, allocations: 1.571 MB / 0.795 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4637, allocations: 4 kB / 0.795 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008649/0.4646, allocations: 147.8 kB / 0.7952 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.4646, allocations: 7.938 kB / 0.7952 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.4647, allocations: 15.98 kB / 0.7952 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.4647, allocations: 4 kB / 0.7952 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4647, allocations: 0 / 0.7952 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.4668, allocations: 0.856 MB / 0.796 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003216/0.4671, allocations: 216.4 kB / 0.7962 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.902e-05/0.4672, allocations: 15.94 kB / 0.7962 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.4678, allocations: 59.88 kB / 0.7963 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.929e-05/0.4679, allocations: 40.5 kB / 0.7963 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.762e-05/0.468, allocations: 23.98 kB / 0.7964 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000371/0.4683, allocations: 299.1 kB / 0.7966 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4683, allocations: 4 kB / 0.7967 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007497/0.4691, allocations: 227.5 kB / 0.7969 GB, free: 4.48 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): 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.001648/0.4707, allocations: 0.4949 MB / 0.7974 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002121/0.4729, allocations: 0.7027 MB / 0.798 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4729, allocations: 0 / 0.798 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009959/0.4739, allocations: 367.4 kB / 0.7984 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.4744, allocations: 61.95 kB / 0.7984 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.4769, allocations: 1.234 MB / 0.7997 GB, free: 1.738 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005655/0.4774, allocations: 0.8773 MB / 0.8005 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006377/0.4781, allocations: 156.4 kB / 0.8007 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002762/0.4784, allocations: 71.38 kB / 0.8007 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of SimCode: time 5.91e-07/0.4784, allocations: 0 / 0.8007 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of Templates: time 0.01693/0.4953, allocations: 8.755 MB / 0.8093 GB, free: 7.914 MB / 0.5762 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)