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.001076/0.001076, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.271/1.271, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 274.6 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9203/0.9203, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 91.2 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1379, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.00509/0.143, allocations: 3.739 MB / 0.6839 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004752/0.1478, allocations: 3.442 MB / 0.6873 GB, free: 9.391 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003447/0.1481, allocations: 7.938 kB / 0.6873 GB, free: 9.383 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004694/0.1486, allocations: 126.9 kB / 0.6874 GB, free: 9.258 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.1498, allocations: 457.5 kB / 0.6879 GB, free: 8.809 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007763/0.1506, allocations: 360.8 kB / 0.6882 GB, free: 8.461 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007262/0.1513, allocations: 0.7447 MB / 0.6889 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.1516, allocations: 197.9 kB / 0.6891 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003929/0.152, allocations: 298.9 kB / 0.6894 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004785/0.1525, allocations: 318.6 kB / 0.6897 GB, free: 6.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.1526, allocations: 64 kB / 0.6898 GB, free: 6.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008044/0.1535, allocations: 0.4995 MB / 0.6903 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.1536, allocations: 167.4 kB / 0.6904 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002923/0.1539, allocations: 326.2 kB / 0.6907 GB, free: 5.863 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.1551, allocations: 1.067 MB / 0.6918 GB, free: 4.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1551, allocations: 0 / 0.6918 GB, free: 4.793 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1551, allocations: 0 / 0.6918 GB, free: 4.793 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.1551, allocations: 0 / 0.6918 GB, free: 4.793 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.001862/0.157, allocations: 0.9875 MB / 0.6927 GB, free: 3.754 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.157, allocations: 19.95 kB / 0.6927 GB, free: 3.734 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.1572, allocations: 86.72 kB / 0.6928 GB, free: 3.641 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003507/0.1607, allocations: 0.6205 MB / 0.6934 GB, free: 3.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.162, allocations: 0.6351 MB / 0.6941 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.1622, allocations: 118.4 kB / 0.6942 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.1623, allocations: 51.94 kB / 0.6942 GB, free: 2.164 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.1638, allocations: 0.6909 MB / 0.6949 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.1638, allocations: 4 kB / 0.6949 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.121e-05/0.1639, allocations: 23.98 kB / 0.6949 GB, free: 1.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.1639, allocations: 12 kB / 0.6949 GB, free: 1.418 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00199/0.1659, allocations: 0.7455 MB / 0.6957 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.1694, allocations: 1.817 MB / 0.6974 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.1722, allocations: 0.8499 MB / 0.6983 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009147/0.1732, allocations: 349.9 kB / 0.6986 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001856/0.175, allocations: 1.765 MB / 0.7003 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001046/0.1761, allocations: 433.1 kB / 0.7007 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.685e-06/0.1761, allocations: 0 / 0.7007 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002887/0.179, allocations: 1.01 MB / 0.7017 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.1791, allocations: 111.2 kB / 0.7018 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005065/0.1796, allocations: 430.4 kB / 0.7022 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.736e-05/0.1797, allocations: 37.7 kB / 0.7023 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.1799, allocations: 280.6 kB / 0.7025 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.18, allocations: 181.4 kB / 0.7027 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.1802, allocations: 118.1 kB / 0.7028 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.1804, allocations: 366.8 kB / 0.7032 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000871/0.1812, allocations: 300.9 kB / 0.7035 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009679/0.1822, allocations: 440.4 kB / 0.7039 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.184, allocations: 0.7023 MB / 0.7046 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.184, allocations: 0 / 0.7046 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002089/0.1861, allocations: 0.8144 MB / 0.7054 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1861, allocations: 4 kB / 0.7054 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1862, allocations: 4 kB / 0.7054 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1862, allocations: 11.98 kB / 0.7054 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008813/0.1871, allocations: 179.9 kB / 0.7056 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.1871, allocations: 15.88 kB / 0.7056 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006786/0.1878, allocations: 87.47 kB / 0.7057 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.216e-05/0.1879, allocations: 35.97 kB / 0.7057 GB, free: 5.766 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.0002711/0.1881, allocations: 207.3 kB / 0.7059 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.1883, allocations: 59.27 kB / 0.7059 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.1906, allocations: 0.8949 MB / 0.7068 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.1906, allocations: 8 kB / 0.7068 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.1906, allocations: 3.938 kB / 0.7068 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1906, allocations: 0 / 0.7068 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.1934, allocations: 1.574 MB / 0.7084 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1935, allocations: 4 kB / 0.7084 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007629/0.1942, allocations: 143.8 kB / 0.7085 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.1943, allocations: 7.938 kB / 0.7085 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-05/0.1943, allocations: 15.98 kB / 0.7085 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1943, allocations: 4 kB / 0.7085 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1943, allocations: 7.938 kB / 0.7085 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.1963, allocations: 0.8503 MB / 0.7094 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.1965, allocations: 212.2 kB / 0.7096 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.368e-05/0.1966, allocations: 15.98 kB / 0.7096 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.1972, allocations: 51.94 kB / 0.7096 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.723e-05/0.1973, allocations: 44.44 kB / 0.7097 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.342e-05/0.1974, allocations: 19.98 kB / 0.7097 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003171/0.1977, allocations: 307.1 kB / 0.71 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1977, allocations: 0 / 0.71 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006967/0.1984, allocations: 223.7 kB / 0.7102 GB, free: 1.031 MB / 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.00324/0.2017, allocations: 1.8 MB / 0.712 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002233/0.2039, allocations: 0.7729 MB / 0.7127 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2039, allocations: 0 / 0.7127 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008976/0.2048, allocations: 391.3 kB / 0.7131 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004669/0.2053, allocations: 66.98 kB / 0.7132 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009529/0.2148, allocations: 5.403 MB / 0.7184 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.2153, allocations: 0.8811 MB / 0.7193 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000729/0.216, allocations: 160.4 kB / 0.7194 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.2164, allocations: 223.3 kB / 0.7197 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.2164, allocations: 4 kB / 0.7197 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03428/0.2507, allocations: 13.96 MB / 0.7333 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.724, allocations: 12.88 kB / 0.7333 GB, free: 9.484 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)