Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.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.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001503/0.001503, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.317/1.317, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0025/0.0025, allocations: 277.1 kB / 291.3 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 1.162/1.162, allocations: 178.6 MB / 0.5079 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002661/0.002661, allocations: 95.83 kB / 0.6071 GB, free: 9.258 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.184, allocations: 89.14 MB / 0.6941 GB, free: 40 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.00534/0.1894, allocations: 3.691 MB / 0.6978 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005007/0.1944, allocations: 3.462 MB / 0.7011 GB, free: 8.844 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002782/0.1947, allocations: 15.88 kB / 0.7011 GB, free: 8.828 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.0004475/0.1952, allocations: 111 kB / 0.7013 GB, free: 8.719 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.1963, allocations: 461.4 kB / 0.7017 GB, free: 8.266 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.1971, allocations: 394 kB / 0.7021 GB, free: 7.883 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007943/0.198, allocations: 0.8073 MB / 0.7029 GB, free: 7.074 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003031/0.1983, allocations: 197.9 kB / 0.703 GB, free: 6.871 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003859/0.1987, allocations: 330.8 kB / 0.7034 GB, free: 6.547 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004823/0.1991, allocations: 342.7 kB / 0.7037 GB, free: 6.211 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.1993, allocations: 72 kB / 0.7038 GB, free: 6.141 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009227/0.2002, allocations: 0.4995 MB / 0.7042 GB, free: 5.641 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.2005, allocations: 179.4 kB / 0.7044 GB, free: 5.465 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003345/0.2008, allocations: 330.3 kB / 0.7047 GB, free: 5.141 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.2021, allocations: 1.095 MB / 0.7058 GB, free: 4.043 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2021, allocations: 0 / 0.7058 GB, free: 4.043 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2021, allocations: 4 kB / 0.7058 GB, free: 4.039 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.2021, allocations: 0 / 0.7058 GB, free: 4.039 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.0022/0.2043, allocations: 1.025 MB / 0.7068 GB, free: 2.969 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2044, allocations: 8.031 kB / 0.7068 GB, free: 2.961 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003074/0.2075, allocations: 0.566 MB / 0.7074 GB, free: 2.395 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.2089, allocations: 0.6234 MB / 0.708 GB, free: 1.73 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.209, allocations: 126.2 kB / 0.7081 GB, free: 1.586 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.286e-05/0.2091, allocations: 52 kB / 0.7081 GB, free: 1.535 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.2106, allocations: 0.683 MB / 0.7088 GB, free: 0.832 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2106, allocations: 0 / 0.7088 GB, free: 0.832 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.845e-05/0.2107, allocations: 16 kB / 0.7088 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.2107, allocations: 12 kB / 0.7088 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.2124, allocations: 0.7104 MB / 0.7095 GB, free: 96 kB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2722/0.4846, allocations: 1.862 MB / 0.7114 GB, free: 49.33 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002413/0.487, allocations: 0.8296 MB / 0.7122 GB, free: 49.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000696/0.4878, allocations: 354.9 kB / 0.7125 GB, free: 49.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001244/0.489, allocations: 1.772 MB / 0.7142 GB, free: 47.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007693/0.4898, allocations: 430.7 kB / 0.7146 GB, free: 47.09 MB / 0.545 GB Notification: Performance of pre-optimization done (n=56): time 2.955e-06/0.4898, allocations: 1.406 kB / 0.7146 GB, free: 47.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=56): time 0.005913/0.4957, allocations: 1.493 MB / 0.7161 GB, free: 46.62 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.4958, allocations: 117 kB / 0.7162 GB, free: 46.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.4961, allocations: 401 kB / 0.7166 GB, free: 46.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.53e-05/0.4962, allocations: 36.3 kB / 0.7166 GB, free: 46.26 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.4963, allocations: 271.5 kB / 0.7169 GB, free: 46.05 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.4964, allocations: 189.4 kB / 0.7171 GB, free: 45.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.4966, allocations: 126.6 kB / 0.7172 GB, free: 45.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.215e-05/0.4967, allocations: 361.5 kB / 0.7175 GB, free: 45.51 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006368/0.4973, allocations: 293 kB / 0.7178 GB, free: 45.42 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006889/0.498, allocations: 437.7 kB / 0.7182 GB, free: 45.17 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.4994, allocations: 0.69 MB / 0.7189 GB, free: 44.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.4994, allocations: 0.8438 kB / 0.7189 GB, free: 44.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003769/0.5031, allocations: 1.074 MB / 0.72 GB, free: 44.52 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.5032, allocations: 6.5 kB / 0.72 GB, free: 44.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5032, allocations: 2.75 kB / 0.72 GB, free: 44.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/0.506, allocations: 386 kB / 0.7203 GB, free: 44.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007143/0.5067, allocations: 160.1 kB / 0.7205 GB, free: 44.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003187/0.5099, allocations: 2.169 MB / 0.7226 GB, free: 42.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006724/0.5106, allocations: 97.08 kB / 0.7227 GB, free: 42.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.533e-05/0.5107, allocations: 28.64 kB / 0.7227 GB, free: 42.68 MB / 0.545 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 {3} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000265/0.511, allocations: 206.3 kB / 0.7229 GB, free: 42.51 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.756e-05/0.5111, allocations: 52.03 kB / 0.723 GB, free: 42.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.5138, allocations: 1.071 MB / 0.724 GB, free: 42.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.5138, allocations: 9.031 kB / 0.724 GB, free: 42.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.5139, allocations: 2.594 kB / 0.724 GB, free: 42.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.5139, allocations: 3.234 kB / 0.724 GB, free: 42.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003088/0.517, allocations: 1.777 MB / 0.7258 GB, free: 41.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.517, allocations: 4.406 kB / 0.7258 GB, free: 41.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006333/0.5176, allocations: 138.5 kB / 0.7259 GB, free: 41.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008023/0.5184, allocations: 145 kB / 0.726 GB, free: 41.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.263e-05/0.5185, allocations: 16.58 kB / 0.7261 GB, free: 41.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.5203, allocations: 1.926 MB / 0.7279 GB, free: 39.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5203, allocations: 0 / 0.7279 GB, free: 39.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.5227, allocations: 1.022 MB / 0.7289 GB, free: 39.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.5229, allocations: 205.1 kB / 0.7291 GB, free: 38.95 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.9e-05/0.523, allocations: 13.09 kB / 0.7291 GB, free: 38.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005324/0.5235, allocations: 51.83 kB / 0.7292 GB, free: 38.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.5236, allocations: 55.08 kB / 0.7292 GB, free: 38.92 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/0.5237, allocations: 27.81 kB / 0.7293 GB, free: 38.91 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002307/0.5239, allocations: 283.1 kB / 0.7295 GB, free: 38.77 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5239, allocations: 7.156 kB / 0.7295 GB, free: 38.77 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006705/0.5246, allocations: 235.6 kB / 0.7298 GB, free: 38.72 MB / 0.545 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 (67): * 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: 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001428/0.5261, allocations: 0.5005 MB / 0.7303 GB, free: 38.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002172/0.5282, allocations: 0.9382 MB / 0.7312 GB, free: 38.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.5282, allocations: 0 / 0.7312 GB, free: 38.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0009189/0.5292, allocations: 0.5366 MB / 0.7317 GB, free: 37.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.5296, allocations: 63.44 kB / 0.7318 GB, free: 37.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.5314, allocations: 1.288 MB / 0.733 GB, free: 37.23 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.5317, allocations: 0.8774 MB / 0.7339 GB, free: 36.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/0.5319, allocations: 78.55 kB / 0.7339 GB, free: 36.5 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.5319, allocations: 2.812 kB / 0.734 GB, free: 36.5 MB / 0.545 GB Notification: Performance of Templates: time 0.01395/0.5459, allocations: 12.55 MB / 0.7462 GB, free: 35.2 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)