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.8724/0.8724, allocations: 141.8 MB / 149.3 MB, free: 9.234 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.001226/0.001226, allocations: 179.7 kB / 182.2 MB, free: 9.465 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.566/1.566, allocations: 221.5 MB / 436.4 MB, free: 13.27 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.001174/0.001174, allocations: 91.98 kB / 0.5074 GB, free: 10.1 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002002/0.002003, allocations: 276.3 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.856e-05/1.865e-05, allocations: 0 / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.511/0.511, allocations: 82.79 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1838/0.6949, allocations: 123.2 MB / 0.8777 GB, free: 4.559 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.6952, allocations: 83.95 kB / 0.8778 GB, free: 4.477 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.06208/0.7573, allocations: 19.95 MB / 0.8973 GB, free: 404 kB / 0.5573 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7573, allocations: 4 kB / 0.8973 GB, free: 400 kB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.963e-05/0.7574, allocations: 12 kB / 0.8973 GB, free: 388 kB / 0.5573 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.5714/1.329, allocations: 0.8697 MB / 0.8982 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.542e-05/1.329, allocations: 9.656 kB / 0.8982 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003475/1.332, allocations: 496.3 kB / 0.8987 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/1.334, allocations: 442.9 kB / 0.8991 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001913/1.334, allocations: 105.4 kB / 0.8992 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/1.334, allocations: 27.05 kB / 0.8992 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002152/1.337, allocations: 0.6661 MB / 0.8999 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/1.339, allocations: 0.6114 MB / 0.9005 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/1.339, allocations: 0.75 kB / 0.9005 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/1.339, allocations: 2.016 kB / 0.9005 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/1.339, allocations: 11.41 kB / 0.9005 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006091/1.345, allocations: 2.118 MB / 0.9025 GB, free: 123 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002496/1.347, allocations: 0.8024 MB / 0.9033 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006768/1.348, allocations: 340.2 kB / 0.9036 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001733/1.35, allocations: 1.76 MB / 0.9054 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009338/1.351, allocations: 431.1 kB / 0.9058 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=58): time 4.809e-06/1.351, allocations: 1.531 kB / 0.9058 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.02664/1.377, allocations: 3.18 MB / 0.9089 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/1.378, allocations: 136.2 kB / 0.909 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008781/1.379, allocations: 377.9 kB / 0.9094 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002109/1.379, allocations: 25.7 kB / 0.9094 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000246/1.379, allocations: 259.2 kB / 0.9096 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/1.379, allocations: 186.4 kB / 0.9098 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.703e-05/1.379, allocations: 0.6562 kB / 0.9098 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001296/1.38, allocations: 360.6 kB / 0.9102 GB, free: 119.9 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005825/1.38, allocations: 287.3 kB / 0.9104 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006528/1.381, allocations: 401.4 kB / 0.9108 GB, free: 119.6 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0172/1.398, allocations: 2.318 MB / 0.9131 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-05/1.398, allocations: 4 kB / 0.9131 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0238/1.422, allocations: 3.266 MB / 0.9163 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/1.422, allocations: 5.125 kB / 0.9163 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/1.422, allocations: 3.719 kB / 0.9163 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007362/1.429, allocations: 0.7429 MB / 0.917 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/1.431, allocations: 185.5 kB / 0.9172 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/1.436, allocations: 2.498 MB / 0.9196 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/1.438, allocations: 130.3 kB / 0.9198 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002454/1.438, allocations: 33.17 kB / 0.9198 GB, free: 116.8 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): 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.0003828/1.438, allocations: 119 kB / 0.9199 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02428/1.463, allocations: 3.19 MB / 0.923 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004316/1.463, allocations: 49.28 kB / 0.9231 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01907/1.482, allocations: 3.063 MB / 0.9261 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/1.482, allocations: 8 kB / 0.9261 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.482, allocations: 0 / 0.9261 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/1.482, allocations: 3.562 kB / 0.9261 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0199/1.502, allocations: 3.834 MB / 0.9298 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/1.502, allocations: 2.25 kB / 0.9298 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009808/1.503, allocations: 178.7 kB / 0.93 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002176/1.506, allocations: 335.1 kB / 0.9303 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001667/1.506, allocations: 15.97 kB / 0.9303 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003164/1.509, allocations: 2.024 MB / 0.9323 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.509, allocations: 0 / 0.9323 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/1.527, allocations: 3.023 MB / 0.9352 GB, free: 105.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005526/1.528, allocations: 240.1 kB / 0.9355 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/1.528, allocations: 0 / 0.9355 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009083/1.529, allocations: 90.83 kB / 0.9356 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/1.529, allocations: 56.69 kB / 0.9356 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-05/1.529, allocations: 23.97 kB / 0.9356 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004435/1.53, allocations: 295 kB / 0.9359 GB, free: 105.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/1.53, allocations: 0 / 0.9359 GB, free: 105.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001518/1.531, allocations: 269.7 kB / 0.9362 GB, free: 104.9 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 (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.01969/1.551, allocations: 3.945 MB / 0.94 GB, free: 101.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002905/1.554, allocations: 0.8936 MB / 0.9409 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.554, allocations: 8.438 kB / 0.9409 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/1.555, allocations: 0.5362 MB / 0.9414 GB, free: 99.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006636/1.556, allocations: 48.17 kB / 0.9415 GB, free: 99.56 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002958/1.559, allocations: 0.9874 MB / 0.9424 GB, free: 98.57 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/1.559, allocations: 0.898 MB / 0.9433 GB, free: 97.64 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008596/1.56, allocations: 143.5 kB / 0.9435 GB, free: 97.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004382/1.561, allocations: 211.3 kB / 0.9437 GB, free: 97.31 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/1.561, allocations: 0 / 0.9437 GB, free: 97.31 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04738/1.608, allocations: 15.14 MB / 0.9584 GB, free: 82.33 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/1.608, allocations: 196.4 kB / 0.9586 GB, free: 82.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/4.425, allocations: 0 / 0.9586 GB, free: 82.07 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)