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.00583/0.00583, allocations: 100.5 kB / 15.73 MB, free: 6.445 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.001518/0.001518, allocations: 191.4 kB / 16.67 MB, free: 6.348 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002545/0.002545, allocations: 294.3 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002896/0.002896, allocations: 99.86 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1743, allocations: 86.97 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005734/0.18, allocations: 3.749 MB / 0.7695 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005518/0.1856, allocations: 3.438 MB / 0.7729 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000388/0.186, allocations: 11.94 kB / 0.7729 GB, free: 1.742 MB / 0.5606 GB [/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.0005651/0.1866, allocations: 115 kB / 0.773 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.1879, allocations: 465.4 kB / 0.7735 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009243/0.1889, allocations: 350.4 kB / 0.7738 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001052/0.1899, allocations: 0.7487 MB / 0.7745 GB, free: 84 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3225/0.5125, allocations: 187.3 kB / 0.7747 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005483/0.5131, allocations: 302.2 kB / 0.775 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004899/0.5136, allocations: 323 kB / 0.7753 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.5137, allocations: 65.5 kB / 0.7754 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001014/0.5147, allocations: 0.4953 MB / 0.7758 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.5149, allocations: 168.1 kB / 0.776 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002804/0.5152, allocations: 321.5 kB / 0.7763 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.5166, allocations: 1.094 MB / 0.7774 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.5167, allocations: 0.625 kB / 0.7774 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.904e-06/0.5167, allocations: 2.5 kB / 0.7774 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.151e-05/0.5167, allocations: 0.875 kB / 0.7774 GB, free: 7.945 MB / 0.5606 GB 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.001918/0.5186, allocations: 1.014 MB / 0.7784 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.5186, allocations: 10.38 kB / 0.7784 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.957e-05/0.5188, allocations: 90.38 kB / 0.7785 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00373/0.5225, allocations: 0.6241 MB / 0.7791 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.524, allocations: 0.6354 MB / 0.7797 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.5241, allocations: 115.8 kB / 0.7798 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.5242, allocations: 50.16 kB / 0.7799 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.5257, allocations: 0.6957 MB / 0.7805 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.5257, allocations: 0 / 0.7805 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-05/0.5258, allocations: 27.12 kB / 0.7806 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.5258, allocations: 11.75 kB / 0.7806 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.5278, allocations: 0.7583 MB / 0.7813 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003568/0.5314, allocations: 1.806 MB / 0.7831 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.5344, allocations: 0.8422 MB / 0.7839 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009132/0.5353, allocations: 354.8 kB / 0.7842 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001645/0.5369, allocations: 1.771 MB / 0.786 GB, free: 20.01 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.538, allocations: 429.7 kB / 0.7864 GB, free: 19.85 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 2.274e-06/0.538, allocations: 0 / 0.7864 GB, free: 19.85 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002867/0.5408, allocations: 1.009 MB / 0.7874 GB, free: 19.51 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.889e-05/0.5409, allocations: 113.3 kB / 0.7875 GB, free: 19.39 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.5415, allocations: 445.2 kB / 0.7879 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.994e-05/0.5416, allocations: 36.23 kB / 0.7879 GB, free: 19.12 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.5417, allocations: 276.4 kB / 0.7882 GB, free: 18.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.5419, allocations: 185.1 kB / 0.7884 GB, free: 18.76 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.5421, allocations: 126.1 kB / 0.7885 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.5423, allocations: 356.9 kB / 0.7888 GB, free: 18.37 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008337/0.5431, allocations: 303.5 kB / 0.7891 GB, free: 18.28 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009156/0.5441, allocations: 442.2 kB / 0.7895 GB, free: 18.03 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.5458, allocations: 0.6996 MB / 0.7902 GB, free: 17.69 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.5458, allocations: 0.6094 kB / 0.7902 GB, free: 17.69 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002074/0.5478, allocations: 0.8176 MB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.5479, allocations: 9.219 kB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.5479, allocations: 3.75 kB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.5479, allocations: 9.969 kB / 0.791 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009341/0.5489, allocations: 175.1 kB / 0.7912 GB, free: 17.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.5489, allocations: 6.344 kB / 0.7912 GB, free: 17.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007255/0.5496, allocations: 103.6 kB / 0.7913 GB, free: 17.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.5497, allocations: 29.12 kB / 0.7913 GB, free: 17.36 MB / 0.5762 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.0003128/0.55, allocations: 206.2 kB / 0.7915 GB, free: 17.19 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.5501, allocations: 59.34 kB / 0.7916 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/0.5523, allocations: 0.8969 MB / 0.7925 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.5523, allocations: 7.594 kB / 0.7925 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.5523, allocations: 0 / 0.7925 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.5523, allocations: 6.797 kB / 0.7925 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.5552, allocations: 1.582 MB / 0.794 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.5553, allocations: 0 / 0.794 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008023/0.5561, allocations: 147.3 kB / 0.7942 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.5561, allocations: 6.062 kB / 0.7942 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.436e-05/0.5561, allocations: 22.28 kB / 0.7942 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.5562, allocations: 4.656 kB / 0.7942 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.5562, allocations: 0.9688 kB / 0.7942 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.558, allocations: 0.8604 MB / 0.795 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.5584, allocations: 210.7 kB / 0.7952 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.5585, allocations: 18.52 kB / 0.7953 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006658/0.5591, allocations: 56.47 kB / 0.7953 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.5593, allocations: 39.72 kB / 0.7954 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.398e-05/0.5593, allocations: 27.22 kB / 0.7954 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003822/0.5597, allocations: 298.7 kB / 0.7957 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5597, allocations: 1.188 kB / 0.7957 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009493/0.5607, allocations: 228.2 kB / 0.7959 GB, free: 15.23 MB / 0.5762 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.003876/0.5646, allocations: 1.812 MB / 0.7977 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002356/0.5669, allocations: 0.7224 MB / 0.7984 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5669, allocations: 4.5 kB / 0.7984 GB, free: 14 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.5681, allocations: 386.4 kB / 0.7987 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006138/0.5687, allocations: 72.39 kB / 0.7988 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.5792, allocations: 5.349 MB / 0.804 GB, free: 11 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/0.5798, allocations: 0.8795 MB / 0.8049 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006792/0.5804, allocations: 157.8 kB / 0.805 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004657/0.5809, allocations: 223.4 kB / 0.8053 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/0.5809, allocations: 0 / 0.8053 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04199/0.6229, allocations: 14.22 MB / 0.8191 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.935/9.558, allocations: 15.19 kB / 0.8192 GB, free: 4.691 MB / 0.5762 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)