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.004382/0.004383, allocations: 102.3 kB / 15.74 MB, free: 6.043 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.001117/0.001117, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002195/0.002195, allocations: 270.6 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9458/0.9458, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 91.86 kB / 0.6814 GB, free: 15.55 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1513, allocations: 86.97 MB / 0.7663 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004857/0.1562, allocations: 3.713 MB / 0.77 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004647/0.1609, allocations: 3.437 MB / 0.7733 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003266/0.1612, allocations: 7.938 kB / 0.7733 GB, free: 1.309 MB / 0.5606 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.0005011/0.1618, allocations: 122.9 kB / 0.7735 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.163, allocations: 457.5 kB / 0.7739 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007713/0.1637, allocations: 362.8 kB / 0.7742 GB, free: 396 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2866/0.4503, allocations: 0.7564 MB / 0.775 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003627/0.4507, allocations: 196.2 kB / 0.7752 GB, free: 8.824 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004851/0.4512, allocations: 315 kB / 0.7755 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004849/0.4517, allocations: 324.9 kB / 0.7758 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.4518, allocations: 65.91 kB / 0.7758 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009431/0.4528, allocations: 0.4964 MB / 0.7763 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.4529, allocations: 170.3 kB / 0.7765 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.4532, allocations: 322.5 kB / 0.7768 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.4545, allocations: 1.092 MB / 0.7779 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.4545, allocations: 0 / 0.7779 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4545, allocations: 1.594 kB / 0.7779 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.616e-05/0.4546, allocations: 0 / 0.7779 GB, free: 8.48 MB / 0.5606 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.001763/0.4563, allocations: 1.02 MB / 0.7789 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.4564, allocations: 10 kB / 0.7789 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003022/0.4594, allocations: 0.5727 MB / 0.7794 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.4605, allocations: 0.6277 MB / 0.78 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.155e-05/0.4606, allocations: 120.6 kB / 0.7801 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.4607, allocations: 48.81 kB / 0.7802 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.462, allocations: 0.6637 MB / 0.7808 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.462, allocations: 0 / 0.7808 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.027e-05/0.4621, allocations: 19.78 kB / 0.7809 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.4621, allocations: 10.53 kB / 0.7809 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.4637, allocations: 0.6935 MB / 0.7815 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.4667, allocations: 1.765 MB / 0.7833 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002562/0.4693, allocations: 0.8089 MB / 0.7841 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007321/0.47, allocations: 328.5 kB / 0.7844 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001253/0.4713, allocations: 1.771 MB / 0.7861 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008269/0.4721, allocations: 390 kB / 0.7865 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 1.844e-06/0.4721, allocations: 4 kB / 0.7865 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002257/0.4744, allocations: 0.9286 MB / 0.7874 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.4744, allocations: 113.8 kB / 0.7875 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005161/0.475, allocations: 416.6 kB / 0.7879 GB, free: 19.59 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/0.475, allocations: 36.48 kB / 0.7879 GB, free: 19.55 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.4752, allocations: 283 kB / 0.7882 GB, free: 19.32 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.4753, allocations: 187.7 kB / 0.7884 GB, free: 19.18 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.4755, allocations: 120.8 kB / 0.7885 GB, free: 19.12 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4756, allocations: 363.4 kB / 0.7888 GB, free: 18.79 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.4763, allocations: 274.5 kB / 0.7891 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007248/0.477, allocations: 413.4 kB / 0.7895 GB, free: 18.46 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.4784, allocations: 0.653 MB / 0.7901 GB, free: 18.13 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4784, allocations: 0 / 0.7901 GB, free: 18.13 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001709/0.4801, allocations: 0.7644 MB / 0.7909 GB, free: 17.86 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.4802, allocations: 9.656 kB / 0.7909 GB, free: 17.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.4802, allocations: 4.328 kB / 0.7909 GB, free: 17.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.4802, allocations: 7.281 kB / 0.7909 GB, free: 17.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.4817, allocations: 247.5 kB / 0.7911 GB, free: 17.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.4831, allocations: 1.582 MB / 0.7927 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000602/0.4837, allocations: 92.25 kB / 0.7928 GB, free: 16.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/0.4838, allocations: 30.36 kB / 0.7928 GB, free: 16.27 MB / 0.5762 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.0002433/0.4841, allocations: 210.2 kB / 0.793 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.4842, allocations: 55.78 kB / 0.7931 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.4865, allocations: 0.9445 MB / 0.794 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.4865, allocations: 4.062 kB / 0.794 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.4865, allocations: 3.281 kB / 0.794 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4865, allocations: 4.688 kB / 0.794 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.4893, allocations: 1.614 MB / 0.7956 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4893, allocations: 0 / 0.7956 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000675/0.49, allocations: 151.8 kB / 0.7957 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003875/0.4904, allocations: 55.75 kB / 0.7958 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.4905, allocations: 22.92 kB / 0.7958 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.4919, allocations: 1.588 MB / 0.7973 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4919, allocations: 1.875 kB / 0.7973 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.4939, allocations: 0.9002 MB / 0.7982 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002328/0.4942, allocations: 210.5 kB / 0.7984 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.328e-05/0.4943, allocations: 14.66 kB / 0.7984 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005584/0.4948, allocations: 59.06 kB / 0.7985 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.495, allocations: 44.94 kB / 0.7985 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-05/0.495, allocations: 22.58 kB / 0.7985 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000311/0.4953, allocations: 292.3 kB / 0.7988 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4953, allocations: 0 / 0.7988 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007335/0.4961, allocations: 232 kB / 0.799 GB, free: 12.56 MB / 0.5762 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.001054/0.4971, allocations: 0.4998 MB / 0.7995 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002544/0.4997, allocations: 0.762 MB / 0.8003 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4997, allocations: 0.5938 kB / 0.8003 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.5008, allocations: 0.4909 MB / 0.8008 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.5013, allocations: 84.83 kB / 0.8008 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.5035, allocations: 1.215 MB / 0.802 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.5039, allocations: 0.8831 MB / 0.8029 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005541/0.5045, allocations: 141.9 kB / 0.803 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.5047, allocations: 72.14 kB / 0.8031 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.5047, allocations: 0 / 0.8031 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of Templates: time 0.01437/0.5191, allocations: 8.819 MB / 0.8117 GB, free: 8.305 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)