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.001156/0.001156, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001088/0.001088, allocations: 186 kB / 16.25 MB, free: 6.633 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.219/1.219, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001975/0.001975, allocations: 290.7 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8803/0.8803, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 84.28 kB / 0.5948 GB, free: 28.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1295, allocations: 86.97 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004852/0.1344, allocations: 3.722 MB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00452/0.139, allocations: 3.398 MB / 0.6867 GB, free: 9.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000384/0.1394, allocations: 15.88 kB / 0.6867 GB, free: 9.824 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.000507/0.1399, allocations: 103.3 kB / 0.6868 GB, free: 9.723 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001105/0.141, allocations: 386.2 kB / 0.6872 GB, free: 9.344 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007268/0.1418, allocations: 330.4 kB / 0.6875 GB, free: 9.023 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007725/0.1426, allocations: 0.7605 MB / 0.6882 GB, free: 8.262 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1429, allocations: 201.9 kB / 0.6884 GB, free: 8.059 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004017/0.1433, allocations: 314.8 kB / 0.6887 GB, free: 7.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004493/0.1437, allocations: 326.6 kB / 0.689 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1439, allocations: 64 kB / 0.6891 GB, free: 7.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007518/0.1446, allocations: 0.5034 MB / 0.6896 GB, free: 6.863 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.1448, allocations: 171.4 kB / 0.6897 GB, free: 6.695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002732/0.1451, allocations: 326.4 kB / 0.69 GB, free: 6.375 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1461, allocations: 1.067 MB / 0.6911 GB, free: 5.305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1461, allocations: 4 kB / 0.6911 GB, free: 5.301 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1461, allocations: 0 / 0.6911 GB, free: 5.301 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1461, allocations: 0 / 0.6911 GB, free: 5.301 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.001746/0.1479, allocations: 0.9992 MB / 0.6921 GB, free: 4.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1479, allocations: 8.031 kB / 0.6921 GB, free: 4.242 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.148, allocations: 90.7 kB / 0.6922 GB, free: 4.145 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002991/0.151, allocations: 0.5659 MB / 0.6927 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.1522, allocations: 0.6196 MB / 0.6933 GB, free: 2.922 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.1523, allocations: 126.4 kB / 0.6934 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.48e-05/0.1524, allocations: 44 kB / 0.6935 GB, free: 2.738 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.1537, allocations: 0.6636 MB / 0.6941 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1537, allocations: 0 / 0.6941 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-05/0.1538, allocations: 23.94 kB / 0.6942 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1538, allocations: 12 kB / 0.6942 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.1553, allocations: 0.687 MB / 0.6948 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002932/0.1583, allocations: 1.773 MB / 0.6966 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.1608, allocations: 0.8063 MB / 0.6974 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007294/0.1615, allocations: 322 kB / 0.6977 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001664/0.1632, allocations: 1.773 MB / 0.6994 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008376/0.164, allocations: 397 kB / 0.6998 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 1.814e-06/0.1641, allocations: 3.938 kB / 0.6998 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002247/0.1663, allocations: 0.92 MB / 0.7007 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.1664, allocations: 115.2 kB / 0.7008 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/0.1668, allocations: 415.1 kB / 0.7012 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.1669, allocations: 37.7 kB / 0.7012 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.167, allocations: 276.5 kB / 0.7015 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.1672, allocations: 181.4 kB / 0.7017 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.1674, allocations: 114.2 kB / 0.7018 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1675, allocations: 362.8 kB / 0.7021 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006659/0.1682, allocations: 268.9 kB / 0.7024 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007693/0.169, allocations: 426.4 kB / 0.7028 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.1704, allocations: 0.6516 MB / 0.7034 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1704, allocations: 0 / 0.7034 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001673/0.1721, allocations: 0.7599 MB / 0.7041 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1721, allocations: 8 kB / 0.7042 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1721, allocations: 4 kB / 0.7042 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1722, allocations: 4 kB / 0.7042 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.1737, allocations: 251.9 kB / 0.7044 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.1752, allocations: 1.589 MB / 0.706 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.1759, allocations: 91.31 kB / 0.706 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-05/0.176, allocations: 28.05 kB / 0.7061 GB, free: 5.059 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.0002578/0.1762, allocations: 219.1 kB / 0.7063 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.645e-05/0.1763, allocations: 51.34 kB / 0.7063 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002418/0.1787, allocations: 0.9308 MB / 0.7072 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1788, allocations: 7.938 kB / 0.7072 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1788, allocations: 4 kB / 0.7072 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.1788, allocations: 7.922 kB / 0.7073 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.1816, allocations: 1.614 MB / 0.7088 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1816, allocations: 4 kB / 0.7088 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007029/0.1824, allocations: 139.8 kB / 0.709 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004248/0.1828, allocations: 64.75 kB / 0.709 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.1829, allocations: 19.97 kB / 0.7091 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.1843, allocations: 1.576 MB / 0.7106 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.1843, allocations: 7.969 kB / 0.7106 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.1863, allocations: 0.8902 MB / 0.7115 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.1865, allocations: 212.2 kB / 0.7117 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.161e-05/0.1866, allocations: 16 kB / 0.7117 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.1872, allocations: 55.84 kB / 0.7117 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-05/0.1873, allocations: 44.5 kB / 0.7118 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-05/0.1874, allocations: 23.98 kB / 0.7118 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002865/0.1877, allocations: 287.1 kB / 0.7121 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1877, allocations: 0 / 0.7121 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000637/0.1883, allocations: 235.7 kB / 0.7123 GB, free: 14.4 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.003248/0.1916, allocations: 1.849 MB / 0.7141 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002683/0.1943, allocations: 0.8158 MB / 0.7149 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.1943, allocations: 0 / 0.7149 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009601/0.1952, allocations: 0.4903 MB / 0.7154 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.1957, allocations: 75.58 kB / 0.7155 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008133/0.2039, allocations: 5.426 MB / 0.7208 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.2043, allocations: 0.885 MB / 0.7216 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006754/0.205, allocations: 152.4 kB / 0.7218 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003624/0.2053, allocations: 219.3 kB / 0.722 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.2053, allocations: 0 / 0.722 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.2347, allocations: 13.98 MB / 0.7356 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002643/0.235, allocations: 301.1 kB / 0.7359 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.279, allocations: 4 kB / 0.7359 GB, free: 6.316 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)