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.001274/0.001274, allocations: 103.8 kB / 16.41 MB, free: 6.508 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.001178/0.001178, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.252/1.252, 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.002076/0.002076, allocations: 295.1 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.8809/0.8809, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 103.8 kB / 0.6821 GB, free: 7.023 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4184, allocations: 86.97 MB / 0.767 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004934/0.4234, allocations: 3.741 MB / 0.7707 GB, free: 220 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004523/0.4279, allocations: 3.427 MB / 0.774 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.4282, allocations: 11.94 kB / 0.774 GB, free: 12.76 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.000442/0.4286, allocations: 126 kB / 0.7741 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008938/0.4295, allocations: 465.4 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.4302, allocations: 360.1 kB / 0.7749 GB, free: 11.83 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006446/0.4308, allocations: 0.7448 MB / 0.7757 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.4311, allocations: 193.9 kB / 0.7758 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003277/0.4315, allocations: 310.9 kB / 0.7761 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000429/0.4319, allocations: 326.6 kB / 0.7764 GB, free: 10.27 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.185e-05/0.432, allocations: 64 kB / 0.7765 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007088/0.4327, allocations: 0.4956 MB / 0.777 GB, free: 9.711 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.4329, allocations: 175.4 kB / 0.7772 GB, free: 9.539 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.4331, allocations: 318.3 kB / 0.7775 GB, free: 9.227 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.4341, allocations: 1.085 MB / 0.7785 GB, free: 8.141 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4342, allocations: 4 kB / 0.7785 GB, free: 8.137 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.163e-06/0.4342, allocations: 3.938 kB / 0.7785 GB, free: 8.133 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.096e-06/0.4342, allocations: 0 / 0.7785 GB, free: 8.133 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.001663/0.4358, allocations: 0.9836 MB / 0.7795 GB, free: 7.098 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.4359, allocations: 11.97 kB / 0.7795 GB, free: 7.086 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00337/0.4393, allocations: 0.6244 MB / 0.7801 GB, free: 6.461 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.4405, allocations: 0.6273 MB / 0.7807 GB, free: 5.797 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.4406, allocations: 114.7 kB / 0.7808 GB, free: 5.668 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.853e-05/0.4407, allocations: 55.92 kB / 0.7809 GB, free: 5.613 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.4421, allocations: 0.6948 MB / 0.7816 GB, free: 4.902 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4421, allocations: 3.938 kB / 0.7816 GB, free: 4.898 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.149e-05/0.4422, allocations: 16 kB / 0.7816 GB, free: 4.883 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.4422, allocations: 15.98 kB / 0.7816 GB, free: 4.867 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.444, allocations: 0.7494 MB / 0.7823 GB, free: 4.113 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003117/0.4472, allocations: 1.817 MB / 0.7841 GB, free: 2.242 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002666/0.4498, allocations: 0.8386 MB / 0.7849 GB, free: 1.395 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008577/0.4507, allocations: 354 kB / 0.7853 GB, free: 1.047 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00168/0.4524, allocations: 1.769 MB / 0.787 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009908/0.4534, allocations: 437 kB / 0.7874 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.414e-06/0.4534, allocations: 0 / 0.7874 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002649/0.4561, allocations: 1.006 MB / 0.7884 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.4561, allocations: 107.2 kB / 0.7885 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004251/0.4566, allocations: 435 kB / 0.7889 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.4566, allocations: 37.7 kB / 0.7889 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.4568, allocations: 272.6 kB / 0.7892 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.4569, allocations: 185.3 kB / 0.7894 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.4571, allocations: 118.1 kB / 0.7895 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4573, allocations: 366.8 kB / 0.7898 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008037/0.4581, allocations: 304.9 kB / 0.7901 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008788/0.459, allocations: 432.5 kB / 0.7905 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.4606, allocations: 0.7023 MB / 0.7912 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.4606, allocations: 0 / 0.7912 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001893/0.4625, allocations: 0.8183 MB / 0.792 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.4625, allocations: 8 kB / 0.792 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4626, allocations: 0 / 0.792 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.4626, allocations: 8 kB / 0.792 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008672/0.4634, allocations: 183.9 kB / 0.7922 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.4635, allocations: 11.94 kB / 0.7922 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006496/0.4641, allocations: 95.36 kB / 0.7923 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.615e-05/0.4642, allocations: 35.97 kB / 0.7924 GB, free: 9.211 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.0002537/0.4645, allocations: 209.6 kB / 0.7926 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.81e-05/0.4646, allocations: 47.44 kB / 0.7926 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.4666, allocations: 0.8909 MB / 0.7935 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.4667, allocations: 8 kB / 0.7935 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4667, allocations: 3.938 kB / 0.7935 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.4667, allocations: 3.984 kB / 0.7935 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.4693, allocations: 1.583 MB / 0.795 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4693, allocations: 4 kB / 0.795 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007679/0.4701, allocations: 151.8 kB / 0.7952 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.4701, allocations: 7.938 kB / 0.7952 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.48e-05/0.4701, allocations: 19.98 kB / 0.7952 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.4701, allocations: 4 kB / 0.7952 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4702, allocations: 0 / 0.7952 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.4719, allocations: 0.8519 MB / 0.796 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.4721, allocations: 208.2 kB / 0.7962 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.713e-05/0.4722, allocations: 15.94 kB / 0.7963 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.4728, allocations: 55.94 kB / 0.7963 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.4729, allocations: 44.48 kB / 0.7964 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-05/0.473, allocations: 23.92 kB / 0.7964 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002997/0.4733, allocations: 307.1 kB / 0.7967 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4733, allocations: 0 / 0.7967 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006339/0.4739, allocations: 223.6 kB / 0.7969 GB, free: 4.469 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.001054/0.475, allocations: 0.4903 MB / 0.7974 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001727/0.4767, allocations: 0.73 MB / 0.7981 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4767, allocations: 0 / 0.7981 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008181/0.4775, allocations: 387.4 kB / 0.7984 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.478, allocations: 67.89 kB / 0.7985 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.48, allocations: 1.26 MB / 0.7997 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.4804, allocations: 0.8734 MB / 0.8006 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.4807, allocations: 83.38 kB / 0.8007 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.4807, allocations: 4 kB / 0.8007 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of Templates: time 0.01347/0.4942, allocations: 10.29 MB / 0.8107 GB, free: 6.414 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)