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.001174/0.001174, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001221/0.001221, allocations: 193.7 kB / 16.14 MB, free: 6.66 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.201/1.201, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001871/0.001871, allocations: 294.4 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8361/0.8361, allocations: 169.2 MB / 0.4977 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 93.66 kB / 0.5946 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1279, allocations: 86.98 MB / 0.6795 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004481/0.1324, allocations: 3.765 MB / 0.6832 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004017/0.1364, allocations: 3.44 MB / 0.6866 GB, free: 9.887 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1366, allocations: 15.94 kB / 0.6866 GB, free: 9.871 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.0003638/0.137, allocations: 107.3 kB / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006977/0.1377, allocations: 366.2 kB / 0.687 GB, free: 9.406 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005303/0.1382, allocations: 322.3 kB / 0.6873 GB, free: 9.094 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.1388, allocations: 0.69 MB / 0.688 GB, free: 8.402 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.139, allocations: 189.6 kB / 0.6882 GB, free: 8.215 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.1393, allocations: 278.7 kB / 0.6885 GB, free: 7.941 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003721/0.1397, allocations: 294.6 kB / 0.6887 GB, free: 7.652 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-05/0.1398, allocations: 32 kB / 0.6888 GB, free: 7.621 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006403/0.1404, allocations: 471.5 kB / 0.6892 GB, free: 7.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.1406, allocations: 139.4 kB / 0.6894 GB, free: 7.023 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.1408, allocations: 290.2 kB / 0.6896 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009403/0.1418, allocations: 1.044 MB / 0.6907 GB, free: 5.691 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1418, allocations: 0 / 0.6907 GB, free: 5.691 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1418, allocations: 0 / 0.6907 GB, free: 5.691 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1418, allocations: 0 / 0.6907 GB, free: 5.691 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.001676/0.1435, allocations: 0.9991 MB / 0.6916 GB, free: 4.637 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.1435, allocations: 8.031 kB / 0.6916 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.688e-05/0.1436, allocations: 90.7 kB / 0.6917 GB, free: 4.531 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003344/0.147, allocations: 0.6205 MB / 0.6923 GB, free: 3.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.1482, allocations: 0.6273 MB / 0.6929 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.1483, allocations: 126.4 kB / 0.6931 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.1484, allocations: 48 kB / 0.6931 GB, free: 3.059 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.1499, allocations: 0.6947 MB / 0.6938 GB, free: 2.344 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1499, allocations: 0 / 0.6938 GB, free: 2.344 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.297e-05/0.15, allocations: 23.98 kB / 0.6938 GB, free: 2.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.15, allocations: 16 kB / 0.6938 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.152, allocations: 0.7533 MB / 0.6946 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003189/0.1552, allocations: 1.805 MB / 0.6963 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002737/0.1579, allocations: 0.8421 MB / 0.6972 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000888/0.1588, allocations: 350 kB / 0.6975 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001658/0.1605, allocations: 1.773 MB / 0.6992 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009664/0.1615, allocations: 429.1 kB / 0.6996 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 1.784e-06/0.1615, allocations: 0 / 0.6996 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002656/0.1641, allocations: 1.006 MB / 0.7006 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.1642, allocations: 115.2 kB / 0.7007 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.1646, allocations: 430.4 kB / 0.7011 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.1647, allocations: 37.64 kB / 0.7012 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.1649, allocations: 284.6 kB / 0.7014 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.165, allocations: 177.4 kB / 0.7016 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.1652, allocations: 122.1 kB / 0.7017 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1654, allocations: 362.8 kB / 0.7021 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008006/0.1662, allocations: 300.9 kB / 0.7024 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009061/0.1671, allocations: 436.5 kB / 0.7028 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.1688, allocations: 0.6983 MB / 0.7035 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1688, allocations: 8 kB / 0.7035 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00195/0.1707, allocations: 0.8144 MB / 0.7043 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1708, allocations: 8 kB / 0.7043 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1708, allocations: 11.88 kB / 0.7043 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.1708, allocations: 4 kB / 0.7043 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008386/0.1716, allocations: 183.9 kB / 0.7045 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.1717, allocations: 7.938 kB / 0.7045 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006456/0.1723, allocations: 95.45 kB / 0.7046 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.649e-05/0.1724, allocations: 27.98 kB / 0.7046 GB, free: 6.664 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.0002492/0.1726, allocations: 213.6 kB / 0.7048 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1727, allocations: 51.34 kB / 0.7048 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/0.1749, allocations: 0.8909 MB / 0.7057 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1749, allocations: 4 kB / 0.7057 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1749, allocations: 3.938 kB / 0.7057 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.1749, allocations: 7.984 kB / 0.7057 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.1775, allocations: 1.567 MB / 0.7072 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1775, allocations: 0 / 0.7072 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007452/0.1783, allocations: 155.8 kB / 0.7074 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/0.1783, allocations: 3.938 kB / 0.7074 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.241e-05/0.1783, allocations: 19.98 kB / 0.7074 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1783, allocations: 0 / 0.7074 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1784, allocations: 4 kB / 0.7074 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.1801, allocations: 0.8542 MB / 0.7083 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/0.1804, allocations: 212.2 kB / 0.7085 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.283e-05/0.1804, allocations: 8 kB / 0.7085 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.181, allocations: 63.92 kB / 0.7085 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.662e-05/0.1811, allocations: 44.44 kB / 0.7086 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.213e-05/0.1812, allocations: 23.92 kB / 0.7086 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002868/0.1815, allocations: 299.1 kB / 0.7089 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1815, allocations: 4 kB / 0.7089 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005871/0.1821, allocations: 227.6 kB / 0.7091 GB, free: 1.922 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.003001/0.1851, allocations: 1.811 MB / 0.7109 GB, free: 244 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001739/0.1868, allocations: 0.7223 MB / 0.7116 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1868, allocations: 0 / 0.7116 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008357/0.1877, allocations: 391.3 kB / 0.7119 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.1881, allocations: 61.95 kB / 0.712 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008811/0.197, allocations: 5.635 MB / 0.7175 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.1973, allocations: 0.8736 MB / 0.7184 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006997/0.1981, allocations: 160.4 kB / 0.7185 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/0.1985, allocations: 227.3 kB / 0.7187 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.1985, allocations: 0 / 0.7187 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.811/2.01, allocations: 13.56 MB / 0.732 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003185/2.01, allocations: 272.1 kB / 0.7322 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/4.933, allocations: 3.094 kB / 0.7322 GB, free: 10.29 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)