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.001446/0.001446, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001367/0.001367, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.316/1.316, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 298.4 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9559/0.9559, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 95.05 kB / 0.5947 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1508, allocations: 86.98 MB / 0.6796 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004824/0.1557, allocations: 3.723 MB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004614/0.1603, allocations: 3.392 MB / 0.6866 GB, free: 9.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.1607, allocations: 11.88 kB / 0.6866 GB, free: 9.918 MB / 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.0004826/0.1612, allocations: 99.31 kB / 0.6867 GB, free: 9.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001022/0.1622, allocations: 399.1 kB / 0.6871 GB, free: 9.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.1629, allocations: 332.5 kB / 0.6874 GB, free: 9.109 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006539/0.1636, allocations: 0.7488 MB / 0.6881 GB, free: 8.359 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002902/0.1639, allocations: 205.9 kB / 0.6883 GB, free: 8.152 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.1642, allocations: 314.8 kB / 0.6886 GB, free: 7.844 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004069/0.1647, allocations: 322.6 kB / 0.6889 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.531e-05/0.1647, allocations: 68 kB / 0.689 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007588/0.1655, allocations: 0.5033 MB / 0.6895 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.1657, allocations: 163.5 kB / 0.6896 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002667/0.166, allocations: 334.2 kB / 0.6899 GB, free: 6.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.167, allocations: 1.071 MB / 0.691 GB, free: 5.395 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.167, allocations: 4 kB / 0.691 GB, free: 5.391 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.167, allocations: 0 / 0.691 GB, free: 5.391 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1671, allocations: 0 / 0.691 GB, free: 5.391 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.001963/0.169, allocations: 0.9953 MB / 0.692 GB, free: 4.344 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.1691, allocations: 12.03 kB / 0.692 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003125/0.1722, allocations: 0.562 MB / 0.6925 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.1735, allocations: 0.6235 MB / 0.6931 GB, free: 3.109 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.1736, allocations: 118.7 kB / 0.6932 GB, free: 2.977 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.194e-05/0.1737, allocations: 51.94 kB / 0.6933 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.1751, allocations: 0.6596 MB / 0.6939 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1751, allocations: 0 / 0.6939 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.36e-05/0.1752, allocations: 20 kB / 0.694 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1752, allocations: 12 kB / 0.694 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.1768, allocations: 0.7026 MB / 0.6946 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.1801, allocations: 1.762 MB / 0.6964 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.1828, allocations: 0.8062 MB / 0.6972 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007789/0.1836, allocations: 329.9 kB / 0.6975 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001834/0.1854, allocations: 1.765 MB / 0.6992 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009256/0.1864, allocations: 395.5 kB / 0.6996 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 3.126e-06/0.1864, allocations: 0 / 0.6996 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002433/0.1888, allocations: 0.9277 MB / 0.7005 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.1889, allocations: 107.2 kB / 0.7006 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005068/0.1894, allocations: 427 kB / 0.701 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.1895, allocations: 33.7 kB / 0.701 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.1897, allocations: 272.5 kB / 0.7013 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.1899, allocations: 181.5 kB / 0.7015 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/0.1901, allocations: 126.1 kB / 0.7016 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.1902, allocations: 354.8 kB / 0.7019 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006938/0.1909, allocations: 272.9 kB / 0.7022 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007965/0.1917, allocations: 408.5 kB / 0.7026 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.1932, allocations: 0.6594 MB / 0.7032 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.1932, allocations: 4 kB / 0.7032 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001809/0.1951, allocations: 0.7638 MB / 0.704 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1951, allocations: 7.938 kB / 0.704 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1951, allocations: 4 kB / 0.704 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.1951, allocations: 8 kB / 0.704 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.1968, allocations: 251.8 kB / 0.7042 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.1988, allocations: 1.582 MB / 0.7058 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007515/0.1996, allocations: 91.44 kB / 0.7058 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/0.1996, allocations: 35.91 kB / 0.7059 GB, free: 5.242 MB / 0.4981 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.000374/0.2, allocations: 211.3 kB / 0.7061 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.2002, allocations: 55.34 kB / 0.7061 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002644/0.2028, allocations: 0.9308 MB / 0.707 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.2028, allocations: 8 kB / 0.7071 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.2029, allocations: 0 / 0.7071 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.2029, allocations: 3.984 kB / 0.7071 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003221/0.2061, allocations: 1.622 MB / 0.7086 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.2061, allocations: 0 / 0.7086 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/0.2069, allocations: 143.8 kB / 0.7088 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004638/0.2073, allocations: 56.81 kB / 0.7088 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.2074, allocations: 15.98 kB / 0.7088 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.2091, allocations: 1.584 MB / 0.7104 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2091, allocations: 8 kB / 0.7104 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.2113, allocations: 0.8864 MB / 0.7113 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003075/0.2116, allocations: 212.2 kB / 0.7115 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.2118, allocations: 12 kB / 0.7115 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006153/0.2124, allocations: 52 kB / 0.7115 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.2125, allocations: 52.48 kB / 0.7116 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.957e-05/0.2126, allocations: 23.98 kB / 0.7116 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003792/0.213, allocations: 291.1 kB / 0.7119 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.213, allocations: 0 / 0.7119 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008435/0.2138, allocations: 235.6 kB / 0.7121 GB, free: 14.59 MB / 0.5137 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.001355/0.2152, allocations: 0.4977 MB / 0.7126 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00292/0.2181, allocations: 0.8158 MB / 0.7134 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.2181, allocations: 0 / 0.7134 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.2192, allocations: 0.498 MB / 0.7139 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.2198, allocations: 70.39 kB / 0.7139 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.2223, allocations: 1.445 MB / 0.7154 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004904/0.2228, allocations: 0.8811 MB / 0.7162 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007448/0.2236, allocations: 152.4 kB / 0.7164 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.2238, allocations: 71.33 kB / 0.7164 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of SimCode: time 5.01e-07/0.2238, allocations: 0 / 0.7164 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of Templates: time 0.0163/0.2401, allocations: 8.662 MB / 0.7249 GB, free: 1.641 MB / 0.5137 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)