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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008795/0.0008795, allocations: 98.27 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.004954/0.004954, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.237/1.237, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001686/0.001686, allocations: 278.3 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8846/0.8846, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003767, allocations: 12.48 kB / 0.5988 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1289, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.003537/0.1324, allocations: 3.385 MB / 0.6885 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004046/0.1365, allocations: 3.386 MB / 0.6918 GB, free: 8.176 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1367, allocations: 7.938 kB / 0.6918 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003257/0.137, allocations: 107.3 kB / 0.6919 GB, free: 8.062 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007337/0.1377, allocations: 367.6 kB / 0.6923 GB, free: 7.703 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005434/0.1383, allocations: 316.2 kB / 0.6926 GB, free: 7.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005819/0.1389, allocations: 0.6978 MB / 0.6933 GB, free: 6.699 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.1391, allocations: 188.5 kB / 0.6935 GB, free: 6.516 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.1394, allocations: 247.5 kB / 0.6937 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003652/0.1398, allocations: 270.5 kB / 0.694 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.1399, allocations: 20 kB / 0.694 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006307/0.1405, allocations: 464.3 kB / 0.6944 GB, free: 5.539 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1406, allocations: 123.4 kB / 0.6945 GB, free: 5.418 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002222/0.1409, allocations: 296.6 kB / 0.6948 GB, free: 5.121 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009129/0.1418, allocations: 1.016 MB / 0.6958 GB, free: 4.102 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1418, allocations: 1.062 kB / 0.6958 GB, free: 4.102 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1418, allocations: 0 / 0.6958 GB, free: 4.102 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.1418, allocations: 0 / 0.6958 GB, free: 4.102 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.001454/0.1433, allocations: 0.8683 MB / 0.6967 GB, free: 3.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.1433, allocations: 12.03 kB / 0.6967 GB, free: 3.168 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.1434, allocations: 90.7 kB / 0.6968 GB, free: 3.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003414/0.1468, allocations: 0.6362 MB / 0.6974 GB, free: 2.434 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.1481, allocations: 0.639 MB / 0.698 GB, free: 1.758 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.1482, allocations: 122.4 kB / 0.6981 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.391e-05/0.1483, allocations: 47.94 kB / 0.6982 GB, free: 1.574 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.1497, allocations: 0.6987 MB / 0.6988 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1498, allocations: 3.938 kB / 0.6988 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.255e-05/0.1498, allocations: 20 kB / 0.6989 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1498, allocations: 12 kB / 0.6989 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.1518, allocations: 0.7689 MB / 0.6996 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.1549, allocations: 1.809 MB / 0.7014 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002744/0.1576, allocations: 0.8499 MB / 0.7022 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009011/0.1586, allocations: 362 kB / 0.7026 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001602/0.1602, allocations: 1.769 MB / 0.7043 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009934/0.1612, allocations: 434.9 kB / 0.7047 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 1.983e-06/0.1612, allocations: 0 / 0.7047 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002734/0.1639, allocations: 1.021 MB / 0.7057 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.164, allocations: 115.2 kB / 0.7058 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.1644, allocations: 434.4 kB / 0.7062 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.1645, allocations: 37.7 kB / 0.7063 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.1647, allocations: 276.6 kB / 0.7065 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.1648, allocations: 181.3 kB / 0.7067 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.585e-05/0.1649, allocations: 53.69 kB / 0.7068 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.165, allocations: 358.8 kB / 0.7071 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008495/0.1659, allocations: 304.9 kB / 0.7074 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009153/0.1668, allocations: 444.5 kB / 0.7078 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/0.1685, allocations: 0.7101 MB / 0.7085 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1686, allocations: 7.938 kB / 0.7085 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001995/0.1706, allocations: 0.8262 MB / 0.7093 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.1706, allocations: 7.984 kB / 0.7093 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1706, allocations: 8.219 kB / 0.7093 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1706, allocations: 8 kB / 0.7093 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000846/0.1715, allocations: 175.7 kB / 0.7095 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.1715, allocations: 11.94 kB / 0.7095 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.1722, allocations: 103.5 kB / 0.7096 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.1722, allocations: 27.98 kB / 0.7096 GB, free: 5.152 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): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002553/0.1725, allocations: 210.9 kB / 0.7099 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.725e-05/0.1726, allocations: 55.34 kB / 0.7099 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/0.1748, allocations: 0.9065 MB / 0.7108 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1748, allocations: 12 kB / 0.7108 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1749, allocations: 3.938 kB / 0.7108 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1749, allocations: 3.984 kB / 0.7108 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.1776, allocations: 1.578 MB / 0.7123 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1776, allocations: 0 / 0.7123 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007664/0.1784, allocations: 155.8 kB / 0.7125 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.1784, allocations: 7.938 kB / 0.7125 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-05/0.1784, allocations: 15.98 kB / 0.7125 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1784, allocations: 4 kB / 0.7125 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1784, allocations: 0 / 0.7125 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.1803, allocations: 0.862 MB / 0.7134 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/0.1805, allocations: 220.2 kB / 0.7136 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.251e-05/0.1806, allocations: 12 kB / 0.7136 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.1812, allocations: 59.94 kB / 0.7136 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.056e-05/0.1813, allocations: 40.5 kB / 0.7137 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.1814, allocations: 27.92 kB / 0.7137 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002976/0.1817, allocations: 303.1 kB / 0.714 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1817, allocations: 4 kB / 0.714 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006013/0.1823, allocations: 231.6 kB / 0.7142 GB, free: 364 kB / 0.4981 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): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003063/0.1854, allocations: 1.814 MB / 0.716 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001786/0.1872, allocations: 0.7304 MB / 0.7167 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1872, allocations: 4.125 kB / 0.7167 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008763/0.1881, allocations: 398.9 kB / 0.7171 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004653/0.1885, allocations: 62.69 kB / 0.7172 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009008/0.1976, allocations: 5.725 MB / 0.7227 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.198, allocations: 0.8775 MB / 0.7236 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000723/0.1987, allocations: 160.4 kB / 0.7238 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.1991, allocations: 223.3 kB / 0.724 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.1991, allocations: 0 / 0.724 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5633/0.7624, allocations: 13.29 MB / 0.7369 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/0.7627, allocations: 268.8 kB / 0.7372 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.804, allocations: 0 / 0.7372 GB, free: 8.902 MB / 0.5294 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/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)