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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008213/0.0008212, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.0008629/0.0008629, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.164/1.164, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001632/0.001632, allocations: 270.9 kB / 291.2 MB, free: 1.875 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7232/0.7232, allocations: 144.6 MB / 487 MB, free: 7.203 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.0003608, allocations: 14.19 kB / 0.5683 GB, free: 38.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1183, allocations: 83.08 MB / 0.6494 GB, free: 3.637 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.00316/0.1215, allocations: 3.088 MB / 0.6524 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.125, allocations: 3.108 MB / 0.6555 GB, free: 13.43 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.1252, allocations: 8.844 kB / 0.6555 GB, free: 13.43 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002611/0.1254, allocations: 87.38 kB / 0.6556 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006817/0.1261, allocations: 409.4 kB / 0.6559 GB, free: 12.94 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.1266, allocations: 268.2 kB / 0.6562 GB, free: 12.68 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.1271, allocations: 444.2 kB / 0.6566 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.1273, allocations: 150.6 kB / 0.6568 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.1275, allocations: 240.5 kB / 0.657 GB, free: 11.87 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.1279, allocations: 249.2 kB / 0.6572 GB, free: 11.62 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.1279, allocations: 20 kB / 0.6573 GB, free: 11.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005898/0.1285, allocations: 449.4 kB / 0.6577 GB, free: 11.17 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1286, allocations: 107.5 kB / 0.6578 GB, free: 11.06 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 8.704e-05/0.1287, allocations: 129.3 kB / 0.6579 GB, free: 10.93 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006767/0.1294, allocations: 0.7802 MB / 0.6587 GB, free: 10.15 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.1294, allocations: 0 / 0.6587 GB, free: 10.15 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1294, allocations: 2.156 kB / 0.6587 GB, free: 10.15 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1294, allocations: 3.938 kB / 0.6587 GB, free: 10.14 MB / 462.1 MB 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.00135/0.1308, allocations: 0.8719 MB / 0.6595 GB, free: 9.227 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.694e-05/0.1308, allocations: 8.031 kB / 0.6595 GB, free: 9.219 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003092/0.1339, allocations: 0.6394 MB / 0.6602 GB, free: 8.586 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.1351, allocations: 0.6225 MB / 0.6608 GB, free: 7.922 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.1352, allocations: 122.1 kB / 0.6609 GB, free: 7.785 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.1353, allocations: 40 kB / 0.6609 GB, free: 7.746 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1366, allocations: 0.6986 MB / 0.6616 GB, free: 7.027 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1366, allocations: 0 / 0.6616 GB, free: 7.027 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.705e-05/0.1367, allocations: 16 kB / 0.6616 GB, free: 7.012 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1367, allocations: 12 kB / 0.6616 GB, free: 7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.1385, allocations: 0.765 MB / 0.6624 GB, free: 6.238 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003021/0.1415, allocations: 1.806 MB / 0.6641 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.1441, allocations: 0.8634 MB / 0.665 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001481/0.1456, allocations: 1.765 MB / 0.6667 GB, free: 1.344 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009141/0.1465, allocations: 429.1 kB / 0.6671 GB, free: 0.918 MB / 462.1 MB Notification: Performance of pre-optimization done (n=53): time 2.264e-06/0.1465, allocations: 0 / 0.6671 GB, free: 0.918 MB / 462.1 MB Notification: Performance of matching and sorting (n=53): time 0.002525/0.149, allocations: 1.021 MB / 0.6681 GB, free: 15.89 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.1491, allocations: 107.2 kB / 0.6682 GB, free: 15.76 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.1495, allocations: 427.1 kB / 0.6686 GB, free: 15.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.1496, allocations: 41.64 kB / 0.6687 GB, free: 15.29 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.1497, allocations: 276.6 kB / 0.6689 GB, free: 15.02 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.1499, allocations: 181.4 kB / 0.6691 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.1499, allocations: 12 kB / 0.6691 GB, free: 14.82 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.15, allocations: 362.7 kB / 0.6695 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007763/0.1508, allocations: 304.9 kB / 0.6697 GB, free: 14.16 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000836/0.1516, allocations: 444.5 kB / 0.6702 GB, free: 13.68 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007885/0.1524, allocations: 326 kB / 0.6705 GB, free: 13.37 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1525, allocations: 0 / 0.6705 GB, free: 13.37 MB / 478.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001836/0.1543, allocations: 0.8225 MB / 0.6713 GB, free: 12.54 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1543, allocations: 8 kB / 0.6713 GB, free: 12.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1543, allocations: 7.984 kB / 0.6713 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1544, allocations: 4 kB / 0.6713 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.1552, allocations: 179.7 kB / 0.6715 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.1552, allocations: 15.98 kB / 0.6715 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006092/0.1558, allocations: 104.7 kB / 0.6716 GB, free: 12.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/0.1559, allocations: 27.97 kB / 0.6716 GB, free: 12.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (70): * Single equations (assignments): 70 * 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.0002441/0.1561, allocations: 213.6 kB / 0.6718 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.465e-05/0.1562, allocations: 51.34 kB / 0.6719 GB, free: 11.93 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.1583, allocations: 0.9026 MB / 0.6728 GB, free: 11.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.1583, allocations: 4 kB / 0.6728 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1583, allocations: 0 / 0.6728 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1583, allocations: 11.97 kB / 0.6728 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006576/0.159, allocations: 0.6922 MB / 0.6734 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.159, allocations: 4 kB / 0.6734 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007247/0.1597, allocations: 155.8 kB / 0.6736 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.1597, allocations: 0 / 0.6736 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.286e-05/0.1598, allocations: 19.98 kB / 0.6736 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1598, allocations: 0 / 0.6736 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1598, allocations: 0 / 0.6736 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.1614, allocations: 0.7935 MB / 0.6744 GB, free: 9.266 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.1617, allocations: 216.1 kB / 0.6746 GB, free: 9.035 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.483e-05/0.1618, allocations: 12 kB / 0.6746 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005322/0.1623, allocations: 67.88 kB / 0.6747 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/0.1624, allocations: 40.5 kB / 0.6747 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-05/0.1625, allocations: 19.98 kB / 0.6747 GB, free: 8.898 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002696/0.1627, allocations: 303.1 kB / 0.675 GB, free: 8.605 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1627, allocations: 0 / 0.675 GB, free: 8.605 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005477/0.1633, allocations: 231.6 kB / 0.6752 GB, free: 8.379 MB / 478.1 MB 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 (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.00096/0.1643, allocations: 0.4883 MB / 0.6757 GB, free: 8.031 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.1659, allocations: 0.7378 MB / 0.6764 GB, free: 7.293 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.166, allocations: 448 / 0.6764 GB, free: 7.293 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008169/0.1668, allocations: 394.9 kB / 0.6768 GB, free: 6.906 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.1671, allocations: 59.81 kB / 0.6769 GB, free: 6.852 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.169, allocations: 1.499 MB / 0.6783 GB, free: 5.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.1694, allocations: 0.8891 MB / 0.6792 GB, free: 4.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006636/0.17, allocations: 148.5 kB / 0.6793 GB, free: 4.262 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.1703, allocations: 79.33 kB / 0.6794 GB, free: 4.184 MB / 478.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1703, allocations: 0 / 0.6794 GB, free: 4.184 MB / 478.1 MB Notification: Performance of Templates: time 0.01248/0.1828, allocations: 8.047 MB / 0.6873 GB, free: 12.18 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.makefile Environment - environmentSimulation: (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1) Environment - environmentSimulation: