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.8389/0.8389, allocations: 143.3 MB / 158.3 MB, free: 5.832 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 187.7 kB / 191.5 MB, free: 5.781 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.494/1.494, allocations: 223.2 MB / 447.7 MB, free: 4.812 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.001307/0.001307, allocations: 84.33 kB / 0.5187 GB, free: 1.168 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001889/0.001889, allocations: 276.5 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004128/0.000413, allocations: 13.19 kB / 0.6929 GB, free: 59.62 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1597, allocations: 82.79 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5125/0.6722, allocations: 123.9 MB / 0.8948 GB, free: 22 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.6726, allocations: 83.91 kB / 0.8949 GB, free: 22 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.06008/0.7327, allocations: 20.46 MB / 0.9148 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.565e-06/0.7327, allocations: 0 / 0.9148 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.832e-05/0.7328, allocations: 7.812 kB / 0.9148 GB, free: 20.18 MB / 0.5417 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.002546/0.7353, allocations: 0.9584 MB / 0.9158 GB, free: 19.53 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.7354, allocations: 8.344 kB / 0.9158 GB, free: 19.53 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002482/0.7356, allocations: 90.86 kB / 0.9159 GB, free: 19.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002605/0.7382, allocations: 496.7 kB / 0.9164 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008753/0.7391, allocations: 453.2 kB / 0.9168 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.7393, allocations: 116.1 kB / 0.9169 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.7394, allocations: 46.06 kB / 0.9169 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.741, allocations: 0.7891 MB / 0.9177 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.7411, allocations: 0 / 0.9177 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-05/0.7412, allocations: 17.72 kB / 0.9177 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.7412, allocations: 11.75 kB / 0.9177 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.7433, allocations: 0.9397 MB / 0.9187 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.7476, allocations: 2.203 MB / 0.9208 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003432/0.751, allocations: 1.114 MB / 0.9219 GB, free: 18.48 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001457/0.7525, allocations: 1.76 MB / 0.9236 GB, free: 16.51 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.7537, allocations: 0.551 MB / 0.9242 GB, free: 16.45 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=58): time 2.956e-06/0.7537, allocations: 3.938 kB / 0.9242 GB, free: 16.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=58): time 0.01427/0.768, allocations: 2.315 MB / 0.9264 GB, free: 16.23 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.7681, allocations: 140.2 kB / 0.9265 GB, free: 16.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006688/0.7688, allocations: 417.4 kB / 0.9269 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.7689, allocations: 40.67 kB / 0.927 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.7691, allocations: 247.5 kB / 0.9272 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.7693, allocations: 197.9 kB / 0.9274 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/0.7694, allocations: 10.81 kB / 0.9274 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.7695, allocations: 360.5 kB / 0.9278 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009339/0.7705, allocations: 421.7 kB / 0.9282 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009636/0.7714, allocations: 0.516 MB / 0.9287 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009296/0.7724, allocations: 428.8 kB / 0.9291 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.7724, allocations: 0 / 0.9291 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.008032/0.7804, allocations: 1.521 MB / 0.9306 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.7805, allocations: 8.844 kB / 0.9306 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.7805, allocations: 7.719 kB / 0.9306 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007816/0.7883, allocations: 0.733 MB / 0.9313 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.7894, allocations: 186.5 kB / 0.9315 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006467/0.7959, allocations: 2.641 MB / 0.9341 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.7971, allocations: 140 kB / 0.9342 GB, free: 29.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.7973, allocations: 42.3 kB / 0.9342 GB, free: 29.44 MB / 0.5573 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 () * Number of clocked 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.000526/0.7979, allocations: 206.8 kB / 0.9344 GB, free: 29.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.798, allocations: 50.78 kB / 0.9345 GB, free: 29.28 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004517/0.8026, allocations: 1.403 MB / 0.9358 GB, free: 28.85 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.8026, allocations: 7.406 kB / 0.9359 GB, free: 28.85 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.8026, allocations: 64 / 0.9359 GB, free: 28.85 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.8026, allocations: 7.984 kB / 0.9359 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.8036, allocations: 0.823 MB / 0.9367 GB, free: 28.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.8037, allocations: 0 / 0.9367 GB, free: 28.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008723/0.8045, allocations: 174.8 kB / 0.9368 GB, free: 28.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002388/0.8069, allocations: 341 kB / 0.9372 GB, free: 28.25 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.849e-05/0.807, allocations: 18.84 kB / 0.9372 GB, free: 28.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003493/0.8105, allocations: 2.125 MB / 0.9392 GB, free: 26.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.8106, allocations: 3.938 kB / 0.9393 GB, free: 26.74 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004085/0.8146, allocations: 1.27 MB / 0.9405 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000463/0.8151, allocations: 244.8 kB / 0.9407 GB, free: 26.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.8153, allocations: 7.312 kB / 0.9407 GB, free: 26.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000824/0.8161, allocations: 108.9 kB / 0.9408 GB, free: 26.15 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.8162, allocations: 51.23 kB / 0.9409 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.8163, allocations: 26.75 kB / 0.9409 GB, free: 26.12 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004466/0.8168, allocations: 327.4 kB / 0.9412 GB, free: 26 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8168, allocations: 0 / 0.9412 GB, free: 26 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001032/0.8178, allocations: 291.5 kB / 0.9415 GB, free: 25.93 MB / 0.5573 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 (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.005725/0.8236, allocations: 2.28 MB / 0.9437 GB, free: 24.85 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003707/0.8273, allocations: 1.176 MB / 0.9449 GB, free: 24.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.8273, allocations: 0 / 0.9449 GB, free: 24.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.829, allocations: 0.6852 MB / 0.9455 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.8295, allocations: 58.62 kB / 0.9456 GB, free: 24.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.8441, allocations: 5.809 MB / 0.9513 GB, free: 21.27 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.8447, allocations: 0.8952 MB / 0.9521 GB, free: 20.48 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008922/0.8456, allocations: 142.3 kB / 0.9523 GB, free: 20.41 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004714/0.8461, allocations: 218 kB / 0.9525 GB, free: 20.38 MB / 0.5573 GB Notification: Performance of SimCode: time 8.81e-07/0.8461, allocations: 0 / 0.9525 GB, free: 20.38 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0359/0.882, allocations: 16.34 MB / 0.9684 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.8822, allocations: 276.5 kB / 0.9687 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.679/3.561, allocations: 0 / 0.9687 GB, free: 12.09 MB / 0.5573 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)