Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007398/0.0007398, allocations: 91.3 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004353/0.004353, allocations: 170.7 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001685/0.001685, allocations: 278.8 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8963/0.8963, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003902/0.0003902, allocations: 11.44 kB / 0.5988 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1333, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.003471/0.1368, allocations: 3.336 MB / 0.6885 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004236/0.1411, allocations: 3.389 MB / 0.6918 GB, free: 8.219 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.1413, allocations: 16.59 kB / 0.6918 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.1417, allocations: 103.2 kB / 0.6919 GB, free: 8.102 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008284/0.1425, allocations: 373.4 kB / 0.6923 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006224/0.1431, allocations: 336.6 kB / 0.6926 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005835/0.1437, allocations: 0.7019 MB / 0.6933 GB, free: 6.711 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.144, allocations: 177.6 kB / 0.6934 GB, free: 6.535 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.1442, allocations: 250.8 kB / 0.6937 GB, free: 6.289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003713/0.1446, allocations: 274.7 kB / 0.6939 GB, free: 6.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.496e-05/0.1447, allocations: 20 kB / 0.694 GB, free: 6 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00068/0.1454, allocations: 467.4 kB / 0.6944 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.1455, allocations: 111.5 kB / 0.6945 GB, free: 5.434 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002247/0.1457, allocations: 300 kB / 0.6948 GB, free: 5.133 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009067/0.1467, allocations: 1.016 MB / 0.6958 GB, free: 4.113 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1467, allocations: 4 kB / 0.6958 GB, free: 4.109 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1467, allocations: 4 kB / 0.6958 GB, free: 4.105 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1467, allocations: 0 / 0.6958 GB, free: 4.105 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001559/0.1483, allocations: 0.8687 MB / 0.6966 GB, free: 3.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1483, allocations: 8.031 kB / 0.6967 GB, free: 3.176 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.1484, allocations: 94.7 kB / 0.6967 GB, free: 3.074 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003041/0.1515, allocations: 0.5854 MB / 0.6973 GB, free: 2.488 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.1527, allocations: 0.6274 MB / 0.6979 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.1528, allocations: 122.4 kB / 0.698 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.037e-05/0.1529, allocations: 44 kB / 0.6981 GB, free: 1.645 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1542, allocations: 0.6713 MB / 0.6987 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1542, allocations: 4 kB / 0.6987 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.28e-05/0.1543, allocations: 20 kB / 0.6988 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1543, allocations: 12 kB / 0.6988 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.1559, allocations: 0.6987 MB / 0.6995 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002994/0.1589, allocations: 1.773 MB / 0.7012 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.1615, allocations: 0.8102 MB / 0.702 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007653/0.1623, allocations: 330 kB / 0.7023 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001591/0.1639, allocations: 1.765 MB / 0.704 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008496/0.1647, allocations: 399.3 kB / 0.7044 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.645e-06/0.1648, allocations: 3.938 kB / 0.7044 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002324/0.1671, allocations: 0.9434 MB / 0.7053 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.1672, allocations: 111.2 kB / 0.7054 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004246/0.1676, allocations: 419.1 kB / 0.7058 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.1677, allocations: 33.7 kB / 0.7059 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.1678, allocations: 276.5 kB / 0.7061 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.168, allocations: 181.4 kB / 0.7063 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.238e-05/0.1681, allocations: 53.69 kB / 0.7064 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1682, allocations: 362.8 kB / 0.7067 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006989/0.1689, allocations: 272.9 kB / 0.707 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007961/0.1697, allocations: 416.6 kB / 0.7074 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.1712, allocations: 0.6632 MB / 0.708 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1712, allocations: 0 / 0.708 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001729/0.1729, allocations: 0.7756 MB / 0.7088 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.173, allocations: 8 kB / 0.7088 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.173, allocations: 4 kB / 0.7088 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.173, allocations: 4 kB / 0.7088 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.1745, allocations: 251.8 kB / 0.709 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.176, allocations: 1.475 MB / 0.7105 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006544/0.1766, allocations: 91.56 kB / 0.7105 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.645e-05/0.1767, allocations: 31.97 kB / 0.7106 GB, free: 4.066 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002943/0.177, allocations: 206.9 kB / 0.7108 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/0.1771, allocations: 59.22 kB / 0.7108 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/0.1796, allocations: 0.9426 MB / 0.7118 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.1796, allocations: 8 kB / 0.7118 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.1796, allocations: 0 / 0.7118 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.1796, allocations: 3.984 kB / 0.7118 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.1826, allocations: 1.626 MB / 0.7133 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.1826, allocations: 0 / 0.7133 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007128/0.1833, allocations: 151.8 kB / 0.7135 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004485/0.1838, allocations: 64.73 kB / 0.7136 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.1838, allocations: 19.98 kB / 0.7136 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.1852, allocations: 1.473 MB / 0.715 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1852, allocations: 0 / 0.715 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.1872, allocations: 0.9097 MB / 0.7159 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.1875, allocations: 208.1 kB / 0.7161 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.798e-05/0.1876, allocations: 19.94 kB / 0.7161 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.1882, allocations: 59.94 kB / 0.7162 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.1883, allocations: 40.5 kB / 0.7162 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.712e-05/0.1883, allocations: 31.97 kB / 0.7162 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003115/0.1887, allocations: 295.1 kB / 0.7165 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.1887, allocations: 0 / 0.7165 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006958/0.1894, allocations: 231.6 kB / 0.7167 GB, free: 13.48 MB / 0.5137 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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003276/0.1927, allocations: 1.844 MB / 0.7185 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002376/0.195, allocations: 0.7768 MB / 0.7193 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1951, allocations: 3.938 kB / 0.7193 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009531/0.196, allocations: 0.4903 MB / 0.7198 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.1965, allocations: 62.64 kB / 0.7199 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008224/0.2047, allocations: 5.522 MB / 0.7252 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.2052, allocations: 0.8811 MB / 0.7261 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006923/0.2059, allocations: 148.5 kB / 0.7262 GB, free: 3.672 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003628/0.2062, allocations: 219.3 kB / 0.7265 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/0.2062, allocations: 0 / 0.7265 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5611/0.7674, allocations: 13.39 MB / 0.7395 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/0.7677, allocations: 301.8 kB / 0.7398 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.682, allocations: 4.062 kB / 0.7398 GB, free: 5.977 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)