Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.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.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",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.7935/0.7935, allocations: 143.4 MB / 158.3 MB, free: 5.781 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.0012/0.0012, allocations: 173 kB / 191.5 MB, free: 5.766 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.466/1.466, allocations: 223.2 MB / 447.7 MB, free: 4.82 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.0008957/0.0008957, allocations: 96.2 kB / 0.5187 GB, free: 1.176 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001722/0.001722, allocations: 264.8 kB / 0.6005 GB, free: 48.72 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003956, allocations: 10.31 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1386, allocations: 82.79 MB / 0.7738 GB, free: 13.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.523/0.6617, allocations: 123.3 MB / 0.8942 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.662, allocations: 88.66 kB / 0.8943 GB, free: 21.8 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.05595/0.718, allocations: 20.05 MB / 0.9138 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.475e-06/0.718, allocations: 0 / 0.9138 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.277e-05/0.7181, allocations: 11.72 kB / 0.9138 GB, free: 19.99 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001791/0.7199, allocations: 0.9283 MB / 0.9147 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.7199, allocations: 12.16 kB / 0.9148 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.72, allocations: 88.31 kB / 0.9148 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002854/0.7229, allocations: 0.5472 MB / 0.9154 GB, free: 19.24 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.7236, allocations: 447.2 kB / 0.9158 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.7237, allocations: 123.2 kB / 0.9159 GB, free: 18.89 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.59e-05/0.7238, allocations: 50.03 kB / 0.916 GB, free: 18.88 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.7254, allocations: 0.792 MB / 0.9167 GB, free: 18.79 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.7255, allocations: 0 / 0.9167 GB, free: 18.79 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-05/0.7255, allocations: 23.17 kB / 0.9168 GB, free: 18.79 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.7256, allocations: 11.62 kB / 0.9168 GB, free: 18.79 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.7278, allocations: 0.9861 MB / 0.9177 GB, free: 18.76 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00365/0.7314, allocations: 2.051 MB / 0.9197 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003216/0.7347, allocations: 1.125 MB / 0.9208 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001485/0.7362, allocations: 1.761 MB / 0.9226 GB, free: 16.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001313/0.7375, allocations: 0.56 MB / 0.9231 GB, free: 16.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 2.555e-06/0.7375, allocations: 0 / 0.9231 GB, free: 16.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=57): time 0.008284/0.7458, allocations: 2.07 MB / 0.9251 GB, free: 16.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.7459, allocations: 140.5 kB / 0.9253 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.7464, allocations: 424.9 kB / 0.9257 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.385e-05/0.7465, allocations: 36.64 kB / 0.9257 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.7467, allocations: 254.4 kB / 0.9259 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.7468, allocations: 191.6 kB / 0.9261 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-05/0.7468, allocations: 11 kB / 0.9261 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.167e-05/0.7469, allocations: 371.1 kB / 0.9265 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.748, allocations: 428.2 kB / 0.9269 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.749, allocations: 0.5141 MB / 0.9274 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.7501, allocations: 427.8 kB / 0.9278 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.7501, allocations: 3.938 kB / 0.9278 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004293/0.7544, allocations: 1.284 MB / 0.9291 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.7544, allocations: 5.531 kB / 0.9291 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.7545, allocations: 8 kB / 0.9291 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009986/0.7555, allocations: 211.4 kB / 0.9293 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009067/0.7564, allocations: 180.1 kB / 0.9295 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005634/0.762, allocations: 2.287 MB / 0.9317 GB, free: 29.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.7632, allocations: 160.1 kB / 0.9318 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.068e-05/0.7633, allocations: 25.67 kB / 0.9319 GB, free: 29.52 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): 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003802/0.7637, allocations: 217.1 kB / 0.9321 GB, free: 29.39 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.571e-05/0.7638, allocations: 53.88 kB / 0.9321 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.7674, allocations: 1.304 MB / 0.9334 GB, free: 29.25 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.7674, allocations: 11.72 kB / 0.9334 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.7674, allocations: 0 / 0.9334 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.7675, allocations: 7.375 kB / 0.9334 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008517/0.7683, allocations: 0.7982 MB / 0.9342 GB, free: 29.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.7683, allocations: 0 / 0.9342 GB, free: 29.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008615/0.7692, allocations: 180.5 kB / 0.9344 GB, free: 29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007693/0.77, allocations: 164.6 kB / 0.9345 GB, free: 28.99 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/0.77, allocations: 18.81 kB / 0.9345 GB, free: 28.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/0.7737, allocations: 2.041 MB / 0.9365 GB, free: 27.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7737, allocations: 3.953 kB / 0.9365 GB, free: 27.55 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003482/0.7772, allocations: 1.191 MB / 0.9377 GB, free: 27.22 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000455/0.7777, allocations: 243.9 kB / 0.9379 GB, free: 27.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.887e-05/0.7778, allocations: 15.12 kB / 0.9379 GB, free: 27.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007556/0.7786, allocations: 100 kB / 0.938 GB, free: 27.02 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.7787, allocations: 55.12 kB / 0.9381 GB, free: 27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-05/0.7787, allocations: 27.47 kB / 0.9381 GB, free: 26.98 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004512/0.7792, allocations: 342.1 kB / 0.9385 GB, free: 26.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.11e-07/0.7792, allocations: 0 / 0.9385 GB, free: 26.86 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009534/0.7802, allocations: 288.9 kB / 0.9387 GB, free: 26.79 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 (68): * Single equations (assignments): 66 * 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 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004741/0.7849, allocations: 2.178 MB / 0.9409 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002778/0.7877, allocations: 1.11 MB / 0.9419 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.7878, allocations: 0 / 0.9419 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.789, allocations: 0.6389 MB / 0.9426 GB, free: 25.21 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004943/0.7895, allocations: 56.58 kB / 0.9426 GB, free: 25.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009544/0.7991, allocations: 5.645 MB / 0.9481 GB, free: 22.29 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.7995, allocations: 0.8961 MB / 0.949 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007149/0.8003, allocations: 146.2 kB / 0.9491 GB, free: 21.43 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003823/0.8007, allocations: 217.2 kB / 0.9493 GB, free: 21.39 MB / 0.5573 GB Notification: Performance of SimCode: time 1.313e-06/0.8007, allocations: 0 / 0.9493 GB, free: 21.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.8316, allocations: 16.31 MB / 0.9653 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.8318, allocations: 267.5 kB / 0.9655 GB, free: 13.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/3.221, allocations: 0 / 0.9655 GB, free: 13.1 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)