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.8213/0.8213, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001146/0.001146, allocations: 188.6 kB / 182.2 MB, free: 9.441 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.555/1.555, allocations: 221.5 MB / 436.4 MB, free: 13.36 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.001031/0.001031, allocations: 93.8 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001788/0.001789, allocations: 278.4 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.024e-05/2.038e-05, allocations: 0 / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5264/0.5264, allocations: 82.77 MB / 0.7575 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1748/0.7013, allocations: 122.6 MB / 0.8771 GB, free: 5.207 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.7017, allocations: 87.95 kB / 0.8772 GB, free: 5.121 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.07332/0.775, allocations: 19.53 MB / 0.8963 GB, free: 1.461 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.084e-06/0.775, allocations: 0 / 0.8963 GB, free: 1.461 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.133e-05/0.7751, allocations: 15.98 kB / 0.8963 GB, free: 1.445 MB / 0.5573 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.001842/0.7769, allocations: 0.8633 MB / 0.8972 GB, free: 0.5352 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.777, allocations: 12.03 kB / 0.8972 GB, free: 0.5234 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5077/1.285, allocations: 0.5405 MB / 0.8977 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/1.286, allocations: 444 kB / 0.8981 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/1.286, allocations: 103.1 kB / 0.8982 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/1.286, allocations: 29.02 kB / 0.8982 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001541/1.288, allocations: 0.6673 MB / 0.8989 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/1.289, allocations: 0.5927 MB / 0.8995 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.855e-05/1.289, allocations: 2.203 kB / 0.8995 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-05/1.289, allocations: 0.5625 kB / 0.8995 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/1.289, allocations: 12.62 kB / 0.8995 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/1.294, allocations: 1.971 MB / 0.9014 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/1.296, allocations: 0.789 MB / 0.9022 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006139/1.297, allocations: 326.6 kB / 0.9025 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001642/1.299, allocations: 1.765 MB / 0.9042 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008133/1.299, allocations: 406.1 kB / 0.9046 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=57): time 3.607e-06/1.299, allocations: 0 / 0.9046 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=57): time 0.02094/1.32, allocations: 2.887 MB / 0.9074 GB, free: 121 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/1.32, allocations: 138.7 kB / 0.9076 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006283/1.321, allocations: 386.6 kB / 0.9079 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.718e-05/1.321, allocations: 27.23 kB / 0.908 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/1.321, allocations: 259.2 kB / 0.9082 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/1.322, allocations: 179 kB / 0.9084 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.676e-05/1.322, allocations: 4 kB / 0.9084 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000113/1.322, allocations: 360.6 kB / 0.9087 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005789/1.322, allocations: 270.5 kB / 0.909 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006148/1.323, allocations: 371.2 kB / 0.9093 GB, free: 120 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01682/1.34, allocations: 2.295 MB / 0.9116 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/1.34, allocations: 0 / 0.9116 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.01932/1.359, allocations: 2.974 MB / 0.9145 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/1.359, allocations: 3.938 kB / 0.9145 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/1.359, allocations: 3.938 kB / 0.9145 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006931/1.36, allocations: 167.5 kB / 0.9146 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008613/1.361, allocations: 177.5 kB / 0.9148 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/1.364, allocations: 1.915 MB / 0.9167 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/1.365, allocations: 141.3 kB / 0.9168 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/1.365, allocations: 26.77 kB / 0.9168 GB, free: 117.6 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 () * 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.0002035/1.365, allocations: 112.7 kB / 0.917 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01919/1.385, allocations: 2.883 MB / 0.9198 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/1.385, allocations: 54.77 kB / 0.9198 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01736/1.402, allocations: 3.02 MB / 0.9228 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/1.402, allocations: 9.359 kB / 0.9228 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/1.402, allocations: 0 / 0.9228 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/1.402, allocations: 7.125 kB / 0.9228 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01794/1.42, allocations: 3.784 MB / 0.9265 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/1.42, allocations: 3.828 kB / 0.9265 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008303/1.421, allocations: 178.8 kB / 0.9267 GB, free: 113.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/1.422, allocations: 148.9 kB / 0.9268 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.522e-05/1.422, allocations: 10.7 kB / 0.9268 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002862/1.425, allocations: 1.95 MB / 0.9287 GB, free: 111.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.425, allocations: 4.062 kB / 0.9287 GB, free: 111.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01698/1.442, allocations: 2.993 MB / 0.9316 GB, free: 109.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004265/1.442, allocations: 239.5 kB / 0.9319 GB, free: 109.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.768e-05/1.442, allocations: 0 / 0.9319 GB, free: 109.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007784/1.443, allocations: 96.33 kB / 0.932 GB, free: 109.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/1.443, allocations: 46.69 kB / 0.932 GB, free: 109.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.407e-05/1.443, allocations: 30.73 kB / 0.932 GB, free: 109.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003563/1.444, allocations: 302.6 kB / 0.9323 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.2e-07/1.444, allocations: 0 / 0.9323 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001038/1.445, allocations: 266.9 kB / 0.9326 GB, free: 108.5 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) * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01823/1.463, allocations: 3.921 MB / 0.9364 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001353/1.464, allocations: 0.7943 MB / 0.9372 GB, free: 104 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/1.464, allocations: 2.078 kB / 0.9372 GB, free: 104 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000613/1.465, allocations: 499.6 kB / 0.9377 GB, free: 103.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/1.465, allocations: 37.84 kB / 0.9377 GB, free: 103.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/1.467, allocations: 0.9816 MB / 0.9387 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/1.468, allocations: 0.8933 MB / 0.9395 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006769/1.468, allocations: 149.5 kB / 0.9397 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/1.469, allocations: 214.5 kB / 0.9399 GB, free: 101.2 MB / 0.5573 GB Notification: Performance of SimCode: time 7.92e-07/1.469, allocations: 0 / 0.9399 GB, free: 101.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05397/1.523, allocations: 15.69 MB / 0.9552 GB, free: 85.64 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/1.523, allocations: 201.1 kB / 0.9554 GB, free: 85.38 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/4.123, allocations: 0 / 0.9554 GB, free: 85.38 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)