Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",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.8187/0.8187, allocations: 143.4 MB / 158.3 MB, free: 5.777 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.001653/0.001654, allocations: 183 kB / 191.5 MB, free: 5.75 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.496/1.496, allocations: 223.1 MB / 447.7 MB, free: 4.805 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.0007963/0.0007963, 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.0017/0.001699, allocations: 272.3 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003805, allocations: 11.53 kB / 0.6929 GB, free: 59.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1446, allocations: 82.8 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5271/0.6717, allocations: 123.2 MB / 0.8941 GB, free: 21.77 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.672, allocations: 85.08 kB / 0.8942 GB, free: 21.77 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.05361/0.7256, allocations: 20.02 MB / 0.9137 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7256, allocations: 0 / 0.9137 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.409e-05/0.7257, allocations: 15.5 kB / 0.9137 GB, free: 19.95 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.001646/0.7273, allocations: 0.9202 MB / 0.9146 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.7274, allocations: 15.81 kB / 0.9146 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.526e-05/0.7275, allocations: 88.48 kB / 0.9147 GB, free: 19.26 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002855/0.7303, allocations: 0.5531 MB / 0.9153 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000617/0.731, allocations: 441.1 kB / 0.9157 GB, free: 18.94 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.943e-05/0.7311, allocations: 119.7 kB / 0.9158 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.628e-05/0.7312, allocations: 41.88 kB / 0.9158 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.7327, allocations: 0.7855 MB / 0.9166 GB, free: 18.76 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.7327, allocations: 3.938 kB / 0.9166 GB, free: 18.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.638e-05/0.7328, allocations: 22.38 kB / 0.9166 GB, free: 18.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.7328, allocations: 11.47 kB / 0.9166 GB, free: 18.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.7351, allocations: 0.9818 MB / 0.9176 GB, free: 18.72 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.7386, allocations: 2.015 MB / 0.9196 GB, free: 18.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003277/0.7419, allocations: 1.12 MB / 0.9207 GB, free: 18.26 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001482/0.7434, allocations: 1.762 MB / 0.9224 GB, free: 16.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/0.7447, allocations: 0.542 MB / 0.9229 GB, free: 16.22 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=55): time 2.455e-06/0.7447, allocations: 3.938 kB / 0.9229 GB, free: 16.22 MB / 0.5417 GB Notification: Performance of matching and sorting (n=55): time 0.003499/0.7483, allocations: 1.347 MB / 0.9242 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.7483, allocations: 136.7 kB / 0.9244 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005175/0.7488, allocations: 445.2 kB / 0.9248 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.599e-05/0.7489, allocations: 32.7 kB / 0.9248 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.7491, allocations: 267.5 kB / 0.9251 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.7492, allocations: 189.3 kB / 0.9253 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.7493, allocations: 11.06 kB / 0.9253 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.72e-05/0.7493, allocations: 365.1 kB / 0.9256 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.7504, allocations: 423 kB / 0.926 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.7514, allocations: 0.5069 MB / 0.9265 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.7525, allocations: 417.2 kB / 0.9269 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.7525, allocations: 3.938 kB / 0.9269 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002333/0.7548, allocations: 1.01 MB / 0.9279 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.7549, allocations: 13.36 kB / 0.9279 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.7549, allocations: 0 / 0.9279 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.7549, allocations: 7.875 kB / 0.9279 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.7559, allocations: 202.4 kB / 0.9281 GB, free: 15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.7559, allocations: 7.922 kB / 0.9281 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009585/0.7569, allocations: 146.3 kB / 0.9283 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.966e-05/0.757, allocations: 33.8 kB / 0.9283 GB, free: 14.96 MB / 0.5417 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): 68 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003339/0.7573, allocations: 199.9 kB / 0.9285 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.97e-05/0.7574, allocations: 58.56 kB / 0.9285 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00258/0.76, allocations: 1.128 MB / 0.9296 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.7601, allocations: 7.812 kB / 0.9296 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.7601, allocations: 7.984 kB / 0.9297 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.7601, allocations: 7.641 kB / 0.9297 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008386/0.7609, allocations: 0.7725 MB / 0.9304 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.7609, allocations: 0 / 0.9304 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009373/0.7619, allocations: 184 kB / 0.9306 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.7619, allocations: 7.828 kB / 0.9306 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-05/0.762, allocations: 25.89 kB / 0.9306 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.762, allocations: 3.719 kB / 0.9306 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.762, allocations: 0 / 0.9306 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.7642, allocations: 1.001 MB / 0.9316 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/0.7646, allocations: 245.6 kB / 0.9318 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.7647, allocations: 22.92 kB / 0.9319 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007412/0.7655, allocations: 95.44 kB / 0.932 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.7656, allocations: 50.02 kB / 0.932 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.7657, allocations: 18.98 kB / 0.932 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003856/0.766, allocations: 350.6 kB / 0.9324 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7661, allocations: 0 / 0.9324 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0009358/0.767, allocations: 272.8 kB / 0.9326 GB, free: 14.04 MB / 0.5417 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): 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003969/0.771, allocations: 1.992 MB / 0.9346 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002198/0.7732, allocations: 0.9564 MB / 0.9355 GB, free: 29.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.7732, allocations: 0 / 0.9355 GB, free: 29.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.7743, allocations: 0.4973 MB / 0.936 GB, free: 29.17 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.7747, allocations: 63.83 kB / 0.936 GB, free: 29.16 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007493/0.7822, allocations: 5.357 MB / 0.9413 GB, free: 26.41 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.7827, allocations: 0.8912 MB / 0.9421 GB, free: 25.62 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007631/0.7835, allocations: 149.6 kB / 0.9423 GB, free: 25.55 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/0.7839, allocations: 227.8 kB / 0.9425 GB, free: 25.51 MB / 0.5573 GB Notification: Performance of SimCode: time 1.443e-06/0.7839, allocations: 0 / 0.9425 GB, free: 25.51 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02681/0.8107, allocations: 14.3 MB / 0.9565 GB, free: 18.62 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.8109, allocations: 243.7 kB / 0.9567 GB, free: 18.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.561/3.372, allocations: 0 / 0.9567 GB, free: 18.39 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)