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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7857/0.7857, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 188.9 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 221.3 MB / 441.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009086/0.0009087, allocations: 98.06 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00183/0.00183, allocations: 267.2 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.085e-05/4.087e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5002/0.5003, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.6499, allocations: 123.9 MB / 0.8853 GB, free: 0.6641 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.6503, allocations: 84.52 kB / 0.8854 GB, free: 0.582 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd - DAE generated: time 0.06189/0.7122, allocations: 20.21 MB / 0.9051 GB, free: 12.26 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.575e-06/0.7122, allocations: 0 / 0.9051 GB, free: 12.26 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.811e-05/0.7123, allocations: 11.98 kB / 0.9051 GB, free: 12.25 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002191/0.7145, allocations: 0.8825 MB / 0.906 GB, free: 11.32 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.7146, allocations: 12.03 kB / 0.906 GB, free: 11.3 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.7147, allocations: 90.52 kB / 0.9061 GB, free: 11.21 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00265/0.7174, allocations: 490.7 kB / 0.9066 GB, free: 10.73 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008489/0.7182, allocations: 443.3 kB / 0.907 GB, free: 10.25 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.7184, allocations: 118.1 kB / 0.9071 GB, free: 10.12 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.825e-05/0.7185, allocations: 44 kB / 0.9071 GB, free: 10.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.7197, allocations: 0.6714 MB / 0.9078 GB, free: 9.383 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.7198, allocations: 0 / 0.9078 GB, free: 9.383 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.19e-05/0.7199, allocations: 20 kB / 0.9078 GB, free: 9.363 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.7199, allocations: 12 kB / 0.9078 GB, free: 9.352 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.7211, allocations: 0.6949 MB / 0.9085 GB, free: 8.656 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004661/0.7258, allocations: 2.216 MB / 0.9107 GB, free: 6.387 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.7279, allocations: 0.8258 MB / 0.9115 GB, free: 5.547 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006364/0.7286, allocations: 370.3 kB / 0.9118 GB, free: 5.184 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002029/0.7306, allocations: 1.757 MB / 0.9135 GB, free: 3.039 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008064/0.7314, allocations: 446.9 kB / 0.914 GB, free: 2.59 MB / 0.573 GB Notification: Performance of pre-optimization done (n=58): time 4.488e-06/0.7315, allocations: 0 / 0.914 GB, free: 2.59 MB / 0.573 GB Notification: Performance of matching and sorting (n=58): time 0.007156/0.7386, allocations: 1.229 MB / 0.9152 GB, free: 1.348 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.7388, allocations: 137.1 kB / 0.9153 GB, free: 1.184 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007428/0.7395, allocations: 411.2 kB / 0.9157 GB, free: 0.7734 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002011/0.7397, allocations: 33.7 kB / 0.9157 GB, free: 0.7344 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.74, allocations: 258.3 kB / 0.916 GB, free: 492 kB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.7402, allocations: 193.2 kB / 0.9162 GB, free: 296 kB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/0.7402, allocations: 8 kB / 0.9162 GB, free: 288 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.4746/1.215, allocations: 358.8 kB / 0.9165 GB, free: 134.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/1.216, allocations: 295.8 kB / 0.9168 GB, free: 134.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/1.217, allocations: 402.5 kB / 0.9172 GB, free: 134.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/1.217, allocations: 306.1 kB / 0.9175 GB, free: 134.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/1.217, allocations: 1.75 kB / 0.9175 GB, free: 134.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.008057/1.225, allocations: 1.286 MB / 0.9187 GB, free: 134.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/1.226, allocations: 10.94 kB / 0.9187 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/1.226, allocations: 1.812 kB / 0.9187 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00809/1.234, allocations: 0.7361 MB / 0.9195 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/1.235, allocations: 182.5 kB / 0.9196 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006703/1.242, allocations: 2.565 MB / 0.9221 GB, free: 133 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/1.243, allocations: 144.8 kB / 0.9223 GB, free: 133 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.243, allocations: 31.38 kB / 0.9223 GB, free: 133 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {3} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002413/1.244, allocations: 137.4 kB / 0.9224 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/1.244, allocations: 54.97 kB / 0.9225 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004177/1.248, allocations: 1.171 MB / 0.9236 GB, free: 132.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/1.248, allocations: 6.281 kB / 0.9236 GB, free: 132.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/1.248, allocations: 1.266 kB / 0.9236 GB, free: 132.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/1.248, allocations: 9.328 kB / 0.9236 GB, free: 132.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004818/1.253, allocations: 1.987 MB / 0.9256 GB, free: 132.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/1.253, allocations: 1.25 kB / 0.9256 GB, free: 132.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009594/1.254, allocations: 176.2 kB / 0.9258 GB, free: 132.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002526/1.256, allocations: 336.1 kB / 0.9261 GB, free: 132.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/1.256, allocations: 17.45 kB / 0.9261 GB, free: 132.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003789/1.26, allocations: 2.1 MB / 0.9281 GB, free: 131.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.26, allocations: 0 / 0.9281 GB, free: 131.1 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003542/1.264, allocations: 1.102 MB / 0.9292 GB, free: 130.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004687/1.264, allocations: 248.5 kB / 0.9295 GB, free: 130.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.8e-05/1.264, allocations: 11.94 kB / 0.9295 GB, free: 130.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000735/1.265, allocations: 88.98 kB / 0.9295 GB, free: 130.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/1.265, allocations: 54.45 kB / 0.9296 GB, free: 130.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.994e-05/1.265, allocations: 26.67 kB / 0.9296 GB, free: 130.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004186/1.266, allocations: 322.4 kB / 0.9299 GB, free: 130.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.21e-07/1.266, allocations: 2.078 kB / 0.9299 GB, free: 130.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001136/1.267, allocations: 299.7 kB / 0.9302 GB, free: 130.3 MB / 0.573 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004493/1.271, allocations: 2.077 MB / 0.9322 GB, free: 129.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002785/1.274, allocations: 0.9278 MB / 0.9332 GB, free: 128.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/1.274, allocations: 0 / 0.9332 GB, free: 128.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001249/1.276, allocations: 0.5709 MB / 0.9337 GB, free: 128.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005583/1.276, allocations: 48.83 kB / 0.9338 GB, free: 128.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/1.279, allocations: 1.044 MB / 0.9348 GB, free: 128.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/1.279, allocations: 0.8957 MB / 0.9357 GB, free: 127.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0007632/1.28, allocations: 148.3 kB / 0.9358 GB, free: 127.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/1.28, allocations: 218.3 kB / 0.936 GB, free: 127.2 MB / 0.573 GB Notification: Performance of SimCode: time 8.92e-07/1.28, allocations: 0 / 0.936 GB, free: 127.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03819/1.318, allocations: 16.55 MB / 0.9522 GB, free: 120.7 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002174/1.319, allocations: 246 kB / 0.9524 GB, free: 120.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.81/4.129, allocations: 0 / 0.9524 GB, free: 120.4 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)